5 #ifndef BALL_CONCEPT_XDRPERSISTENCEMANAGER_H
6 #define BALL_CONCEPT_XDRPERSISTENCEMANAGER_H
8 #ifndef BALL_CONCEPT_PERSISTENCEMANAGER_H
12 #include <rpc/types.h>
82 virtual void writeHeader(
const char* type_name,
const char* name,
LongSize ptr)
89 virtual bool checkHeader(
const char* type_name,
const char* name,
LongSize& ptr)
96 virtual void writeTrailer(
const char* name = 0)
103 virtual bool checkTrailer(
const char* name = 0)
108 virtual void writeStreamHeader()
113 virtual void writeStreamTrailer()
118 virtual bool checkStreamHeader()
123 virtual bool checkStreamTrailer()
133 virtual void writeName(
const char* name)
138 virtual bool checkName(
const char* name)
143 virtual void writeStorableHeader(
const char* type_name,
const char* name)
148 virtual bool checkStorableHeader(
const char* type_name,
const char* name)
153 virtual void writePrimitiveHeader(
const char* type_name,
const char* name)
158 virtual bool checkPrimitiveHeader(
const char* type_name,
const char* name)
163 virtual void writeStorableTrailer()
168 virtual bool checkStorableTrailer()
173 virtual void writePrimitiveTrailer()
178 virtual bool checkPrimitiveTrailer()
183 virtual void writeObjectPointerHeader(
const char* type_name,
const char* name)
188 virtual bool checkObjectPointerHeader(
const char* type_name,
const char* name)
193 virtual void writeObjectReferenceHeader(
const char* type_name,
const char* name)
198 virtual bool checkObjectReferenceHeader(
const char* type_name,
const char* name)
203 virtual void writeObjectPointerArrayHeader(
const char* type_name,
const char* name,
Size size)
208 virtual bool checkObjectPointerArrayHeader(
const char* type_name,
const char* name,
Size& size)
213 virtual void writeObjectPointerArrayTrailer()
218 virtual bool checkObjectPointerArrayTrailer()
225 virtual void initializeOutputStream()
231 virtual void finalizeOutputStream()
238 virtual void initializeInputStream()
244 virtual void finalizeInputStream()
255 virtual void put(
const char c)
260 virtual void put(
const Byte b)
265 virtual void put(
const Index i)
270 virtual void put(
const Size s)
275 virtual void put(
const bool b)
280 virtual void put(
const Real f)
290 virtual void put(
const string& s)
305 virtual void get(
char&
c)
310 virtual void get(
Byte&
c)
315 virtual void get(
Index& s)
320 virtual void get(
Size& s)
325 virtual void get(
bool& b)
330 virtual void get(
Real&
f)
340 virtual void get(
string& s)
356 void setHandleStreamsExternally(
bool handle_externally);
378 #endif // BALL_CONCEPT_XDRPERSISTENCEMANAGER_H