Loading...
Searching...
No Matches
textPersistenceManager.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: textPersistenceManager.h,v 1.21 2005/10/23 12:02:17 oliver Exp $
//
#ifndef BALL_CONCEPT_TEXTPERSISTENCEMANAGER_H
#define BALL_CONCEPT_TEXTPERSISTENCEMANAGER_H
#ifndef BALL_CONCEPT_PERSISTENCEMANAGER_H
# include <BALL/CONCEPT/persistenceManager.h>
#endif
namespace BALL
{
class BALL_EXPORT TextPersistenceManager
: public PersistenceManager
{
public:
TextPersistenceManager();
TextPersistenceManager(std::istream& is);
TextPersistenceManager(std::ostream& os);
TextPersistenceManager(std::istream& is, std::ostream& os);
virtual void writeHeader(const char* type_name, const char* name, LongSize ptr);
virtual bool checkHeader(const char* type_name, const char* name, LongSize& ptr);
virtual void writeTrailer(const char* name = 0);
virtual bool checkTrailer(const char* name = 0);
virtual void writeStreamHeader();
virtual void writeStreamTrailer();
virtual bool checkStreamHeader();
virtual bool checkStreamTrailer();
virtual bool getObjectHeader(String& type_name, LongSize& ptr);
virtual void writeName(const char* name);
virtual bool checkName(const char* name);
virtual void writeStorableHeader(const char* type_name, const char* name);
virtual bool checkStorableHeader(const char* type_name, const char* name);
virtual void writePrimitiveHeader(const char* type_name, const char* name);
virtual bool checkPrimitiveHeader(const char* type_name, const char* name);
virtual void writeStorableTrailer();
virtual bool checkStorableTrailer();
virtual void writePrimitiveTrailer();
virtual bool checkPrimitiveTrailer();
virtual void writeObjectPointerHeader(const char* type_name, const char* name);
virtual bool checkObjectPointerHeader(const char* type_name, const char* name);
virtual void writeObjectReferenceHeader(const char* type_name, const char* name);
virtual bool checkObjectReferenceHeader(const char* type_name, const char* name);
virtual void writeObjectPointerArrayHeader(const char* type_name, const char* name, Size size);
virtual bool checkObjectPointerArrayHeader(const char* type_name, const char* name, Size& size);
virtual void writeObjectPointerArrayTrailer();
virtual bool checkObjectPointerArrayTrailer();
virtual void put(const char c);
virtual void put(const Byte c);
virtual void put(const Index s);
virtual void put(const Size s);
virtual void put(const bool b);
virtual void put(const Real f);
virtual void put(const DoubleReal d);
virtual void put(const string& s);
virtual void put(const LongSize p);
virtual void get(char& c);
virtual void get(Byte& b);
virtual void get(Index& i);
virtual void get(Size& s);
virtual void get(bool& b);
virtual void get(Real& f);
virtual void get(DoubleReal& d);
virtual void get(string& s);
virtual void get(LongSize& p);
protected:
virtual bool expect(const String& value);
virtual const char* indent();
private:
static const char* INDENT_STRING;
static const Size MAX_INDENT;
Size indent_depth_;
};
} // namespace BALL
#endif // BALL_CONCEPT_TEXTPERSISTENCEMANAGER_H
BALL_EXPORT
#define BALL_EXPORT
Definition COMMON/global.h:50
BALL::PersistenceManager::PersistenceManager
PersistenceManager()
BALL::String
Definition string.h:57
BALL::TextPersistenceManager::writeObjectReferenceHeader
virtual void writeObjectReferenceHeader(const char *type_name, const char *name)
BALL::TextPersistenceManager::put
virtual void put(const char c)
BALL::TextPersistenceManager::writeObjectPointerArrayHeader
virtual void writeObjectPointerArrayHeader(const char *type_name, const char *name, Size size)
BALL::TextPersistenceManager::get
virtual void get(char &c)
BALL::TextPersistenceManager::put
virtual void put(const LongSize p)
BALL::TextPersistenceManager::put
virtual void put(const Index s)
BALL::TextPersistenceManager::put
virtual void put(const DoubleReal d)
BALL::TextPersistenceManager::checkObjectReferenceHeader
virtual bool checkObjectReferenceHeader(const char *type_name, const char *name)
BALL::TextPersistenceManager::checkStreamHeader
virtual bool checkStreamHeader()
BALL::TextPersistenceManager::get
virtual void get(DoubleReal &d)
BALL::TextPersistenceManager::checkStreamTrailer
virtual bool checkStreamTrailer()
BALL::TextPersistenceManager::getObjectHeader
virtual bool getObjectHeader(String &type_name, LongSize &ptr)
BALL::TextPersistenceManager::writePrimitiveHeader
virtual void writePrimitiveHeader(const char *type_name, const char *name)
BALL::TextPersistenceManager::writeHeader
virtual void writeHeader(const char *type_name, const char *name, LongSize ptr)
BALL::TextPersistenceManager::writeObjectPointerArrayTrailer
virtual void writeObjectPointerArrayTrailer()
BALL::TextPersistenceManager::writeStorableHeader
virtual void writeStorableHeader(const char *type_name, const char *name)
BALL::TextPersistenceManager::checkHeader
virtual bool checkHeader(const char *type_name, const char *name, LongSize &ptr)
BALL::TextPersistenceManager::checkName
virtual bool checkName(const char *name)
BALL::TextPersistenceManager::put
virtual void put(const Size s)
BALL::TextPersistenceManager::expect
virtual bool expect(const String &value)
BALL::TextPersistenceManager::checkObjectPointerArrayHeader
virtual bool checkObjectPointerArrayHeader(const char *type_name, const char *name, Size &size)
BALL::TextPersistenceManager::writePrimitiveTrailer
virtual void writePrimitiveTrailer()
BALL::TextPersistenceManager::checkPrimitiveTrailer
virtual bool checkPrimitiveTrailer()
BALL::TextPersistenceManager::writeName
virtual void writeName(const char *name)
BALL::TextPersistenceManager::TextPersistenceManager
TextPersistenceManager(std::istream &is, std::ostream &os)
BALL::TextPersistenceManager::TextPersistenceManager
TextPersistenceManager()
BALL::TextPersistenceManager::checkPrimitiveHeader
virtual bool checkPrimitiveHeader(const char *type_name, const char *name)
BALL::TextPersistenceManager::get
virtual void get(Byte &b)
BALL::TextPersistenceManager::TextPersistenceManager
TextPersistenceManager(std::istream &is)
BALL::TextPersistenceManager::indent
virtual const char * indent()
BALL::TextPersistenceManager::put
virtual void put(const bool b)
BALL::TextPersistenceManager::get
virtual void get(Real &f)
BALL::TextPersistenceManager::get
virtual void get(string &s)
BALL::TextPersistenceManager::get
virtual void get(Index &i)
BALL::TextPersistenceManager::writeStorableTrailer
virtual void writeStorableTrailer()
BALL::TextPersistenceManager::TextPersistenceManager
TextPersistenceManager(std::ostream &os)
BALL::TextPersistenceManager::writeStreamHeader
virtual void writeStreamHeader()
BALL::TextPersistenceManager::put
virtual void put(const string &s)
BALL::TextPersistenceManager::put
virtual void put(const Real f)
BALL::TextPersistenceManager::checkObjectPointerHeader
virtual bool checkObjectPointerHeader(const char *type_name, const char *name)
BALL::TextPersistenceManager::checkObjectPointerArrayTrailer
virtual bool checkObjectPointerArrayTrailer()
BALL::TextPersistenceManager::get
virtual void get(bool &b)
BALL::TextPersistenceManager::writeTrailer
virtual void writeTrailer(const char *name=0)
BALL::TextPersistenceManager::writeObjectPointerHeader
virtual void writeObjectPointerHeader(const char *type_name, const char *name)
BALL::TextPersistenceManager::checkStorableHeader
virtual bool checkStorableHeader(const char *type_name, const char *name)
BALL::TextPersistenceManager::put
virtual void put(const Byte c)
BALL::TextPersistenceManager::get
virtual void get(LongSize &p)
BALL::TextPersistenceManager::get
virtual void get(Size &s)
BALL::TextPersistenceManager::checkTrailer
virtual bool checkTrailer(const char *name=0)
BALL::TextPersistenceManager::checkStorableTrailer
virtual bool checkStorableTrailer()
BALL::TextPersistenceManager::writeStreamTrailer
virtual void writeStreamTrailer()
BALL
Definition constants.h:13
BALL::Size
BALL_SIZE_TYPE Size
Definition COMMON/global.h:114
BALL::DoubleReal
double DoubleReal
Definition COMMON/global.h:156
BALL::LongSize
BALL_ULONG64_TYPE LongSize
Definition COMMON/global.h:192
BALL::Byte
unsigned char Byte
Definition COMMON/global.h:183
BALL::Index
BALL_INDEX_TYPE Index
Definition COMMON/global.h:105
BALL::Real
float Real
Definition COMMON/global.h:148
persistenceManager.h