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

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

#include <oofCTRes.h>

Collaboration diagram for ctResInfo:

Collaboration graph
[legend]
List of all members.

Detailed Description

Wrapper to read c-tree Plus cross-platform resources.

Used in reading schema stored in database files.


Public Member Functions

 ctResInfo (ULONG, ULONG)
 Read header of a ct resource identified by resType & resID.

 ctResInfo (const char *)
 Read header of a ct resource identified by resName.

 ctResInfo ()
void readInfo (COUNT datNo)
void readInfo (COUNT datNo, char *name)
 Read the resource header of the the named resource from file number datNo.

void readInfo (COUNT datNo, ULONG type, COUNT resMode=0)
 Read the resource header of the resource identified by the type.

void readInfo (COUNT datNo, COUNT resMode)
void type (ULONG)
void number (ULONG)
void len (ULONG)
void name (const char *)
 Set the name field of the resource header.

const char * name () const
 Set the name field of the resource header.

ULONG type () const
ULONG number () const
ULONG len () const
const void * typePtr () const
 get the name field of the resource header.

const void * numberPtr () const
 get the resID field of the resource header.

const void * lenPtr () const
 get the resLength field of the resource header.

const void * namePtr () const
 get the resName field of the resource header.

const void * infoPtr () const


Constructor & Destructor Documentation

ctResInfo::ctResInfo ULONG  resType,
ULONG  resID
 

Read header of a ct resource identified by resType & resID.

Todo:
Investigate the resType concept and cross-platform safety especially if use 4 character codes - suspect need byteswapper!

ctResInfo::ctResInfo const char *  resName  ) 
 

Read header of a ct resource identified by resName.

Default ctor.

Todo:
probably remove this or put sensible defaults in place.
Note:
use of oofString members means all init safely by default to empty strings.

ctResInfo::ctResInfo  ) 
 


Member Function Documentation

const void * ctResInfo::infoPtr  )  const
 

ULONG ctResInfo::len  )  const
 

void ctResInfo::len ULONG   ) 
 

const void * ctResInfo::lenPtr  )  const
 

get the resLength field of the resource header.

const char * ctResInfo::name  )  const
 

Set the name field of the resource header.

void ctResInfo::name const char *  theName  ) 
 

Set the name field of the resource header.

const void * ctResInfo::namePtr  )  const
 

get the resName field of the resource header.

ULONG ctResInfo::number  )  const
 

void ctResInfo::number ULONG   ) 
 

const void * ctResInfo::numberPtr  )  const
 

get the resID field of the resource header.

void ctResInfo::readInfo COUNT  datNo,
COUNT  resMode
 

void ctResInfo::readInfo COUNT  datNo,
ULONG  type,
COUNT  resMode = 0
 

Read the resource header of the resource identified by the type.

"type from the file identified by datNo using mode resMode

Parameters:
resMode is optional

void ctResInfo::readInfo COUNT  datNo  ) 
 

ULONG ctResInfo::type  )  const
 

void ctResInfo::type ULONG   ) 
 

const void * ctResInfo::typePtr  )  const
 

get the name field of the resource header.


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