xvr2::StandardInput Class Reference

#include <StandardInput.h>

Inheritance diagram for xvr2::StandardInput:

Inheritance graph
[legend]

List of all members.


Detailed Description

This class represents the standard input stream as a TextInput object.

Todo:
See if we can express the StandardInput class in terms of the new stream classes

Definition at line 27 of file StandardInput.h.


Public Member Functions

 StandardInput ()
 Default constructor, it does some initialization.
void read (void *buf, UInt32 size)
virtual void readLine (char **buf, UInt32 *size)
virtual void readLine (String &s)

Protected Member Functions

virtual void inputMethod (void *buf, UInt32 size)
 This is the overriden version of the input method on TextInput, basically it takes all its input desde el stdin.
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)

Constructor & Destructor Documentation

xvr2::StandardInput::StandardInput (  ) 

Default constructor, it does some initialization.


Member Function Documentation

virtual void xvr2::StandardInput::inputMethod ( void *  buf,
UInt32  size 
) [protected, virtual]

This is the overriden version of the input method on TextInput, basically it takes all its input desde el stdin.

Reimplemented from xvr2::TextInput.

void xvr2::TextInput::read ( void *  buf,
UInt32  size 
) [inherited]

virtual void xvr2::TextInput::readLine ( char **  buf,
UInt32 size 
) [virtual, inherited]

virtual void xvr2::TextInput::readLine ( String s  )  [virtual, inherited]

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]


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const Object s 
) [friend, inherited]


Member Data Documentation

std::string xvr2::Object::__cls_name [protected, inherited]

Definition at line 30 of file Object.h.


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

Generated on Fri Jun 20 22:55:56 2008 for X-VR2 SDK by  doxygen 1.5.5