vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AP_LSystem::ParseableString Class Reference

#include <parseablestring.h>

Public Member Functions

 ParseableString (LongString *string)
 
 ParseableString (char *string, unsigned int length)
 
 ParseableString (const ParseableString &)
 
ParseableStringoperator= (const ParseableString &)
 
bool eof ()
 
void reset ()
 
char next (std::vector< Parameter > &parameters)
 

Protected Attributes

char * m_Str
 
unsigned m_Length
 

Friends

std::basic_ostream< char > & operator<< (std::basic_ostream< char > &os, const ParseableString ps)
 

Constructor & Destructor Documentation

ParseableString::ParseableString ( LongString string)

This constructor creates an instance by converting from LongString

Parameters
stringstring for conversion
ParseableString::ParseableString ( char *  string,
unsigned int  length 
)

This constructor creates an instance from a byte buffer

Parameters
stringbuffer with string data
lengthlength of buffer
ParseableString::ParseableString ( const ParseableString c)

Copy contructor

Member Function Documentation

bool AP_LSystem::ParseableString::eof ( )
inline

Indicates end of string

Returns
true if end of string
char ParseableString::next ( std::vector< Parameter > &  parameters)

Move interator forward and return next module

Parameters
parametersvector for storing module parameter
Returns
identifier of module
ParseableString& AP_LSystem::ParseableString::operator= ( const ParseableString )

Assignement operator

void AP_LSystem::ParseableString::reset ( )
inline

Reset position of iterator to begin of string

Friends And Related Function Documentation

std::basic_ostream<char>& operator<< ( std::basic_ostream< char > &  os,
const ParseableString  ps 
)
friend

Output operator

Member Data Documentation

unsigned AP_LSystem::ParseableString::m_Length
protected
char* AP_LSystem::ParseableString::m_Str
protected

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