LightWrap++
AC++wrapperfortheLightWave3DSDK
lwpp::SaveState Class Reference

Wrapper for a LW save state. More...

#include <io.h>

List of all members.

Public Member Functions

 SaveState (const LWSaveState *_ss)
void Begin (const LWBlockIdent &id, bool leaf=true) const
void Depth (void) const
void End (void) const
const LWSaveState * getState (void) const
bool isValid ()
void Write (const bool data) const
 Write a single boolean value.
void Write (const char data) const
 Write a single byte.
void Write (const char *data, int length) const
void Write (const short data) const
 Write a single short.
void Write (const short *data, int length) const
void Write (const int data) const
 Write a single integer.
void Write (const int *data, int length) const
void Write (const unsigned char data) const
 Write a single unsigned byte.
void Write (const unsigned char *data, int length) const
void Write (const unsigned short data) const
void Write (const unsigned short *data, int length) const
void Write (const unsigned int data) const
void Write (const unsigned int *data, int length) const
void Write (const float data) const
void Write (const float *data, int length) const
void Write (const double data) const
void Write (const double *data, int length) const
void Write (const char *data) const
void Write (const std::string data) const
template<class T >
void WriteBlock (const LWBlockIdent &id, T value, bool leaf=true) const
 Save a value embedded in a block.
template<class T >
void WriteBlock (const LWBlockIdent &id, T value, int len, bool leaf=true) const
void WriteItem (const LWBlockIdent &id, Storeable &object, bool leaf=false) const
void WriteItem (const LWBlockIdent &id, Storeable *object, bool leaf=false) const

Public Attributes

const LWSaveState * ss

Protected Member Functions

void write (const char *data, int len)

Detailed Description

Wrapper for a LW save state.


Constructor & Destructor Documentation

lwpp::SaveState::SaveState ( const LWSaveState *  _ss)
inline

Member Function Documentation

void lwpp::SaveState::Begin ( const LWBlockIdent &  id,
bool  leaf = true 
) const
inline
void lwpp::SaveState::Depth ( void  ) const
inline
void lwpp::SaveState::End ( void  ) const
inline
const LWSaveState* lwpp::SaveState::getState ( void  ) const
inline
bool lwpp::SaveState::isValid ( )
inline
void lwpp::SaveState::write ( const char *  data,
int  len 
)
inlineprotected
void lwpp::SaveState::Write ( const bool  data) const
inline

Write a single boolean value.

void lwpp::SaveState::Write ( const char  data) const
inline

Write a single byte.

void lwpp::SaveState::Write ( const char *  data,
int  length 
) const
inline
void lwpp::SaveState::Write ( const short  data) const
inline

Write a single short.

void lwpp::SaveState::Write ( const short *  data,
int  length 
) const
inline
void lwpp::SaveState::Write ( const int  data) const
inline

Write a single integer.

void lwpp::SaveState::Write ( const int *  data,
int  length 
) const
inline
void lwpp::SaveState::Write ( const unsigned char  data) const
inline

Write a single unsigned byte.

void lwpp::SaveState::Write ( const unsigned char *  data,
int  length 
) const
inline
void lwpp::SaveState::Write ( const unsigned short  data) const
inline
void lwpp::SaveState::Write ( const unsigned short *  data,
int  length 
) const
inline
void lwpp::SaveState::Write ( const unsigned int  data) const
inline
void lwpp::SaveState::Write ( const unsigned int *  data,
int  length 
) const
inline
void lwpp::SaveState::Write ( const float  data) const
inline
void lwpp::SaveState::Write ( const float *  data,
int  length 
) const
inline
void lwpp::SaveState::Write ( const double  data) const
inline
void lwpp::SaveState::Write ( const double *  data,
int  length 
) const
inline
void lwpp::SaveState::Write ( const char *  data) const
inline
void lwpp::SaveState::Write ( const std::string  data) const
inline
template<class T >
void lwpp::SaveState::WriteBlock ( const LWBlockIdent &  id,
value,
bool  leaf = true 
) const
inline

Save a value embedded in a block.

template<class T >
void lwpp::SaveState::WriteBlock ( const LWBlockIdent &  id,
value,
int  len,
bool  leaf = true 
) const
inline
void lwpp::SaveState::WriteItem ( const LWBlockIdent &  id,
Storeable object,
bool  leaf = false 
) const
void lwpp::SaveState::WriteItem ( const LWBlockIdent &  id,
Storeable object,
bool  leaf = false 
) const

Member Data Documentation

const LWSaveState* lwpp::SaveState::ss

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