#include <StandardError.h>
Definition at line 21 of file StandardError.h.
Public Member Functions | |
StandardError () | |
void | write (const void *text, UInt32 siz) |
This method will write the textbuffer up to siz bytes to the current TextOuput object. | |
void | write (const String &text) |
This method will write the text String to the current TextOuput object. | |
void | writeLine (const void *text, UInt32 siz) |
This method will write the textbuffer up to siz bytes to the current TextOuput object plus the newline character. | |
void | writeLine (const String &text) |
This method will write the text String to the current TextOuput object plus the newline character. | |
Protected Member Functions | |
void | outputMethod (const void *buff, UInt32 size) |
This is the current output method, it will determine how the data is going to be phisically outputed, you are encouraged to overload this method in every implementation of the TextOutput class. | |
virtual const char * | getClassName () |
Returns the name of the current class. | |
virtual std::string | toString () |
Static Protected Member Functions | |
static void | usleep (UInt32 usec) |
This will return how many CPUs are installed in the system. | |
static void | debugmsg (Object *obj, const char *msg, int linenumber=__LINE__, const char *srcfile=__FILE__) |
Will print a debug message to the screen. | |
static void | debugmsgln (Object *obj, const char *msg, int linenumber=__LINE__, const char *srcfile=__FILE__) |
Protected Attributes | |
std::string | __cls_name |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const Object &s) |
xvr2::StandardError::StandardError | ( | ) |
void xvr2::StandardError::outputMethod | ( | const void * | buf, | |
UInt32 | size | |||
) | [protected, virtual] |
This is the current output method, it will determine how the data is going to be phisically outputed, you are encouraged to overload this method in every implementation of the TextOutput class.
Reimplemented from xvr2::TextOutput.
void xvr2::TextOutput::write | ( | const void * | text, | |
UInt32 | siz | |||
) | [inherited] |
This method will write the textbuffer up to siz bytes to the current TextOuput object.
void xvr2::TextOutput::write | ( | const String & | text | ) | [inherited] |
This method will write the text String to the current TextOuput object.
void xvr2::TextOutput::writeLine | ( | const void * | text, | |
UInt32 | siz | |||
) | [inherited] |
This method will write the textbuffer up to siz bytes to the current TextOuput object plus the newline character.
void xvr2::TextOutput::writeLine | ( | const String & | text | ) | [inherited] |
This method will write the text String to the current TextOuput object plus the newline character.
static void xvr2::System::usleep | ( | UInt32 | usec | ) | [static, inherited] |
This will return how many CPUs are installed in the system.
This will return the CPU speed in megahertz Will return the total amount of system memory Will return the total amount of free system memory Will freeze the software for usec microseconds
virtual const char* xvr2::Object::getClassName | ( | ) | [virtual, inherited] |
Returns the name of the current class.
static void xvr2::Object::debugmsg | ( | Object * | obj, | |
const char * | msg, | |||
int | linenumber = __LINE__ , |
|||
const char * | srcfile = __FILE__ | |||
) | [static, inherited] |
Will print a debug message to the screen.
static void xvr2::Object::debugmsgln | ( | Object * | obj, | |
const char * | msg, | |||
int | linenumber = __LINE__ , |
|||
const char * | srcfile = __FILE__ | |||
) | [static, inherited] |
virtual std::string xvr2::Object::toString | ( | ) | [virtual, inherited] |
std::ostream& operator<< | ( | std::ostream & | stream, | |
const Object & | s | |||
) | [friend, inherited] |
std::string xvr2::Object::__cls_name [protected, inherited] |