Continuous quivers of type A (I) The generalized barcode theorem