iLand
Public Member Functions | List of all members
ABE::UnitOut Class Reference

#include <unitout.h>

Inheritance diagram for ABE::UnitOut:
Output

Public Member Functions

 UnitOut ()
 
virtual void exec ()
 main function that executes the output More...
 
virtual void setup ()
 setup() is called during project setup and can be ovveridden for specific setup More...
 
- Public Member Functions inherited from Output
 Output ()
 ctor. Override in derived class to craete columns, etc. More...
 
virtual ~Output ()
 
void setMode (OutputMode mode)
 
void open ()
 open output connection (create actual db connection, ...) More...
 
bool isOpen () const
 returns true if output is open, i.e. has a open database connection More...
 
void close ()
 shut down the connection. More...
 
bool isEnabled () const
 returns true if output is enabled, i.e. is "turned on" More...
 
void setEnabled (const bool enabled)
 
bool isRowEmpty () const
 returns true if the buffer of the current row is empty More...
 
const QList< OutputColumngetColumns () const
 
const QString name () const
 descriptive name of the ouptut More...
 
const QString description () const
 description of output More...
 
const QString tableName () const
 internal output name (no spaces allowed) More...
 
QString wikiFormat () const
 return output description in a (tiki)-wiki format More...
 
Outputoperator<< (const double &value)
 
Outputoperator<< (const int value)
 
Outputoperator<< (const QString &value)
 

Additional Inherited Members

- Protected Member Functions inherited from Output
void setName (const QString &name, const QString tableName)
 
void setDescription (const QString &description)
 
QList< OutputColumn > & columns ()
 
int currentYear () const
 
const XmlHelpersettings () const
 access XML settings (see class description) More...
 
void writeRow ()
 saves the current row/line of data to database/file. Must be called for each row. More...
 
void singleThreadedWriteRow ()
 writeRow() protected by a mutex (if there is a chance that two outputs write at the same time) More...
 
void add (const double &value)
 
void add (const double &value1, const double &value2)
 
void add (const double &value1, const double &value2, const double &value3)
 
void add (const double &value1, const double &value2, const double &value3, const double &value4)
 
void add (const double &value1, const double &value2, const double &value3, const double &value4, const double value5)
 
void add (const int intValue)
 
void add (const QString &stringValue)
 
bool clearColumnsAfter (QString find_name)
 delete all columns after the column 'find_name'. Return true if columns were removed. More...
 
void truncateTable ()
 delete all data from the table More...
 

Constructor & Destructor Documentation

◆ UnitOut()

ABE::UnitOut::UnitOut ( )

Member Function Documentation

◆ exec()

void ABE::UnitOut::exec ( )
virtual

main function that executes the output

Reimplemented from Output.

◆ setup()

void ABE::UnitOut::setup ( )
virtual

setup() is called during project setup and can be ovveridden for specific setup

Reimplemented from Output.


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