MULTIBODY SIMULATION SOFTWARE - API documentation

chrono::ChGlobals Class Reference

#include <CHglobal.h>

Collaboration diagram for chrono::ChGlobals:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void Timer_START ()
void Timer_STOP ()
void Timer_RESTART ()
int GetUniqueIntID ()
ChLogGetScriptingLog ()
void SetScriptingLog (ChLog &mlog)
void SetDefaultScriptingLog ()

Public Attributes

int WriteComments
int WriteAllFeatures
int SkipNframesOutput
int angle_units
clock_t t_start
clock_t t_stop
double t_duration
double t_simtime
double t_geometrytime
ChJavascriptEngine * chjsEngine


Detailed Description

Class for global CHRONO data, such as serial number, static variables, static functions, timers, etc. To be documented better...

Member Function Documentation

int chrono::ChGlobals::GetUniqueIntID (  ) 

Return an unique identifier, of type integer.

ChLog & chrono::ChGlobals::GetScriptingLog (  ) 

The logging for output of scripting languages. Never returns null, because returns by default at least a ChLogConsole() if none provided.

void chrono::ChGlobals::SetScriptingLog ( ChLog mlog  ) 

Sets the logging for output of scripting language. This logger won't be deleted on ChGlobals deletion.

void chrono::ChGlobals::SetDefaultScriptingLog (  ) 

Use this if you want to use default ChLogConsole(). You may need to delete previous logger.


Member Data Documentation

clock_t chrono::ChGlobals::t_start

Time utilities (better: use ChTime.h).

ChJavascriptEngine* chrono::ChGlobals::chjsEngine

The Javascript engine, which is able to parse js syntax wrapping lot of Chrono classes and functions. This engine is started as soon as the ChGlobal object is created, and it is stopped when the ChGlobal is destroyed.


CHRONO::ENGINE
C++ library for multibody simulation, (C) Alessandro Tasora
This API documentation has been generated on 17 Jul 2009 by Doxygen