MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
DtRtiSaveFile Class Reference
+ Collaboration diagram for DtRtiSaveFile:

Public Member Functions

 DtRtiSaveFile (const char *filename)
 constructor More...
 
 DtRtiSaveFile (const char *filename, bool readOnly)
 constructor More...
 
virtual ~DtRtiSaveFile ()
 destructor More...
 
virtual const MAKRti::DtString & fileName ()
 filename More...
 
virtual bool isOk ()
 Return boolean: file initialized OK (call after instantiation and set read/write) More...
 
virtual void setForRead ()
 set for read More...
 
virtual void setForWrite ()
 set for write More...
 
virtual void setForAppend ()
 set for append More...
 
virtual const char * readNextPacket ()
 get the next packet, returns NULL if setup for writing. More...
 
virtual void writePacket (const char *packet, int length)
 write a packet, does nothing if set up for reading More...
 

Protected Attributes

bool myReadOnly
 
char * myCurrentPacket
 
FILE * myFp
 
MAKRti::DtString myFileName
 

Constructor & Destructor Documentation

DtRtiSaveFile::DtRtiSaveFile ( const char *  filename)

constructor

DtRtiSaveFile::DtRtiSaveFile ( const char *  filename,
bool  readOnly 
)

constructor

virtual DtRtiSaveFile::~DtRtiSaveFile ( )
virtual

destructor

Member Function Documentation

virtual const MAKRti::DtString& DtRtiSaveFile::fileName ( )
virtual

filename

virtual bool DtRtiSaveFile::isOk ( )
virtual

Return boolean: file initialized OK (call after instantiation and set read/write)

virtual const char* DtRtiSaveFile::readNextPacket ( )
virtual

get the next packet, returns NULL if setup for writing.

virtual void DtRtiSaveFile::setForAppend ( )
inlinevirtual

set for append

clears the file from the current packet on. (not implemented yet)

virtual void DtRtiSaveFile::setForRead ( )
virtual

set for read

changes the state of the file to read only and moves the file pointer to the beginning of the file.

virtual void DtRtiSaveFile::setForWrite ( )
virtual

set for write

clears the contents of the file and opens it writing.

virtual void DtRtiSaveFile::writePacket ( const char *  packet,
int  length 
)
virtual

write a packet, does nothing if set up for reading

Member Data Documentation

char* DtRtiSaveFile::myCurrentPacket
protected
MAKRti::DtString DtRtiSaveFile::myFileName
protected
FILE* DtRtiSaveFile::myFp
protected
bool DtRtiSaveFile::myReadOnly
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Mon Sep 7 15:40:32 EDT 2020 from SVN revision 217499
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)