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

#include <io.h>

+ Inheritance diagram for lwpp::File:
+ Collaboration diagram for lwpp::File:

List of all members.

Public Types

enum  ioType { FILE_LOAD, FILE_SAVE }

Public Member Functions

 File (std::string name, ioType type, int ioMode=LWIO_ASCII)
 ~File ()
LoadState getLoadState () const
LWLoadState * getLWLoadState () const
LWSaveState * getLWSaveState () const
SaveState getSaveState () const
bool isValid ()
LWError Load (Storeable &item)
LWError Save (Storeable &item)

Protected Member Functions

bool _acquireGlobal ()
virtual bool available () const
 Check if the global is available.
virtual LWFileIOFuncs * getGlobal ()
 Get the pointer to the global.
LWFileIOFuncs * operator-> ()
 Get the pointer to the global.

Static Protected Attributes

static LWFileIOFuncs * globPtr
 Pointer to the global functions.

Member Enumeration Documentation

Enumerator:
FILE_LOAD 
FILE_SAVE 

Constructor & Destructor Documentation

lwpp::File::File ( std::string  name,
ioType  type,
int  ioMode = LWIO_ASCII 
)
inline
lwpp::File::~File ( )
inline

Member Function Documentation

bool lwpp::GlobalBase< LWFileIOFuncs >::_acquireGlobal ( )
inlineprotectedinherited
virtual bool lwpp::GlobalBase< LWFileIOFuncs >::available ( ) const
inlinevirtualinherited

Check if the global is available.

virtual LWFileIOFuncs * lwpp::GlobalBase< LWFileIOFuncs >::getGlobal ( )
inlinevirtualinherited

Get the pointer to the global.

LoadState lwpp::File::getLoadState ( ) const
inline
LWLoadState* lwpp::File::getLWLoadState ( ) const
inline
LWSaveState* lwpp::File::getLWSaveState ( ) const
inline
SaveState lwpp::File::getSaveState ( ) const
inline
bool lwpp::File::isValid ( )
inline
LWError lwpp::File::Load ( Storeable item)
LWFileIOFuncs * lwpp::GlobalBase< LWFileIOFuncs >::operator-> ( )
inlineinherited

Get the pointer to the global.

LWError lwpp::File::Save ( Storeable item)

Member Data Documentation

LWFileIOFuncs * lwpp::GlobalBase< LWFileIOFuncs >::globPtr
staticprotectedinherited

Pointer to the global functions.


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