ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/DBS/Servers/AppServer/interface/Cpp/Interface.hpp
Revision: 1.2
Committed: Thu Mar 9 21:32:12 2006 UTC (19 years, 2 months ago) by afaq
Branch: MAIN
Changes since 1.1: +2 -1 lines
Log Message:
getDatasetContents again working for new arch

File Contents

# User Rev Content
1 afaq 1.2 #include "stlvector.h"
2 afaq 1.1
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    
36     };
37    
38     class DBS__File {
39     public:
40     int* id 0;
41     std::string guid 0;
42     std::string logical_name 1;
43     std::string checksum 0;
44     long* filesize 0;
45     std::string status 1;
46     std::string type 1;
47     int* inblock 1;
48     };
49    
50    
51    
52     class DBS__EventCollection {
53     public:
54     int* collectionId 0;
55     int* collection_index 1;
56     int* numberOfEvents 0;
57     std::string collectionName 1;
58     DBS__EventCollection* parent 0;
59     std::string parentageType 1;
60     std::vector<DBS__File*> fileList 0;
61     };
62    
63     class DBS__Block {
64     public:
65     int* blockId 0;
66     std::string blockStatusName 1;
67     int* numberOfFiles 1;
68     long* numberOfBytes 1;
69     std::vector<DBS__EventCollection*> eventCollectionList 0;
70 afaq 1.2
71 afaq 1.1 };
72    
73    
74     int DBS__createPrimaryDataset(DBS__PrimaryDataset* primaryDataset, int& primaryDatasetId);
75     int DBS__createProcessedDataset(DBS__ProcessedDataset* processedDataset, int& processedDatasetId);
76     int DBS__createFileBlock(std::string datasetPathName, DBS__Block* block, int& fileBlockId);
77     int DBS__insertEventCollections(std::string datasetPathName, std::vector<DBS__EventCollection*> eventCollectionList, int& result);
78     int DBS__getDatasetContents(std::string datasetPathName, bool listFiles, std::vector<DBS__Block*>& blockList);
79     int DBS__getDatasetFileBlocks(std::string datasetPathName, std::vector<DBS__Block*>& blockList);
80