ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/DBS/Servers/AppServer/interface/Cpp/Interface.hpp
Revision: 1.4
Committed: Thu Apr 20 21:34:51 2006 UTC (19 years ago) by sekhri
Branch: MAIN
CVS Tags: DBS_0_0_2, DBS_0_0_1, pre_DBS_0_0_1, post_dict_type_checking_merge, post_MiniPythonAPI_merged_to_trunk, pre_MiniPythonAPI_merge_to_trunk, HEAD
Changes since 1.3: +2 -2 lines
Log Message:
New Schema and Fast Performace in Server

File Contents

# User Rev Content
1 sekhri 1.3 #import "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 sekhri 1.3 //char isDatasetOpen 1;
35     bool isDatasetOpen 1;
36 afaq 1.1 };
37    
38     class DBS__File {
39     public:
40     int* id 0;
41     std::string guid 0;
42 sekhri 1.3 std::string logicalFileName 1;
43 afaq 1.1 std::string checksum 0;
44 sekhri 1.3 //long* filesize 0;
45     int* fileSize 0;
46     std::string fileStatus 1;
47     std::string fileType 1;
48     int* fileBlockId 1;
49 afaq 1.1 };
50    
51    
52    
53     class DBS__EventCollection {
54     public:
55     int* collectionId 0;
56 sekhri 1.3 int* collectionIndex 1;
57 afaq 1.1 int* numberOfEvents 0;
58 sekhri 1.4 std::string status 0;
59 afaq 1.1 std::string collectionName 1;
60 sekhri 1.3 std::string datasetPathName 1;
61 afaq 1.1 DBS__EventCollection* parent 0;
62 sekhri 1.3 std::string parentageType 0;
63 afaq 1.1 std::vector<DBS__File*> fileList 0;
64     };
65    
66     class DBS__Block {
67     public:
68     int* blockId 0;
69     std::string blockStatusName 1;
70 sekhri 1.3 std::string blockName 0;
71 afaq 1.1 int* numberOfFiles 1;
72 sekhri 1.3 //long* numberOfBytes 1;
73     int* numberOfBytes 1;
74 afaq 1.1 std::vector<DBS__EventCollection*> eventCollectionList 0;
75 afaq 1.2
76 afaq 1.1 };
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 sekhri 1.3 int DBS__insertEventCollections(std::vector<DBS__EventCollection*> eventCollectionList, int& result);
83 sekhri 1.4 int DBS__mergeEventCollections(std::vector<DBS__EventCollection*> inputEventCollectionList, DBS__EventCollection* outputEventCollection, int& result);
84 afaq 1.1 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 sekhri 1.3 int DBS__listDataset(std::string datasetPathName, std::vector<std::string>& datasetList);