cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Public Attributes | List of all members
mtsLogMessage Class Reference

#include <mtsParameterTypesOld.h>

Inheritance diagram for mtsLogMessage:
mtsGenericObject cmnGenericObject

Public Types

enum  { MAX_LOG_SIZE = 1024 }
 

Public Member Functions

 mtsLogMessage ()
 
 mtsLogMessage (const mtsLogMessage &other)
 
 mtsLogMessage (const char *log, size_t len)
 
 ~mtsLogMessage ()
 
void ToStream (std::ostream &outputStream) const
 
void SerializeRaw (std::ostream &outputStream) const
 
void DeSerializeRaw (std::istream &inputStream)
 
- Public Member Functions inherited from mtsGenericObject
 mtsGenericObject (void)
 
 mtsGenericObject (double timestamp, bool automaticTimestamp, bool valid)
 
 mtsGenericObject (const mtsGenericObject &other)
 
virtual ~mtsGenericObject (void)
 
bool SetTimestampIfAutomatic (double timestamp)
 
virtual void ToStreamRaw (std::ostream &outputStream, const char delimiter= ' ', bool headerOnly=false, const std::string &headerPrefix="") const
 
virtual bool FromStreamRaw (std::istream &inputStream, const char delimiter= ' ')
 
size_t ScalarNumber (void) const
 
bool ScalarNumberIsFixed (void) const
 
double Scalar (const size_t index) const throw (std::out_of_range)
 
std::string ScalarDescription (const size_t index, const std::string &userDescription="") const throw (std::out_of_range)
 
- Public Member Functions inherited from cmnGenericObject
virtual ~cmnGenericObject (void)
 
virtual const
cmnClassServicesBase
Services (void) const =0
 
bool ReconstructFrom (const cmnGenericObject &other)
 
std::string ToString (void) const
 
virtual cmnLogger::StreamBufTypeGetLogMultiplexer (void) const
 
virtual double Scalar (const size_t CMN_UNUSED(index)) const throw (std::out_of_range)
 
virtual std::string ScalarDescription (const size_t CMN_UNUSED(index), const std::string &CMN_UNUSED(userDescription)) const
 

Public Attributes

size_t Length
 
char Message [MAX_LOG_SIZE]
 
std::string ProcessName
 

Member Enumeration Documentation

anonymous enum
Enumerator
MAX_LOG_SIZE 

Constructor & Destructor Documentation

mtsLogMessage::mtsLogMessage ( )

Default constructor

mtsLogMessage::mtsLogMessage ( const mtsLogMessage other)

Copy constructor

mtsLogMessage::mtsLogMessage ( const char *  log,
size_t  len 
)

Constructor

mtsLogMessage::~mtsLogMessage ( )
inline

Destructor

Member Function Documentation

void mtsLogMessage::DeSerializeRaw ( std::istream &  inputStream)
virtual

Binary deserialization

Reimplemented from mtsGenericObject.

void mtsLogMessage::SerializeRaw ( std::ostream &  outputStream) const
virtual

Binary serialization

Reimplemented from mtsGenericObject.

void mtsLogMessage::ToStream ( std::ostream &  outputStream) const
virtual

Human readable text output. This method only streams the data members of mtsGenericObject, i.e. the Timestamp and Valid flag. It should be called by any derived class re-implementing ToStream.

Reimplemented from mtsGenericObject.

Member Data Documentation

size_t mtsLogMessage::Length
char mtsLogMessage::Message[MAX_LOG_SIZE]
std::string mtsLogMessage::ProcessName

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