![]() |
MAK RTIspy API Documentation for HLA 1516
|
Collaboration diagram for DtRtiSaveFile:Public Member Functions | |
| DtRtiSaveFile (const char *filename) | |
| constructor | |
| DtRtiSaveFile (const char *filename, bool readOnly) | |
| constructor | |
| virtual | ~DtRtiSaveFile () |
| destructor | |
| virtual const MAKRti::DtString & | fileName () |
| filename | |
| virtual bool | isOk () |
| Return boolean: file initialized OK (call after instantiation and set read/write) | |
| virtual void | setForRead () |
| set for read | |
| virtual void | setForWrite () |
| set for write | |
| virtual void | setForAppend () |
| set for append | |
| virtual const char * | readNextPacket () |
| get the next packet, returns NULL if setup for writing. | |
| virtual void | writePacket (const char *packet, int length) |
| write a packet, does nothing if set up for reading | |
Protected Attributes | |
| bool | myReadOnly |
| char * | myCurrentPacket |
| FILE * | myFp |
| MAKRti::DtString | myFileName |
| DtRtiSaveFile::DtRtiSaveFile | ( | const char * | filename | ) |
constructor
References myCurrentPacket.
| DtRtiSaveFile::DtRtiSaveFile | ( | const char * | filename, |
| bool | readOnly | ||
| ) |
constructor
References myCurrentPacket, setForRead(), and setForWrite().
|
virtual |
destructor
References myCurrentPacket, myFp, and NULL.
|
virtual |
|
virtual |
Return boolean: file initialized OK (call after instantiation and set read/write)
Referenced by DtRtiExecFederateMgr::restoreLRC(), and DtRtiExecFederateMgr::saveLRC().
|
virtual |
get the next packet, returns NULL if setup for writing.
References myCurrentPacket, myFp, myReadOnly, NULL, and DtSaveDataHeader::packetSize.
Referenced by DtInteractionMgr::restore(), DtFomClassMgr::restore(), DtObjectClassInfo::restore(), DtRtiExecFederateMgr::restore(), DtObjectMgr::restore(), and DtObjectMgr::restoreObjectList().
|
inlinevirtual |
set for append
clears the file from the current packet on. (not implemented yet)
|
virtual |
set for read
changes the state of the file to read only and moves the file pointer to the beginning of the file.
References myFileName, myFp, myReadOnly, and NULL.
Referenced by DtRtiSaveFile().
|
virtual |
set for write
clears the contents of the file and opens it writing.
References myFileName, myFp, myReadOnly, and NULL.
Referenced by DtRtiSaveFile().
|
virtual |
write a packet, does nothing if set up for reading
References myFp, and myReadOnly.
Referenced by DtInteractionClassInfo::save(), DtInteractionMgr::save(), DtObjectClassInfo::save(), DtRtiExecFederateMgr::save(), DtObjectMgr::save(), and DtObjectMgr::saveObjectList().
|
protected |
Referenced by DtRtiSaveFile(), readNextPacket(), and ~DtRtiSaveFile().
|
protected |
Referenced by fileName(), setForRead(), and setForWrite().
|
protected |
Referenced by isOk(), readNextPacket(), setForRead(), setForWrite(), writePacket(), and ~DtRtiSaveFile().
|
protected |
Referenced by readNextPacket(), setForRead(), setForWrite(), and writePacket().