VR-Forces 4.2 Class Documentation
List of all members | Public Member Functions | Protected Attributes
DtIfFileOp Class Reference

DtIfFileOp is the base class of the content portion of file operation messages. More...

Inheritance diagram for DtIfFileOp:
Inheritance graph
[legend]

Public Member Functions

 DtIfFileOp ()
 default constructor
 DtIfFileOp (const DtIfFileOp &orig)
 copy constructor
const DtIfFileOpoperator= (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 DtSimInterfaceContentclone () const =0
virtual const DtStringfileName () 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

Detailed Description

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).

Constructor & Destructor Documentation

DtIfFileOp::DtIfFileOp ( )

default constructor

DtIfFileOp::DtIfFileOp ( const DtIfFileOp orig)

copy constructor

virtual DtIfFileOp::~DtIfFileOp ( )
virtual

Member Function Documentation

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.

Implemented in DtIfObjectParametersOp, DtIfOrderOfBattleOp, DtIfPlanOp, DtIfOverlayOp, and DtIfTerrainOp.

virtual DtSimInterfaceContent* DtIfFileOp::clone ( ) const
pure virtual
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
virtual bool DtIfFileOp::setFromNet ( const char *  contentBuffer,
unsigned  contentSize 
)
virtual
virtual bool DtIfFileOp::setToNet ( )
virtual
virtual void DtIfFileOp::printDataToString ( DtString str)
virtual

Member Data Documentation

DtString DtIfFileOp::myFileName
protected
int DtIfFileOp::myFileOp
protected

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

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)