Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

OOFCTResource Class Reference
[Experimental code, may change considerably.]

#include <oofCTRes.h>

Collaboration diagram for OOFCTResource:

Collaboration graph
[legend]
List of all members.

Detailed Description

To allow access to ct resources.


Public Member Functions

 OOFCTResource ()
 OOFCTResource (ULONG type, ULONG id)
 OOFCTResource (oofString &, oofString &ext, oofString &iExt)
 OOFCTResource (COUNT datno, COUNT resMode)
 OOFCTResource (COUNT datno)
 ~OOFCTResource ()
void newFile (const oofString &inFile, const oofString &connectionName)
void openFile (const oofString &inFile, const oofString &connectionName)
 open the resource file with name inFile.

void openFile (oofFileRef &inFile)
 Open a CT file to get a resource.

void openIFile (const oofString &inFile, const oofString &connectionName)
 Open a CT ISAM file to get a resource.

void closeFile ()
 Close the resourcefile.

void loadResource (ULONG resType, ULONG resID, COUNT resMode)
 Load a resource identified by resType & resID from the file opened by the method openFile of this object or set at construct time.

void loadResource (COUNT datNo, ULONG resType, ULONG resID, COUNT resMode)
 Load a resource identified by resType resID using resMode from the open file pointed to by datNo.

void loadResource (COUNT resMode)
void loadResource (ULONG resType)
 Load a resource identified by resType from the file opened by the method openFile of this object or set at construct time.

void loadResource (oofString &, oofString &ext, oofString &iExt)
void saveResource ()
 Load a resource identified by resType from the file opened by the method openFile of this object or set at construct time.

void saveResource (COUNT datno)
 Write the resource to the file identified by datno.

void resource (std::ostream &resourceString, const oofString &resourceName="")
const char * resource ()
 return a pointer to the data of this resource.

void loadData (ostringstream resourceString, const oofString resourceName="")
void loadData (const oofString &)
void loadData (ostringstream resourceString)
unsigned long dataLength ()
 calculate the length of the variable length data of a ctree resource just loaded.

const void * getResourcePtr (COUNT resMode)
void describe (ostream &)

Protected Attributes

VOID * mBuffer
VRLEN mBufferLength
ULONG mResourceType
ULONG mResourceNumber
COUNT mDataNo
ctResInfo mResLenInfo


Constructor & Destructor Documentation

OOFCTResource::OOFCTResource  ) 
 

OOFCTResource::OOFCTResource ULONG  type,
ULONG  id
 

OOFCTResource::OOFCTResource oofString ,
oofString ext,
oofString iExt
 

OOFCTResource::OOFCTResource COUNT  datno,
COUNT  resMode
 

dg debug 20001023 i think this is wrong

OOFCTResource::OOFCTResource COUNT  datno  ) 
 

OOFCTResource::~OOFCTResource  ) 
 


Member Function Documentation

void OOFCTResource::closeFile  ) 
 

Close the resourcefile.

unsigned long OOFCTResource::dataLength  ) 
 

calculate the length of the variable length data of a ctree resource just loaded.

void OOFCTResource::describe ostream &   ) 
 

const void * OOFCTResource::getResourcePtr COUNT  resMode  ) 
 

void OOFCTResource::loadData ostringstream  resourceString  ) 
 

void OOFCTResource::loadData const oofString  ) 
 

void OOFCTResource::loadData ostringstream  resourceString,
const oofString  resourceName = ""
 

void OOFCTResource::loadResource oofString ,
oofString ext,
oofString iExt
 

void OOFCTResource::loadResource ULONG  resType  ) 
 

Load a resource identified by resType from the file opened by the method openFile of this object or set at construct time.

void OOFCTResource::loadResource COUNT  resMode  ) 
 

void OOFCTResource::loadResource COUNT  datNo,
ULONG  resType,
ULONG  resID,
COUNT  resMode
 

Load a resource identified by resType resID using resMode from the open file pointed to by datNo.

void OOFCTResource::loadResource ULONG  resType,
ULONG  resID,
COUNT  resMode
 

Load a resource identified by resType & resID from the file opened by the method openFile of this object or set at construct time.

void OOFCTResource::newFile const oofString inFile,
const oofString connectionName
 

void OOFCTResource::openFile oofFileRef inFile  ) 
 

Open a CT file to get a resource.

mIFIL.dreclen = 2; mIFIL.dxtdsiz = 0;//kDataExtendSize; mIFIL.dfilmod = OOF_ctreeBackend::sFileMode | ctFIXED; mIFIL.dnumidx = 0; // try and read withou the indexes mIFIL.ixtdsiz = 0; mIFIL.ifilmod = 0; mIFIL.ix = 0; mIFIL.rfstfld = 0; mIFIL.rlstfld = 0;

void OOFCTResource::openFile const oofString inFile,
const oofString connectionName
 

open the resource file with name inFile.

void OOFCTResource::openIFile const oofString inFile,
const oofString connectionName
 

Open a CT ISAM file to get a resource.

const char * OOFCTResource::resource  ) 
 

return a pointer to the data of this resource.

void OOFCTResource::resource std::ostream &  resourceString,
const oofString resourceName = ""
 

void OOFCTResource::saveResource COUNT  datno  ) 
 

Write the resource to the file identified by datno.

If the resource exists update it else create a new resource

void OOFCTResource::saveResource  ) 
 

Load a resource identified by resType from the file opened by the method openFile of this object or set at construct time.


Member Data Documentation

VOID* OOFCTResource::mBuffer [protected]
 

VRLEN OOFCTResource::mBufferLength [protected]
 

COUNT OOFCTResource::mDataNo [protected]
 

ctResInfo OOFCTResource::mResLenInfo [protected]
 

ULONG OOFCTResource::mResourceNumber [protected]
 

ULONG OOFCTResource::mResourceType [protected]
 


The documentation for this class was generated from the following files:
Generated on Thu Jan 1 21:42:03 2004 for OOFILE by doxygen 1.3.5