ProteoWizard
References.hpp
Go to the documentation of this file.
1 //
2 // $Id: References.hpp 1189 2009-08-14 17:36:06Z chambm $
3 //
4 //
5 // Original author: Darren Kessner <darren@proteowizard.org>
6 //
7 // Copyright 2007 Spielberg Family Center for Applied Proteomics
8 // Cedars-Sinai Medical Center, Los Angeles, California 90048
9 //
10 // Licensed under the Apache License, Version 2.0 (the "License");
11 // you may not use this file except in compliance with the License.
12 // You may obtain a copy of the License at
13 //
14 // http://www.apache.org/licenses/LICENSE-2.0
15 //
16 // Unless required by applicable law or agreed to in writing, software
17 // distributed under the License is distributed on an "AS IS" BASIS,
18 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 // See the License for the specific language governing permissions and
20 // limitations under the License.
21 //
22 
23 
24 #ifndef _REFERENCES_HPP_
25 #define _REFERENCES_HPP_
26 
27 
29 #include "MSData.hpp"
30 
31 
32 namespace pwiz {
33 namespace msdata {
34 
35 
36 /// functions for resolving references from objects into the internal MSData lists
37 namespace References {
38 
39 
40 PWIZ_API_DECL void resolve(ParamContainer& paramContainer, const MSData& msd);
41 PWIZ_API_DECL void resolve(FileDescription& fileDescription, const MSData& msd);
42 PWIZ_API_DECL void resolve(ComponentList& componentList, const MSData& msd);
43 PWIZ_API_DECL void resolve(InstrumentConfiguration& instrumentConfiguration, const MSData& msd);
44 PWIZ_API_DECL void resolve(ProcessingMethod& processingMethod, const MSData& msd);
45 PWIZ_API_DECL void resolve(DataProcessing& dataProcesssing, const MSData& msd);
46 PWIZ_API_DECL void resolve(ScanSettings& dataProcesssing, const MSData& msd);
47 PWIZ_API_DECL void resolve(Precursor& precursor, const MSData& msd);
48 PWIZ_API_DECL void resolve(Product& product, const MSData& msd);
49 PWIZ_API_DECL void resolve(Scan& scan, const MSData& msd);
50 PWIZ_API_DECL void resolve(ScanList& List, const MSData& msd);
51 PWIZ_API_DECL void resolve(BinaryDataArray& binaryDataArray, const MSData& msd);
52 PWIZ_API_DECL void resolve(Spectrum& spectrum, const MSData& msd);
53 PWIZ_API_DECL void resolve(Chromatogram& chromatogram, const MSData& msd);
54 PWIZ_API_DECL void resolve(Run& run, const MSData& msd);
55 
56 
57 ///
58 /// Resolve internal references in an MSData object.
59 ///
60 /// For an MSData object using a SpectrumListSimple to hold Spectrum objects in memory,
61 /// these references will be resolved as well.
62 ///
63 /// File-backed SpectrumList implementations using lazy evaluation of a Spectrum need
64 /// to call resolve(spectrum, msd) before returning it to the client.
65 ///
66 PWIZ_API_DECL void resolve(MSData& msd);
67 
68 
69 } // namespace References
70 
71 
72 } // namespace msdata
73 } // namespace pwiz
74 
75 
76 #endif // _REFERENCES_HPP_
77