|
WSF
|
#include <OutputItem.hpp>
Public Types | |
| enum | ItemType { cREAL_VARIABLE , cINTEGER_VARIABLE , cSTRING_VARIABLE , cLITERAL , cNEW_LINE } |
Public Member Functions | |
| OutputItem () | |
| bool | ProcessInput (UtInput &aInput) |
| void | SetRealVariable (size_t aVariableIndex, double aScaleFactor) |
| void | DoOutput (std::ostream &aStream, Simulation &aSimulation) const |
Public Attributes | |
| ItemType | mItemType |
| size_t | mVariableIndex |
| std::string | mFormat |
| std::string | mLiteral |
| double | mScaleFactor |
This represents a single item in an output record.
While something more complex could be implement, it was kept simple so it could be maintained in STL containers and could be easily copy constructed. The aren't all that many of these so space really isn't an issue.
| engage::OutputItem::OutputItem | ( | ) |
References cNEW_LINE, mFormat, mItemType, mLiteral, mScaleFactor, and mVariableIndex.
| void engage::OutputItem::DoOutput | ( | std::ostream & | aStream, |
| Simulation & | aSimulation ) const |
| bool engage::OutputItem::ProcessInput | ( | UtInput & | aInput | ) |
References cINTEGER_VARIABLE, cLITERAL, cNEW_LINE, cREAL_VARIABLE, cSTRING_VARIABLE, engage::Variables::FindIntegerVariable(), engage::Variables::FindRealVariable(), engage::Variables::FindStringVariable(), engage::Variables::GetScaleFactor(), mFormat, mItemType, mLiteral, mScaleFactor, and mVariableIndex.
Referenced by engage::OutputConfig::ProcessInput().
|
inline |
References cREAL_VARIABLE, mItemType, mScaleFactor, and mVariableIndex.
| std::string engage::OutputItem::mFormat |
Referenced by DoOutput(), OutputItem(), and ProcessInput().
| ItemType engage::OutputItem::mItemType |
Referenced by DoOutput(), OutputItem(), ProcessInput(), and SetRealVariable().
| std::string engage::OutputItem::mLiteral |
Referenced by DoOutput(), OutputItem(), and ProcessInput().
| double engage::OutputItem::mScaleFactor |
Referenced by DoOutput(), OutputItem(), ProcessInput(), and SetRealVariable().
| size_t engage::OutputItem::mVariableIndex |
Referenced by DoOutput(), OutputItem(), ProcessInput(), and SetRealVariable().