![]() |
VR-Forces 4.0.4 Class Documentation
|
DtIfFileOp is the base class of the content portion of file operation messages. More...

Public Member Functions | |
| DtIfFileOp () | |
| default constructor | |
| DtIfFileOp (const DtIfFileOp &orig) | |
| copy constructor | |
| const DtIfFileOp & | operator= (const DtIfFileOp &orig) |
| assignment operator | |
| virtual | ~DtIfFileOp () |
| virtual int | type () const =0 |
| Override this with the type of file message name the operation is for, so the right manager can register a callback on it; use const strings found in msgTypes.h. | |
| virtual DtSimInterfaceContent * | clone () const =0 |
| virtual const DtString & | fileName () const |
| Name of the file to operate on. | |
| virtual void | setFileName (const DtString &fileName) |
| virtual int | fileOp () const |
| The I/O type of the operation (DtReadFileOpType/DtWriteFileOpType). | |
| virtual void | setFileOp (int fileOp) |
| virtual int | netRepSize () const |
| virtual bool | setFromNet (const char *contentBuffer, unsigned contentSize) |
| virtual bool | setToNet () |
| virtual void | printDataToString (DtString &str) |
Protected Attributes | |
| DtString | myFileName |
| int | myFileOp |
DtIfFileOp is the base class of the content portion of file operation messages.
Messages derived from this class are typically only sent from front-end to the back-end.
Content-Type: Not applicable.
Parameters: fileName - A DtString that is the filename associated with this opera- tion.
fileOp - A DtString that is the file I/O operation to perform, read (DtReadFileOpType) or write (DtWriteFileOpType).
default constructor
| DtIfFileOp::DtIfFileOp | ( | const DtIfFileOp & | orig | ) |
copy constructor
| virtual DtIfFileOp::~DtIfFileOp | ( | ) | [virtual] |
| const DtIfFileOp& DtIfFileOp::operator= | ( | const DtIfFileOp & | orig | ) |
assignment operator
| virtual int DtIfFileOp::type | ( | ) | const [pure virtual] |
Override this with the type of file message name the operation is for, so the right manager can register a callback on it; use const strings found in msgTypes.h.
Currently, one of DtOverlayOpMessageName, DtPlanOpMessageName, or DtOrderOfBattleOpMessageName.
Implements DtSimInterfaceContent.
Implemented in DtIfObjectParametersOp, DtIfOrderOfBattleOp, DtIfPlanOp, DtIfOverlayOp, and DtIfTerrainOp.
| virtual DtSimInterfaceContent* DtIfFileOp::clone | ( | ) | const [pure virtual] |
Implements DtSimInterfaceContent.
Implemented in DtIfObjectParametersOp, DtIfOrderOfBattleOp, DtIfPlanOp, DtIfOverlayOp, and DtIfTerrainOp.
| virtual const DtString& DtIfFileOp::fileName | ( | ) | const [virtual] |
Name of the file to operate on.
| virtual void DtIfFileOp::setFileName | ( | const DtString & | fileName | ) | [virtual] |
| virtual int DtIfFileOp::fileOp | ( | ) | const [virtual] |
The I/O type of the operation (DtReadFileOpType/DtWriteFileOpType).
| virtual void DtIfFileOp::setFileOp | ( | int | fileOp | ) | [virtual] |
| virtual int DtIfFileOp::netRepSize | ( | ) | const [virtual] |
Reimplemented from DtSimInterfaceContent.
| virtual bool DtIfFileOp::setFromNet | ( | const char * | contentBuffer, |
| unsigned | contentSize | ||
| ) | [virtual] |
Reimplemented from DtSimInterfaceContent.
| virtual bool DtIfFileOp::setToNet | ( | ) | [virtual] |
Reimplemented from DtSimInterfaceContent.
| virtual void DtIfFileOp::printDataToString | ( | DtString & | str | ) | [virtual] |
Reimplemented from DtSimInterfaceContent.
DtString DtIfFileOp::myFileName [protected] |
int DtIfFileOp::myFileOp [protected] |