ICsFile Class Reference

Abstract C# file. More...

List of all members.

Public Member Functions

virtual ~ICsFile ()
 Destructor.
virtual void setBuffer (void *buffer, size_t size, bool bAllocated)=0
 Set buffer.
virtual void freeBuffer ()=0
 Clear buffer associated with file.
virtual void * getBuffer () const =0
 Get buffer.
virtual size_t getBufferSize () const =0
 Get buffer size.
virtual void setPath (const char *path)=0
 Set file path (path used in error reporting).
virtual const char * getPath () const =0
 Get file path.
virtual CsCompilationUnitgetCompilationUnit () const =0
 Get compilation unit.
virtual MediumFastDeque< CsToken > & getTokens () const =0
 Get tokens.

Static Public Member Functions

static ICsFilecreate ()
 Create C# file.
static ICsFilecreate (void *buffer, size_t size, bool bAllocated, const char *path)
 Create C# file.
static ICsFilegetICsFile (CsFile *file)
 Convert internal class pointer to interface class pointer.
static CsFile * getCsFile (ICsFile *file)
 Convert interface class pointer to internal class pointer.

Protected Member Functions

 ICsFile ()
 Constructor.

Private Member Functions

 ICsFile (const ICsFile &rhs)
ICsFileoperator= (const ICsFile &rhs)


Detailed Description

Abstract C# file.

ICsFile is sealed class.


Constructor & Destructor Documentation

virtual ICsFile::~ICsFile  )  [virtual]
 

Destructor.

ICsFile::ICsFile  )  [protected]
 

Constructor.

ICsFile::ICsFile const ICsFile rhs  )  [private]
 


Member Function Documentation

static ICsFile* ICsFile::create void *  buffer,
size_t  size,
bool  bAllocated,
const char *  path
[static]
 

Create C# file.

If bAllocated is true than buffer was allocated with CsParserInterface::alloc() function. If bAllocated is false than buffer allocated by user.
WARNING: last char in buffer must be '0x00'. File size not include trailing '0x00' byte.

static ICsFile* ICsFile::create  )  [static]
 

Create C# file.

virtual void ICsFile::freeBuffer  )  [pure virtual]
 

Clear buffer associated with file.

virtual void* ICsFile::getBuffer  )  const [pure virtual]
 

Get buffer.

virtual size_t ICsFile::getBufferSize  )  const [pure virtual]
 

Get buffer size.

File size not include last byte '0x00'.

virtual CsCompilationUnit* ICsFile::getCompilationUnit  )  const [pure virtual]
 

Get compilation unit.

static CsFile* ICsFile::getCsFile ICsFile file  )  [static]
 

Convert interface class pointer to internal class pointer.

static ICsFile* ICsFile::getICsFile CsFile *  file  )  [static]
 

Convert internal class pointer to interface class pointer.

virtual const char* ICsFile::getPath  )  const [pure virtual]
 

Get file path.

virtual MediumFastDeque<CsToken>& ICsFile::getTokens  )  const [pure virtual]
 

Get tokens.

ICsFile& ICsFile::operator= const ICsFile rhs  )  [private]
 

virtual void ICsFile::setBuffer void *  buffer,
size_t  size,
bool  bAllocated
[pure virtual]
 

Set buffer.

If bAllocated is true than buffer was allocated with CsParserInterface::alloc() function. If bAllocated is false than buffer allocated by user.
WARNING: last char in buffer must be '0x00'. File size not include trailing '0x00' byte.

virtual void ICsFile::setPath const char *  path  )  [pure virtual]
 

Set file path (path used in error reporting).

© 2005 metaspec