#include <sim3DFile.h>
Public Member Functions | |
BACKUP (const STRING &filename) | |
~BACKUP () | |
void | StartList (SYMBOL start, SYMBOL sep, SYMBOL end, BOOLEAN force) |
void | StartListI (SYMBOL start, SYMBOL sep, SYMBOL end, BOOLEAN force) |
void | ListNext () |
void | EndList () |
void | WriteSymbol (SYMBOL) |
void | WriteIdent (const STRING &) |
void | WriteString (const STRING &) |
void | WriteReal (REAL) |
void | WriteInteger (INTEGER) |
void | WriteVector (const VECTOR &) |
void | WriteLine () |
void | WriteComment (const STRING &) |
void | WriteIdRealNext (const STRING &, REAL) |
void | WriteIdIntNext (const STRING &, INTEGER) |
void | WriteIdStrNext (const STRING &, const STRING &) |
Public Attributes | |
STRING | FileName |
BOOLEAN | FileOpen |
BOOLEAN | ErrorOccurred |
Private Member Functions | |
void | PrepareSymbol () |
Private Attributes | |
std::ofstream * | File |
LISTREC * | ListStack |
INTEGER | IndentLevel |
Definition at line 129 of file sim3DFile.h.
BACKUP::BACKUP | ( | const STRING & | filename | ) |
Definition at line 563 of file sim3DFile.cpp.
References ErrorOccurred, FileName, FileOpen, IndentLevel, ListStack, and TRUE.
BACKUP::~BACKUP | ( | ) |
void BACKUP::EndList | ( | ) |
Definition at line 677 of file sim3DFile.cpp.
References LISTREC::Force, LISTREC::Indent, IndentLevel, LISTREC::ListEnd, ListStack, LISTREC::ListStart, LISTREC::Next, LISTREC::Started, WriteLine(), and WriteSymbol().
Referenced by SIM3DPolyeder::WriteAttrs(), SIM3DGroup::WriteObj(), SIM3DElement::WriteObj(), SURFACEDESCR::WriteProperties(), and SENSCLASSVECTOR::WriteVector().
void BACKUP::ListNext | ( | ) |
Definition at line 669 of file sim3DFile.cpp.
References ListStack, LISTREC::Pending, and TRUE.
Referenced by SIM3DWorld::WriteAttrs(), SIM3DManoeuvrable::WriteAttrs(), SIM3DVehicle::WriteAttrs(), SIM3DUltraSonic::WriteAttrs(), SIM3DCamera::WriteAttrs(), SIM3DMultiSensor::WriteAttrs(), SIM3DSensor::WriteAttrs(), SIM3DMoveable::WriteAttrs(), SIM3DEmitter::WriteAttrs(), SIM3DPolyeder::WriteAttrs(), SIM3DGroup::WriteAttrs(), SIM3DElement::WriteAttrs(), COLORLIST::WriteColor(), WriteIdIntNext(), WriteIdRealNext(), WriteIdStrNext(), SURFACEDESCR::WriteProperties(), SIM3DGroup::WriteSubObjects(), and SENSCLASSVECTOR::WriteVector().
void BACKUP::PrepareSymbol | ( | ) | [private] |
Definition at line 697 of file sim3DFile.cpp.
References FALSE, LISTREC::Indent, LISTREC::ListSep, ListStack, LISTREC::ListStart, LISTREC::Next, LISTREC::Pending, LISTREC::Started, TRUE, WriteLine(), and WriteSymbol().
Referenced by WriteIdent(), WriteInteger(), WriteReal(), WriteString(), WriteSymbol(), and WriteVector().
Definition at line 654 of file sim3DFile.cpp.
References FALSE, and ListStack.
Referenced by SIM3DPolyeder::WriteAttrs(), SURFACEDESCR::WriteProperties(), and SENSCLASSVECTOR::WriteVector().
Definition at line 661 of file sim3DFile.cpp.
References IndentLevel, ListStack, and TRUE.
Referenced by SIM3DPolyeder::WriteAttrs(), SIM3DGroup::WriteObj(), SIM3DElement::WriteObj(), and SURFACEDESCR::WriteProperties().
void BACKUP::WriteComment | ( | const STRING & | ) |
Definition at line 647 of file sim3DFile.cpp.
References WriteLine().
Referenced by SIMULATION::SaveSim().
void BACKUP::WriteIdent | ( | const STRING & | ) |
Definition at line 590 of file sim3DFile.cpp.
References PrepareSymbol().
Referenced by SIM3DWorld::WriteAttrs(), SIM3DManoeuvrable::WriteAttrs(), SIM3DVehicle::WriteAttrs(), SIM3DUltraSonic::WriteAttrs(), SIM3DCamera::WriteAttrs(), SIM3DMultiSensor::WriteAttrs(), SIM3DSensor::WriteAttrs(), SIM3DMoveable::WriteAttrs(), SIM3DEmitter::WriteAttrs(), SIM3DPolyeder::WriteAttrs(), SIM3DGroup::WriteAttrs(), SIM3DElement::WriteAttrs(), COLORLIST::WriteColor(), WriteIdIntNext(), WriteIdRealNext(), WriteIdStrNext(), SIM3DElement::WriteObj(), SURFACEDESCR::WriteProperties(), SPECIALTEXTURE::WriteProperties(), and BITMAPTEXTURE::WriteProperties().
Definition at line 633 of file sim3DFile.cpp.
References ListNext(), WriteIdent(), and WriteInteger().
Referenced by SIM3DSensor::WriteAttrs(), and SIM3DElement::WriteAttrs().
Definition at line 626 of file sim3DFile.cpp.
References ListNext(), WriteIdent(), and WriteReal().
Referenced by SIM3DManoeuvrable::WriteAttrs(), SIM3DSensor::WriteAttrs(), SIM3DMoveable::WriteAttrs(), SIM3DSpotEmitter::WriteAttrs(), SIM3DEmitter::WriteAttrs(), and SIM3DElement::WriteAttrs().
Definition at line 640 of file sim3DFile.cpp.
References ListNext(), WriteIdent(), and WriteString().
Referenced by SIM3DBody::WriteAttrs(), and SIM3DElement::WriteAttrs().
void BACKUP::WriteInteger | ( | INTEGER | ) |
Definition at line 608 of file sim3DFile.cpp.
References PrepareSymbol().
Referenced by SIM3DMultiSensor::WriteAttrs(), SIM3DPolyeder::WriteAttrs(), WriteIdIntNext(), SURFACEDESCR::WriteProperties(), and SPECIALTEXTURE::WriteProperties().
void BACKUP::WriteLine | ( | ) |
Definition at line 620 of file sim3DFile.cpp.
References IndentLevel.
Referenced by EndList(), PrepareSymbol(), SIMULATION::SaveSim(), and WriteComment().
void BACKUP::WriteReal | ( | REAL | ) |
Definition at line 602 of file sim3DFile.cpp.
References PrepareSymbol().
Referenced by SIM3DUltraSonic::WriteAttrs(), SIM3DMultiSensor::WriteAttrs(), SIM3DSensor::WriteAttrs(), SIM3DMoveable::WriteAttrs(), SIM3DPolyeder::WriteAttrs(), WriteIdRealNext(), SURFACEDESCR::WriteProperties(), and SENSCLASSVECTOR::WriteVector().
void BACKUP::WriteString | ( | const STRING & | ) |
Definition at line 596 of file sim3DFile.cpp.
References PrepareSymbol().
Referenced by SIM3DWorld::WriteAttrs(), SIM3DPolyeder::WriteAttrs(), SIM3DGroup::WriteAttrs(), COLORLIST::WriteColor(), WriteIdStrNext(), SIM3DElement::WriteObj(), SURFACEDESCR::WriteProperties(), TEXTUREDESCR::WriteProperties(), and BITMAPTEXTURE::WriteProperties().
void BACKUP::WriteSymbol | ( | SYMBOL | ) |
Definition at line 583 of file sim3DFile.cpp.
References PrepareSymbol(), sNull, and SymbolRepr().
Referenced by EndList(), PrepareSymbol(), SIMULATION::SaveSim(), SIM3DMultiSensor::WriteAttrs(), SIM3DSensor::WriteAttrs(), SIM3DMoveable::WriteAttrs(), SIM3DPolyeder::WriteAttrs(), SIM3DGroup::WriteAttrs(), SIM3DElement::WriteAttrs(), and SURFACEDESCR::WriteProperties().
void BACKUP::WriteVector | ( | const VECTOR & | ) |
Definition at line 614 of file sim3DFile.cpp.
References PrepareSymbol(), VECTOR::x, VECTOR::y, and VECTOR::z.
Referenced by SIM3DManoeuvrable::WriteAttrs(), SIM3DVehicle::WriteAttrs(), SIM3DPolyeder::WriteAttrs(), SIM3DElement::WriteAttrs(), and COLORLIST::WriteColor().
std::ofstream* BACKUP::File [private] |
Definition at line 131 of file sim3DFile.h.
INTEGER BACKUP::IndentLevel [private] |
Definition at line 134 of file sim3DFile.h.
Referenced by BACKUP(), EndList(), StartListI(), and WriteLine().
LISTREC* BACKUP::ListStack [private] |
Definition at line 132 of file sim3DFile.h.
Referenced by BACKUP(), EndList(), ListNext(), PrepareSymbol(), StartList(), StartListI(), and ~BACKUP().