ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/CMSSW/Alignment/CommonAlignmentAlgorithm/interface/AlignmentUserVariablesIO.h
Revision: 1.2
Committed: Mon Nov 13 08:40:12 2006 UTC (18 years, 5 months ago) by flucke
Content type: text/plain
Branch: MAIN
CVS Tags: CMSSW_1_2_6, CMSSW_1_2_5, CMSSW_1_2_4, CMSSW_1_2_0_4821, CMSSW_1_2_0_g4_82p01, CMSSW_1_2_3, CMSSW_1_2_0_g4_82, CMSSW_1_2_2, CMSSW_1_2_1, CMSSW_1_2_0_g4_81, CMSSW_1_2_0_SL4, CMSSW_1_2_0, V00-08-00, CMSSW_1_2_0_pre9, CMSSW_1_2_0_pre8_g4_81, CMSSW_1_2_0_pre8, V00-07-03, CMSSW_1_2_0_pre6, CMSSW_1_2_0_pre5, V00-07-02
Changes since 1.1: +1 -1 lines
Log Message:
- many const char* instead of char* as argument
- some few class arguments by const reference

File Contents

# User Rev Content
1 fpschill 1.1 #ifndef AlignmentUserVariablesIO_H
2     #define AlignmentUserVariablesIO_H
3    
4     #include "Alignment/CommonAlignment/interface/Alignable.h"
5     #include "Alignment/CommonAlignment/interface/AlignmentParameters.h"
6    
7     #include<vector>
8    
9     /** abstract base class for I/O of AlignmentUserVariables;
10     * NOTE: New objects AlignmentUserVariables are created by the read
11     * methods. They are deleted when the destructor of this class
12     * is called.
13     */
14    
15     class AlignmentUserVariablesIO
16     {
17    
18     protected:
19    
20     virtual ~AlignmentUserVariablesIO();
21    
22     /** open IO */
23 flucke 1.2 virtual int open(const char* filename, int iteration, bool writemode) =0;
24 fpschill 1.1
25     /** close IO */
26     virtual int close(void) =0;
27    
28     /** write AlignmentUserVariables of one Alignable */
29     virtual int writeOne(Alignable* ali) =0;
30    
31     /** read AlignmentUserVariables of one Alignable */
32     virtual AlignmentUserVariables* readOne(Alignable* ali, int& ierr) =0;
33    
34     /** write AlignmentUserVariables of many Alignables */
35     int write(const std::vector<Alignable*>& alivec, bool validCheck);
36    
37     /** read AlignmentUserVariables of many Alignables */
38     std::vector<AlignmentUserVariables*> read(const std::vector<Alignable*>& alivec,
39     int& ierr);
40    
41     // data members
42    
43     std::vector<AlignmentUserVariables*> theReadUserVariables;
44    
45     };
46    
47     #endif