VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Types | Public Member Functions | Private Types | Private Attributes
DtColumnLogger::Column Class Reference
Inheritance diagram for DtColumnLogger::Column:
Inheritance graph
[legend]

Classes

struct  Value
 

Public Types

typedef boost::ptr_list< ColumnSequence
 

Public Member Functions

 Column (DtColumnLogger &, const std::string &label)
 
 Column (Column &parent, const std::string &label)
 
ColumngetColumn (const std::string &label, int index=-1)
 
ValueaddValue (double)
 
template<typename T >
ValueaddValue (T val)
 
void reset (bool resetWidth)
 
int print (std::ostream *textstream, std::ostream *csvsteram, bool headers)
 
unsigned width ()
 
void updateWidth (unsigned, bool onlyIfGreater=true)
 
Value::Listvalues ()
 
SequencesubColumns ()
 
std::string label () const
 
void markAsPrinted ()
 
bool hasBeenPrinted ()
 

Private Types

typedef tbb::spin_rw_mutex Mutex
 

Private Attributes

Mutex myMutex
 
DtColumnLoggermyLogger
 
std::string myLabel
 
Value::List myValues
 
unsigned myMaxWidth
 
bool myNewFlag
 
Sequence myColumns
 

Member Typedef Documentation

typedef boost::ptr_list<Column> DtColumnLogger::Column::Sequence
typedef tbb::spin_rw_mutex DtColumnLogger::Column::Mutex
private

Constructor & Destructor Documentation

DtColumnLogger::Column::Column ( DtColumnLogger ,
const std::string &  label 
)
explicit
DtColumnLogger::Column::Column ( Column parent,
const std::string &  label 
)
explicit

Member Function Documentation

Column& DtColumnLogger::Column::getColumn ( const std::string &  label,
int  index = -1 
)
Value& DtColumnLogger::Column::addValue ( double  )
template<typename T >
Value& DtColumnLogger::Column::addValue ( val)
inline
void DtColumnLogger::Column::reset ( bool  resetWidth)

Remove data from this column.

int DtColumnLogger::Column::print ( std::ostream *  textstream,
std::ostream *  csvsteram,
bool  headers 
)
unsigned DtColumnLogger::Column::width ( )

Get width of column.

void DtColumnLogger::Column::updateWidth ( unsigned  ,
bool  onlyIfGreater = true 
)
Value::List& DtColumnLogger::Column::values ( )
inline
Sequence& DtColumnLogger::Column::subColumns ( )
inline
std::string DtColumnLogger::Column::label ( ) const
inline
void DtColumnLogger::Column::markAsPrinted ( )
bool DtColumnLogger::Column::hasBeenPrinted ( )

Member Data Documentation

Mutex DtColumnLogger::Column::myMutex
mutableprivate
DtColumnLogger& DtColumnLogger::Column::myLogger
private
std::string DtColumnLogger::Column::myLabel
private
Value::List DtColumnLogger::Column::myValues
private
unsigned DtColumnLogger::Column::myMaxWidth
private
bool DtColumnLogger::Column::myNewFlag
private
Sequence DtColumnLogger::Column::myColumns
private

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

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)