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 | Private Member Functions
DtTSFilePrinter Class Reference

DtTSFilePrinter is a subclass of MAKRti::DtPrinter which opens a file and dumps all information received from MAKRti::DtOutputStream to the file. More...

+ Inheritance diagram for DtTSFilePrinter:
+ Collaboration diagram for DtTSFilePrinter:

Public Member Functions

 DtTSFilePrinter (const char *filename)
 XTOR - opens file named "filename";. More...
 
 DtTSFilePrinter ()
 XTOR - does not open a file, user must call resetFile to open a new file. More...
 
virtual ~DtTSFilePrinter ()
 DTOR - closes a file, so anything which is buffered will be written at this time. More...
 
virtual void resetFile (const char *filename)
 Reset file will close the existing file, if there is one, and open a new file stream. More...
 
virtual bool isOpen ()
 returns if the file was successfully opened More...
 
virtual void write (const std::string &st, int notify_level)
 

Protected Attributes

std::ofstream myFile
 
MAKRti::DtMutex myMutex
 

Private Member Functions

 DtTSFilePrinter (const DtTSFilePrinter &orig)
 Not implimented. More...
 
DtTSFilePrinteroperator= (const DtTSFilePrinter &orig)
 Not implimented. More...
 

Detailed Description

DtTSFilePrinter is a subclass of MAKRti::DtPrinter which opens a file and dumps all information received from MAKRti::DtOutputStream to the file.

If the file does not open for whatever reason no error is reported and all input is lost. This class is threadsafe: multiple threads may try to read and write to this class at the same time, every file operation is locked with a Mutex.

Constructor & Destructor Documentation

DtTSFilePrinter::DtTSFilePrinter ( const char *  filename)

XTOR - opens file named "filename";.

DtTSFilePrinter::DtTSFilePrinter ( )

XTOR - does not open a file, user must call resetFile to open a new file.

virtual DtTSFilePrinter::~DtTSFilePrinter ( )
virtual

DTOR - closes a file, so anything which is buffered will be written at this time.

DtTSFilePrinter::DtTSFilePrinter ( const DtTSFilePrinter orig)
private

Not implimented.

Member Function Documentation

virtual bool DtTSFilePrinter::isOpen ( )
virtual

returns if the file was successfully opened

DtTSFilePrinter& DtTSFilePrinter::operator= ( const DtTSFilePrinter orig)
private

Not implimented.

virtual void DtTSFilePrinter::resetFile ( const char *  filename)
virtual

Reset file will close the existing file, if there is one, and open a new file stream.

virtual void DtTSFilePrinter::write ( const std::string &  st,
int  notify_level 
)
virtual

Member Data Documentation

std::ofstream DtTSFilePrinter::myFile
protected
MAKRti::DtMutex DtTSFilePrinter::myMutex
protected

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

Document ID: Generated on Thu May 11 15:55:32 EDT 2023 from SVN revision 254743
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)