7 #ifndef BALL_CONCEPT_TEXTPERSISTENCEMANAGER_H
8 #define BALL_CONCEPT_TEXTPERSISTENCEMANAGER_H
10 #ifndef BALL_CONCEPT_PERSISTENCEMANAGER_H
74 virtual void writeHeader(
const char* type_name,
const char* name,
LongSize ptr);
78 virtual bool checkHeader(
const char* type_name,
const char* name,
LongSize& ptr);
82 virtual void writeTrailer(
const char* name = 0);
86 virtual bool checkTrailer(
const char* name = 0);
90 virtual void writeStreamHeader();
94 virtual void writeStreamTrailer();
98 virtual bool checkStreamHeader();
102 virtual bool checkStreamTrailer();
110 virtual void writeName(
const char* name);
114 virtual bool checkName(
const char* name);
118 virtual void writeStorableHeader(
const char* type_name,
const char* name);
122 virtual bool checkStorableHeader(
const char* type_name,
const char* name);
126 virtual void writePrimitiveHeader(
const char* type_name,
const char* name);
130 virtual bool checkPrimitiveHeader(
const char* type_name,
const char* name);
134 virtual void writeStorableTrailer();
138 virtual bool checkStorableTrailer();
142 virtual void writePrimitiveTrailer();
146 virtual bool checkPrimitiveTrailer();
150 virtual void writeObjectPointerHeader(
const char* type_name,
const char* name);
154 virtual bool checkObjectPointerHeader(
const char* type_name,
const char* name);
158 virtual void writeObjectReferenceHeader(
const char* type_name,
const char* name);
162 virtual bool checkObjectReferenceHeader(
const char* type_name,
const char* name);
166 virtual void writeObjectPointerArrayHeader(
const char* type_name,
const char* name,
Size size);
170 virtual bool checkObjectPointerArrayHeader(
const char* type_name,
const char* name,
Size& size);
174 virtual void writeObjectPointerArrayTrailer();
178 virtual bool checkObjectPointerArrayTrailer();
187 virtual void put(
const char c);
191 virtual void put(
const Byte c);
195 virtual void put(
const Index s);
199 virtual void put(
const Size s);
203 virtual void put(
const bool b);
207 virtual void put(
const Real f);
215 virtual void put(
const string& s);
228 virtual void get(
char&
c);
232 virtual void get(
Byte& b);
236 virtual void get(
Index& i);
240 virtual void get(
Size& s);
244 virtual void get(
bool& b);
248 virtual void get(
Real&
f);
256 virtual void get(
string& s);
273 virtual bool expect(
const String& value);
277 virtual const char* indent();
289 #endif // BALL_CONCEPT_TEXTPERSISTENCEMANAGER_H