cee::ug::SituationIo Class Reference

A class to read and write a Situation. More...

Static Public Member Functions

static bool readFolder (Situation *situation, const Str &folder)
 Loads the situation from the given folder. More...
 
static bool writeFolder (const Situation *situation, const Str &folder)
 Saves the situation as the given folder. More...
 
static bool readArchiveFile (Situation *situation, const Str &filename)
 Loads the situation from the given archive. More...
 
static bool writeArchiveFile (const Situation *situation, const Str &filename)
 Saves the situation as the given archive. More...
 

Additional Inherited Members

- Public Member Functions inherited from cee::RefCountedObject
void addRef () const
 Increments the reference count for this object. More...
 
void release () const
 Decrements the reference count for this object. More...
 
int refCount () const
 Returns the reference count for this object. More...
 
void setRefCountZero () const
 Sets the ref count to zero, but DOES NOT delete the object. More...
 
Inheritance diagram for cee::ug::SituationIo:
cee::RefCountedObject

Detailed Description

A class to read and write a Situation.

Member Function Documentation

bool cee::ug::SituationIo::readArchiveFile ( Situation situation,
const Str filename 
)
static

Loads the situation from the given archive.

bool cee::ug::SituationIo::readFolder ( Situation situation,
const Str folder 
)
static

Loads the situation from the given folder.

bool cee::ug::SituationIo::writeArchiveFile ( const Situation situation,
const Str filename 
)
static

Saves the situation as the given archive.

bool cee::ug::SituationIo::writeFolder ( const Situation situation,
const Str folder 
)
static

Saves the situation as the given folder.