Diana Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
LASCIIGlobalWriter Class Reference

global writer for txt files More...

Inheritance diagram for LASCIIGlobalWriter:
QGlobalWriter QNamed

Public Member Functions

 LASCIIGlobalWriter ()
 
 ~LASCIIGlobalWriter ()
 
QError SetQObject (const std::string &name, const std::string &className, const Diana::QObject *obj, const std::string &descr)
 
- Public Member Functions inherited from QGlobalWriter
 QGlobalWriter (const std::string &name)
 constructor More...
 
virtual ~QGlobalWriter ()
 destructor More...
 
template<class Q >
QError Set (const std::string &name, const Q &obj, const std::string &descr="")
 Set QObject, owned by the caller, - leave it undeclared if you can't implement it. More...
 
- Public Member Functions inherited from QNamed
 QNamed ()
 
 QNamed (const std::string &Name)
 
virtual ~QNamed ()
 
const std::string & GetName () const
 
void SetName (const std::string &name)
 

Private Member Functions

void SetInt (const std::string &name, int obj)
 
void SetDouble (const std::string &name, double obj)
 
void SetFloat (const std::string &name, float obj)
 
void SetBool (const std::string &name, bool obj)
 
void SetString (const std::string &name, const std::string &obj)
 
void SetQVector (const std::string &name, const Diana::QVector *obj)
 
void SetQVectorC (const std::string &name, const Diana::QVectorC *obj)
 
void SetQTime (const std::string &name, const Diana::QTime *obj)
 
void SetQMatrix (const std::string &name, const Diana::QMatrix *obj, const std::string &descr)
 
QError Open (const std::string &filename, const std::string &opt)
 Open file, called by QGlobalWriterDispatcher. More...
 
QError Close ()
 Close file, called by QGlobalWriterDispatcher. More...
 

Private Attributes

QASCIIfFile
 

Additional Inherited Members

Detailed Description

global writer for txt files

Author
Laura Kogler

Definition at line 20 of file LASCIIGlobalWriter.hh.

Constructor & Destructor Documentation

◆ LASCIIGlobalWriter()

LASCIIGlobalWriter::LASCIIGlobalWriter ( )

Definition at line 16 of file LASCIIGlobalWriter.cc.

◆ ~LASCIIGlobalWriter()

LASCIIGlobalWriter::~LASCIIGlobalWriter ( )

Definition at line 20 of file LASCIIGlobalWriter.cc.

References Close().

Member Function Documentation

◆ Close()

QError LASCIIGlobalWriter::Close ( )
privatevirtual

Close file, called by QGlobalWriterDispatcher.

Implements QGlobalWriter.

Definition at line 245 of file LASCIIGlobalWriter.cc.

References err, fFile, and QERR_SUCCESS.

Referenced by ~LASCIIGlobalWriter().

◆ Open()

QError LASCIIGlobalWriter::Open ( const std::string &  filename,
const std::string &  opt 
)
privatevirtual

Open file, called by QGlobalWriterDispatcher.

Implements QGlobalWriter.

Definition at line 206 of file LASCIIGlobalWriter.cc.

References err, QASCII::Exists(), fFile, QERR_CANNOT_OPEN_FILE, QERR_SUCCESS, and QASCII::WriteString().

◆ SetBool()

void LASCIIGlobalWriter::SetBool ( const std::string &  name,
bool  obj 
)
private

Definition at line 51 of file LASCIIGlobalWriter.cc.

References QASCII::Comment(), fFile, and QASCII::WriteLine().

Referenced by SetQObject().

◆ SetDouble()

void LASCIIGlobalWriter::SetDouble ( const std::string &  name,
double  obj 
)
private

Definition at line 37 of file LASCIIGlobalWriter.cc.

References QASCII::Comment(), fFile, and QASCII::WriteLine().

Referenced by SetQObject().

◆ SetFloat()

void LASCIIGlobalWriter::SetFloat ( const std::string &  name,
float  obj 
)
private

Definition at line 64 of file LASCIIGlobalWriter.cc.

References QASCII::Comment(), fFile, and QASCII::WriteLine().

Referenced by SetQObject().

◆ SetInt()

void LASCIIGlobalWriter::SetInt ( const std::string &  name,
int  obj 
)
private

Definition at line 26 of file LASCIIGlobalWriter.cc.

References QASCII::Comment(), fFile, and QASCII::WriteLine().

Referenced by SetQObject().

◆ SetQMatrix()

void LASCIIGlobalWriter::SetQMatrix ( const std::string &  name,
const Diana::QMatrix *  obj,
const std::string &  descr 
)
private

◆ SetQObject()

QError LASCIIGlobalWriter::SetQObject ( const std::string &  name,
const std::string &  className,
const Diana::QObject *  obj,
const std::string &  descr 
)
virtual

◆ SetQTime()

void LASCIIGlobalWriter::SetQTime ( const std::string &  name,
const Diana::QTime *  obj 
)
private

Definition at line 194 of file LASCIIGlobalWriter.cc.

References QASCII::Comment(), fFile, and QASCII::WriteQTime().

Referenced by SetQObject().

◆ SetQVector()

void LASCIIGlobalWriter::SetQVector ( const std::string &  name,
const Diana::QVector *  obj 
)
private

Definition at line 165 of file LASCIIGlobalWriter.cc.

References QASCII::Comment(), fFile, and QASCII::WriteQVector().

Referenced by SetQObject().

◆ SetQVectorC()

void LASCIIGlobalWriter::SetQVectorC ( const std::string &  name,
const Diana::QVectorC *  obj 
)
private

Definition at line 177 of file LASCIIGlobalWriter.cc.

References QASCII::Comment(), fFile, and QASCII::WriteQVectors().

Referenced by SetQObject().

◆ SetString()

void LASCIIGlobalWriter::SetString ( const std::string &  name,
const std::string &  obj 
)
private

Definition at line 75 of file LASCIIGlobalWriter.cc.

References QASCII::Comment(), fFile, and QASCII::WriteLine().

Referenced by SetQObject().

Member Data Documentation

◆ fFile

QASCII* LASCIIGlobalWriter::fFile
private

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