CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
IRelationalStreamer.h
Go to the documentation of this file.
1 #ifndef INCLUDE_ORA_IRELATIONALSTREAMER_H
2 #define INCLUDE_ORA_IRELATIONALSTREAMER_H
3 
4 #define MAXARRAYSIZE 65000
5 
6 //
7 #include <vector>
8 
9 namespace ora {
10 
11  class DataElement;
12  class IRelationalData;
13  class RelationalBuffer;
14 
16 
17  public:
18 
20  virtual ~IRelationalWriter(){
21  }
22 
23  virtual bool build( DataElement& offset, IRelationalData& relationalData, RelationalBuffer& operationBuffer ) = 0;
24 
25  virtual void setRecordId( const std::vector<int>& identity ) = 0;
26 
28  virtual void write( int oid, const void* data ) = 0;
29 
30  };
31 
32 
34 
35  public:
36 
38  }
39 
40  virtual bool build( DataElement& offset, IRelationalData& relationalData, RelationalBuffer& operationBuffer) = 0;
41 
42  virtual void setRecordId( const std::vector<int>& identity ) = 0;
43 
45  virtual void update( int oid, const void* data ) = 0;
46  };
47 
48 
50 
51  public:
52 
53  virtual ~IRelationalReader(){
54  }
55 
56  virtual bool build( DataElement& offset, IRelationalData& relationalData ) = 0;
57 
58  virtual void select( int oid ) = 0;
59 
60  virtual void setRecordId( const std::vector<int>& identity ) = 0;
61 
63  virtual void read( void* address ) = 0;
64 
65  virtual void clear() = 0;
66 
67  };
68 
70  public:
73  }
74 
75  virtual IRelationalWriter* newWriter() = 0;
76 
77  virtual IRelationalUpdater* newUpdater() = 0;
78 
79  virtual IRelationalReader* newReader() = 0;
80  };
81 }
82 
83 #endif
84 
85 
virtual bool build(DataElement &offset, IRelationalData &relationalData, RelationalBuffer &operationBuffer)=0
virtual IRelationalUpdater * newUpdater()=0
virtual ~IRelationalStreamer()
Destructor.
virtual void setRecordId(const std::vector< int > &identity)=0
virtual ~IRelationalWriter()
Destructor.
virtual void write(int oid, const void *data)=0
Writes a data element.
virtual IRelationalWriter * newWriter()=0
virtual bool build(DataElement &offset, IRelationalData &relationalData)=0
virtual void setRecordId(const std::vector< int > &identity)=0
virtual void read(void *address)=0
Reads a data element.
virtual bool build(DataElement &offset, IRelationalData &relationalData, RelationalBuffer &operationBuffer)=0
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
virtual void setRecordId(const std::vector< int > &identity)=0
virtual IRelationalReader * newReader()=0
virtual void update(int oid, const void *data)=0
Updates a data element.
virtual void clear()=0
virtual void select(int oid)=0