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
|