1 |
#ifndef _DBSClient_hpp_
|
2 |
#define _DBSClient_hpp_
|
3 |
|
4 |
#include "Message.hpp"
|
5 |
#include "Configuration.hpp"
|
6 |
#include "ObjectLayerTables.hpp"
|
7 |
#include "Util.hpp"
|
8 |
#include "common.hpp"
|
9 |
#include <log4cxx/logger.h>
|
10 |
#include <iostream>
|
11 |
|
12 |
class DBSClient {
|
13 |
|
14 |
public:
|
15 |
DBSClient();
|
16 |
~DBSClient();
|
17 |
|
18 |
int createPrimaryDataset(Primarydatasetmultirow* aRow, PrimarydatasetMultiTable* table) throw (const char*);
|
19 |
int readPrimaryDataset(Primarydatasetmultirow* aRow, PrimarydatasetMultiTable* table) throw (const char*);
|
20 |
int createProcessedDataset(Processingpathmultirow* aRow, ProcessingpathMultiTable* table) throw (const char*);
|
21 |
int readProcessedDataset(Processingpathmultirow* aRow, ProcessingpathMultiTable* table) throw (const char*);
|
22 |
int createEventCollection(Evcollviewmultirow* aRow, EvcollviewMultiTable* table) throw (const char*);
|
23 |
int readEventCollection(Evcollviewmultirow* aRow, EvcollviewMultiTable* table) throw (const char*);
|
24 |
int insertFiles(vector<Fileviewmultirow*> rowVector, FileviewMultiTable* table) throw (const char*);
|
25 |
int readFiles(Fileviewmultirow* aRow, FileviewMultiTable* table) throw (const char*);
|
26 |
int createBlock(Blockviewmultirow* aRow, BlockviewMultiTable* table) throw (const char*);
|
27 |
int readBlock(Blockviewmultirow* aRow, BlockviewMultiTable* table) throw (const char*);
|
28 |
int readPdblock(Pdblockviewmultirow* aRow, PdblockviewMultiTable* table) throw (const char*);
|
29 |
//int readDatasetProvenenceParent(Datasetprovenenceevparentmultirow* aRow, DatasetprovenenceevparentMultiTable* table) throw (const char*);
|
30 |
//int readDatasetProvenenceChild(Datasetprovenenceevchildmultirow* aRow, DatasetprovenenceevchildMultiTable* table) throw (const char*);
|
31 |
int readCrabEC(Crabevcollviewmultirow* aRow, CrabevcollviewMultiTable* table) throw (const char*);
|
32 |
|
33 |
private:
|
34 |
int callServer(void);
|
35 |
bool localServer;
|
36 |
Util util;
|
37 |
log4cxx::LoggerPtr logger;
|
38 |
};
|
39 |
|
40 |
#endif
|