Typedefs

typedef

unsigned short

RWClassID;

// defs.h //

Unique for each class

typedef

int

RWBoolean;

// defs.h // // //

TRUE or FALSE (if compiler does not support bool). Use of RWBoolean is deprecated, but this typedef is kept for backward compatibility.

typedef

bool

RWBoolean;

// defs.h // //

bool literal (if compiler supports bool). Use of RWBoolean is deprecated, but this typedef is kept for backward compatibility.

typedef

unsigned char

RWByte;

// defs.h

Bitflag atomic

typedef

RWCollectable*

RWCollectable;

// tooldefs.h //

Needed for tokenizing

typedef

unsigned short

RWErrNo;

// defs.h //

Used in error handler

typedef

long

RWoffset;

// tooldefs.h //

Used for file offsets

typedef

unsigned long

RWspace;

// tooldefs.h //

Used for file records

typedef

long

RWstoredValue;

// tooldefs.h //

Used for file offsets

typedef

void*

RWvoid;

// tooldefs.h //

For arrays of void*

Pointers to Functions

typedef

void

(*RWapplyCollectable)

(RWCollectable*, void*);

typedef

void

(*RWapplyGeneric)

(void*, void*);

typedef

void

(*RWapplyKeyAndValue)

(RWCollectable*, RWCollectable*, void*);

typedef

void

(*RWauditFunction)

(unsigned char, void*);

typedef

void

(*RWdiskTreeApply)

(const char*, RWstoredValue, void*);

typedef

int

(*RWdiskTreeCompare)

(const char*, const char*, size_t);

typedef

RWBoolean

(*RWtestGeneric)

(const void*, const void*);

typedef

RWBoolean

(*RWtestCollectable)

(const RWCollectable*, const void*);

typedef

RWBoolean

(*RWtestCollectablePair)

(const RWCollectable*, const RWCollectable*, void*);

typedef

RWCollectable*

(*RWuserCreator)

();

Enumerations

Enumerations take the following form:

 

enum RWSeverity {RWWARNING, RWDEFAULT, RWFATAL}

The following enumerations modify the behavior of member functions or constructors for the classes involved. The value in italic is the default.

RWCString::enum stripType

{leading, trailing, both}

// where to strip // characters

RWCString::enum caseCompare

{exact, ignoreCase}

// ignore case during // comparison

RWCString::enum scopeType

{one, all}

// replace how many // substrings

RWBTreeOnDisk::enum styleMode

{V6Style, V5Style}

// file format

RWBTreeOnDisk::enum createMode

{autoCreate, create}

//(reuse,make new) // btree in file

RWeostream::enum Endian

{LittleEndian, BigEndian, HostEndian}

// constructor // argument

RWLocale::enum CurrSymbol

{NONE, LOCAL, INTL}

// used in "asString" // methods.

RWWString::enum stripType

{leading,trailing,both}

// where to strip // characters

RWWString::enum caseCompare

{exact, ignoreCase}

// ignore case // during comparison

RWWString::enum scopeType

{one, all}

// replace how many // substrings