COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Public Member Functions | Private Member Functions | Private Attributes | List of all members
covise::TokenBuffer Class Reference

#include <tokenbuffer.h>

Public Member Functions

 TokenBuffer (bool nbo=false)
 
 TokenBuffer (int al, bool nbo=false)
 
virtual ~TokenBuffer ()
 
void delete_data ()
 
 TokenBuffer (Message *msg, bool nbo=false)
 
 TokenBuffer (const char *dat, int len, bool nbo=false)
 
const char * getBinary (int n)
 
void addBinary (const char *buf, int n)
 
const char * allocBinary (int n)
 
TokenBufferoperator<< (const uint64_t i)
 
TokenBufferoperator<< (const uint32_t i)
 
TokenBufferoperator<< (const int i)
 
TokenBufferoperator<< (const std::string &s)
 
TokenBufferoperator<< (const char c)
 
TokenBufferoperator<< (const float f)
 
TokenBufferoperator<< (const double f)
 
TokenBufferoperator<< (const char *c)
 
TokenBufferoperator<< (TokenBuffer *t)
 
TokenBufferoperator<< (TokenBuffer t)
 
TokenBufferoperator>> (uint64_t &i)
 
TokenBufferoperator>> (uint32_t &i)
 
TokenBufferoperator>> (int &i)
 
TokenBufferoperator>> (char &c)
 
TokenBufferoperator>> (unsigned char &c)
 
TokenBufferoperator>> (float &f)
 
TokenBufferoperator>> (double &f)
 
TokenBufferoperator>> (std::string &s)
 
TokenBufferoperator>> (char *&c)
 
uint32_t get_int_token ()
 
char get_char_token ()
 
float get_float_token ()
 
char * get_charp_token ()
 
int get_length ()
 
const char * get_data ()
 
void reset ()
 

Private Member Functions

void incbuf (int size=100)
 

Private Attributes

int buflen
 
int length
 
char * data
 
char * currdata
 
bool networkByteOrder
 

Constructor & Destructor Documentation

covise::TokenBuffer::TokenBuffer ( bool  nbo = false)
inline
covise::TokenBuffer::TokenBuffer ( int  al,
bool  nbo = false 
)
inline
TokenBuffer::~TokenBuffer ( )
virtual
TokenBuffer::TokenBuffer ( Message msg,
bool  nbo = false 
)
TokenBuffer::TokenBuffer ( const char *  dat,
int  len,
bool  nbo = false 
)

Member Function Documentation

void covise::TokenBuffer::addBinary ( const char *  buf,
int  n 
)
inline
const char* covise::TokenBuffer::allocBinary ( int  n)
inline
void TokenBuffer::delete_data ( )
char covise::TokenBuffer::get_char_token ( )
inline
char* covise::TokenBuffer::get_charp_token ( )
inline
const char* covise::TokenBuffer::get_data ( )
inline
float TokenBuffer::get_float_token ( )
uint32_t TokenBuffer::get_int_token ( )
int covise::TokenBuffer::get_length ( )
inline
const char* covise::TokenBuffer::getBinary ( int  n)
inline
void TokenBuffer::incbuf ( int  size = 100)
private
TokenBuffer & TokenBuffer::operator<< ( const uint64_t  i)
TokenBuffer & TokenBuffer::operator<< ( const uint32_t  i)
TokenBuffer& covise::TokenBuffer::operator<< ( const int  i)
inline
TokenBuffer & TokenBuffer::operator<< ( const std::string s)
TokenBuffer& covise::TokenBuffer::operator<< ( const char  c)
inline
TokenBuffer & TokenBuffer::operator<< ( const float  f)
TokenBuffer & TokenBuffer::operator<< ( const double  f)
TokenBuffer& covise::TokenBuffer::operator<< ( const char *  c)
inline
TokenBuffer & TokenBuffer::operator<< ( TokenBuffer t)
TokenBuffer& covise::TokenBuffer::operator<< ( TokenBuffer  t)
inline
TokenBuffer & TokenBuffer::operator>> ( uint64_t &  i)
TokenBuffer & TokenBuffer::operator>> ( uint32_t &  i)
TokenBuffer& covise::TokenBuffer::operator>> ( int &  i)
inline
TokenBuffer& covise::TokenBuffer::operator>> ( char &  c)
inline
TokenBuffer& covise::TokenBuffer::operator>> ( unsigned char &  c)
inline
TokenBuffer & TokenBuffer::operator>> ( float &  f)
TokenBuffer & TokenBuffer::operator>> ( double &  f)
TokenBuffer & TokenBuffer::operator>> ( std::string s)
TokenBuffer& covise::TokenBuffer::operator>> ( char *&  c)
inline
void covise::TokenBuffer::reset ( void  )
inline

Member Data Documentation

int covise::TokenBuffer::buflen
private
char* covise::TokenBuffer::currdata
private
char* covise::TokenBuffer::data
private
int covise::TokenBuffer::length
private
bool covise::TokenBuffer::networkByteOrder
private

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