1 |
#import "stlvector.h"
|
2 |
|
3 |
class DBS__PrimaryDataset {
|
4 |
public:
|
5 |
int* primaryDatasetId 0;
|
6 |
std::string name 1;
|
7 |
|
8 |
};
|
9 |
|
10 |
class DBS__Application {
|
11 |
public:
|
12 |
int* applicationId 0;
|
13 |
std::string executable 1;
|
14 |
std::string version 1;
|
15 |
std::string family 1;
|
16 |
std::string parameterSet 1;
|
17 |
};
|
18 |
class DBS__ProcessingPath {
|
19 |
public:
|
20 |
int* pathId 0;
|
21 |
//DBS__ProcessingPath* parent 0;
|
22 |
std::string parent 0;
|
23 |
DBS__Application* application 1;
|
24 |
std::string dataTier 1;
|
25 |
|
26 |
};
|
27 |
|
28 |
class DBS__ProcessedDataset {
|
29 |
public:
|
30 |
int* id 0;
|
31 |
std::string processedDatasetName 1;
|
32 |
std::string primaryDatasetName 1;
|
33 |
DBS__ProcessingPath* processingPath 1;
|
34 |
//char isDatasetOpen 1;
|
35 |
bool isDatasetOpen 1;
|
36 |
};
|
37 |
|
38 |
class DBS__File {
|
39 |
public:
|
40 |
int* id 0;
|
41 |
std::string guid 0;
|
42 |
std::string logicalFileName 1;
|
43 |
std::string checksum 0;
|
44 |
//long* filesize 0;
|
45 |
int* fileSize 0;
|
46 |
std::string fileStatus 1;
|
47 |
std::string fileType 1;
|
48 |
int* fileBlockId 1;
|
49 |
};
|
50 |
|
51 |
|
52 |
|
53 |
class DBS__EventCollection {
|
54 |
public:
|
55 |
int* collectionId 0;
|
56 |
int* collectionIndex 1;
|
57 |
int* numberOfEvents 0;
|
58 |
std::string status 0;
|
59 |
std::string collectionName 1;
|
60 |
std::string datasetPathName 1;
|
61 |
DBS__EventCollection* parent 0;
|
62 |
std::string parentageType 0;
|
63 |
std::vector<DBS__File*> fileList 0;
|
64 |
};
|
65 |
|
66 |
class DBS__Block {
|
67 |
public:
|
68 |
int* blockId 0;
|
69 |
std::string blockStatusName 1;
|
70 |
std::string blockName 0;
|
71 |
int* numberOfFiles 1;
|
72 |
//long* numberOfBytes 1;
|
73 |
int* numberOfBytes 1;
|
74 |
std::vector<DBS__EventCollection*> eventCollectionList 0;
|
75 |
|
76 |
};
|
77 |
|
78 |
|
79 |
int DBS__createPrimaryDataset(DBS__PrimaryDataset* primaryDataset, int& primaryDatasetId);
|
80 |
int DBS__createProcessedDataset(DBS__ProcessedDataset* processedDataset, int& processedDatasetId);
|
81 |
int DBS__createFileBlock(std::string datasetPathName, DBS__Block* block, int& fileBlockId);
|
82 |
int DBS__insertEventCollections(std::vector<DBS__EventCollection*> eventCollectionList, int& result);
|
83 |
int DBS__mergeEventCollections(std::vector<DBS__EventCollection*> inputEventCollectionList, DBS__EventCollection* outputEventCollection, int& result);
|
84 |
int DBS__getDatasetContents(std::string datasetPathName, bool listFiles, std::vector<DBS__Block*>& blockList);
|
85 |
int DBS__getDatasetFileBlocks(std::string datasetPathName, std::vector<DBS__Block*>& blockList);
|
86 |
int DBS__listDataset(std::string datasetPathName, std::vector<std::string>& datasetList);
|