 |
AGXDynamics
2.35.0.3
|
Go to the documentation of this file.
17 #ifndef AGXSDK_LOGLISTENER_H
18 #define AGXSDK_LOGLISTENER_H
47 bool newFilePerTimeStep =
false,
48 const std::string& valueSeparator =
"\t");
55 inline void setFileName(
const std::string& fileName );
56 inline void setNewFilePerTimeStep(
bool newFilePerTimeStep );
57 inline void setValueSeparator(
const std::string& valueSeparator );
58 inline void setPrecision(
int precision );
59 inline void setNumberFormat( NumberFormat format );
61 inline std::string getFileName()
const;
62 inline bool getNewFilePerTimeStep()
const;
63 inline std::string getValueSeparator()
const;
64 inline int getPrecision()
const;
65 inline NumberFormat getNumberFormat()
const;
74 void writeToFile(
const std::string& text,
const agx::TimeStamp& time,
bool append );
void setNumberFormat(NumberFormat format)
void setNewFilePerTimeStep(bool newFilePerTimeStep)
Derive from this class to implement a listener for simulation step events.
virtual void obtainHeader(std::stringstream &)
Implement this function when inheriting.
bool m_newFilePerTimeStep
#define AGXPHYSICS_EXPORT
Smart pointer for handling referenced counted objects.
Abstract class for logging properties per time step to a file/standard out.
virtual void collectData(std::stringstream &, const agx::TimeStamp &)
Implement this function when inheriting.
std::string getFileName() const
void setPrecision(int precision)
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
agx::ref_ptr< LogListener > LogListenerRef
bool getNewFilePerTimeStep() const
NumberFormat getNumberFormat() const
void setValueSeparator(const std::string &valueSeparator)
std::string getValueSeparator() const
void setFileName(const std::string &fileName)