ScEng::Log Class Reference

Log manager. More...

#include <log.h>

List of all members.

Public Member Functions

void SetFileName (std::string filename)
 Sets the filename. If this line is not called with a proper filename, the log won't write anything.
void Clean ()
 Cleans the log file. Delete everything in the log file.
void Write (const char *str)
 Writes only text.
void Write (const char *str, const char *str2, bool nl=true)
void Write (const char *str, const std::string &str2, bool nl=true)
void Write (const char *str, int val, bool nl=true)
void Write (const char *str, unsigned int val, bool nl=true)
void Write (const char *str, float val, bool nl=true)
void Write (const char *str, GMT::Point3F val, bool nl=true)
void Write (const char *str, GMT::Point3I val, bool nl=true)
void Write (const char *str, GMT::Point2F val, bool nl=true)
void Write (const char *str, GMT::Point2I val, bool nl=true)
void Write (const char *str, GMT::Color val, bool nl=true)
void Write (const char *str, GMT::AColor val, bool nl=true)
void Write (const char *str, GMT::Quaternion val, bool nl=true)
void Write (const char *str, GMT::Box2F val, bool nl=true)
void Write (const char *str, GMT::Box3F val, bool nl=true)
void Write (const char *str, GMT::Matrix2F val, bool nl=true)
void Write (const char *str, GMT::Matrix3F val, bool nl=true)
void Write (const char *str, TimeInterval val, bool nl=true)
void Log::Write (const char *str, float *val, int n, bool nl=true)
void DebugTriMesh (TriMesh *tri_mesh)
void DebugDependency (const char *str, Block *block, int dependency_id)


Detailed Description

Log manager.

Saves a log to a text file.


Member Function Documentation

void ScEng::Log::Write ( const char *  str,
const char *  str2,
bool  nl = true 
)

Writes two text variables in a single line.

Parameters:
nl if true, writes a new line character at the end of the line.

void ScEng::Log::Write ( const char *  str,
const std::string &  str2,
bool  nl = true 
)

Writes two text variables in a single line.

Parameters:
nl if true, writes a new line character at the end of the line.

void ScEng::Log::Write ( const char *  str,
int  val,
bool  nl = true 
)

Writes a text message and an integer in a single line.

Parameters:
nl if true, writes a new line character at the end of the line.

void ScEng::Log::Write ( const char *  str,
unsigned int  val,
bool  nl = true 
)

Writes a text message and an integer in a single line.

Parameters:
nl if true, writes a new line character at the end of the line.

void ScEng::Log::Write ( const char *  str,
float  val,
bool  nl = true 
)

Writes a text message and an float in a single line.

Parameters:
nl if true, writes a new line character at the end of the line.

void ScEng::Log::Write ( const char *  str,
GMT::Point3F  val,
bool  nl = true 
)

Writes a text message and a Point3F in a single line.

Parameters:
nl if true, writes a new line character at the end of the line.

void ScEng::Log::Write ( const char *  str,
GMT::Point3I  val,
bool  nl = true 
)

Writes a text message and a Point3I in a single line.

Parameters:
nl if true, writes a new line character at the end of the line.

void ScEng::Log::Write ( const char *  str,
GMT::Point2F  val,
bool  nl = true 
)

Writes a text message and a Point2F in a single line.

Parameters:
nl if true, writes a new line character at the end of the line.

void ScEng::Log::Write ( const char *  str,
GMT::Point2I  val,
bool  nl = true 
)

Writes a text message and a Point2I in a single line.

Parameters:
nl if true, writes a new line character at the end of the line.

void ScEng::Log::Write ( const char *  str,
GMT::Color  val,
bool  nl = true 
)

Writes a text message and a Color in a single line.

Parameters:
nl if true, writes a new line character at the end of the line.

void ScEng::Log::Write ( const char *  str,
GMT::AColor  val,
bool  nl = true 
)

Writes a text message and an AColor in a single line.

Parameters:
nl if true, writes a new line character at the end of the line.

void ScEng::Log::Write ( const char *  str,
GMT::Quaternion  val,
bool  nl = true 
)

Writes a text message and a Quaternion in a single line.

Parameters:
nl if true, writes a new line character at the end of the line.

void ScEng::Log::Write ( const char *  str,
GMT::Box2F  val,
bool  nl = true 
)

Writes a text message and a Box2F in a single line.

Parameters:
nl if true, writes a new line character at the end of the line.

void ScEng::Log::Write ( const char *  str,
GMT::Box3F  val,
bool  nl = true 
)

Writes a text message and a Box3F in a single line.

Parameters:
nl if true, writes a new line character at the end of the line.

void ScEng::Log::Write ( const char *  str,
GMT::Matrix2F  val,
bool  nl = true 
)

Writes a text message and a Matrix2F in a single line.

Parameters:
nl if true, writes a new line character at the end of the line.

void ScEng::Log::Write ( const char *  str,
GMT::Matrix3F  val,
bool  nl = true 
)

Writes a text message and a Matrix3F in a single line.

Parameters:
nl if true, writes a new line character at the end of the line.

void ScEng::Log::Write ( const char *  str,
TimeInterval  val,
bool  nl = true 
)

Writes a text message and an TimeInterval in a single line.

Parameters:
nl if true, writes a new line character at the end of the line.

void ScEng::Log::Log::Write ( const char *  str,
float *  val,
int  n,
bool  nl = true 
)

Writes a text message and a float array.

Parameters:
nl if true, writes a new line character at the end of the line.

void ScEng::Log::DebugTriMesh ( TriMesh tri_mesh  ) 

Writes to the log file a maxscript code that builds a trimesh.

Parameters:
tri_mesh The TriMesh to be debugged.

void ScEng::Log::DebugDependency ( const char *  str,
Block block,
int  dependency_id 
)

Writes to the log file a string with the dependency structure:</ br> block -> dependency

Parameters:
str Custom text
block The block that owns the dependency
dependency_id the id of the dependency


The documentation for this class was generated from the following files:
Generated on Thu Sep 6 10:49:22 2007 for SceneEngine by  doxygen 1.5.1-p1