Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TStreamableTypes Class Reference

Maintains a database of all registered streamable types used in an application. More...

#include <tobjstrm.h>

Inheritance diagram for TStreamableTypes::

TNSSortedCollection List of all members.

Public Methods

 TStreamableTypes ()
 ~TStreamableTypes ()
void registerType (const TStreamableClass *d)
const TStreamableClasslookup (const char *name)
void* operator new (size_t sz)
void* operator new (size_t, void *)

Detailed Description

TStreamableTypes, derived privately from TNSSortedCollection, maintains a database of all registered streamable types used in an application.

Classes opstream and ipstream use this database to determine the correct read() and write() functions for particular objects. Because of the private derivation, all the inherited members are private within TStreamableTypes.

Definition at line 221 of file tobjstrm.h.


Constructor & Destructor Documentation

TStreamableTypes::TStreamableTypes ( )
 

Calls the base TNSSortedCollection constructor to create a TStreamableTypes collection.

See also:
TNSSortedCollection::TNSSortedCollection

TStreamableTypes::~TStreamableTypes ( )
 

Sets the collection limit to 0 without destroying the collection (since the shouldDelete data member is set to False).


Member Function Documentation

const TStreamableClass * TStreamableTypes::lookup ( const char * name )
 

Returns a pointer to the class in the collection corresponding to the argument `name', or returns 0 if no match.

void * TStreamableTypes::operator new ( size_t,
void * )
 

Undocumented.

void * TStreamableTypes::operator new ( size_t sz ) [inline]
 

Undocumented.

Definition at line 247 of file tobjstrm.h.

void TStreamableTypes::registerType ( const TStreamableClass * d )
 

Registers the argument class by inserting `d' in the collection.


The documentation for this class was generated from the following file:
Generated at Sat Sep 22 20:19:36 2001 for TVision by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001