You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.5 KiB
54 lines
1.5 KiB
/*
|
|
* Turbo Vision - Version 2.0
|
|
*
|
|
* Copyright (c) 1994 by Borland International
|
|
* All Rights Reserved.
|
|
*
|
|
|
|
Modified by Robert H”hne to be used for RHIDE.
|
|
|
|
*
|
|
*
|
|
*/
|
|
|
|
/* ------------------------------------------------------------------------*/
|
|
/* */
|
|
/* class TStreamableTypes */
|
|
/* */
|
|
/* Maintains a database of all registered types in the application. */
|
|
/* Used by opstream and ipstream to find the functions to read and */
|
|
/* write objects. */
|
|
/* */
|
|
/* ------------------------------------------------------------------------*/
|
|
|
|
#if defined( Uses_TStreamableTypes ) && !defined( __TStreamableTypes )
|
|
#define __TStreamableTypes
|
|
|
|
// Avoid replacing new by MSS's macro
|
|
#include <tv/no_mss.h>
|
|
|
|
class TStreamableTypes : private TNSSortedCollection
|
|
{
|
|
|
|
public:
|
|
|
|
TStreamableTypes();
|
|
~TStreamableTypes();
|
|
|
|
void registerType( const TStreamableClass * );
|
|
const TStreamableClass *lookup( const char * );
|
|
|
|
void *operator new( size_t sz ) { return ::operator new( sz ); }
|
|
void *operator new( size_t, void * );
|
|
|
|
private:
|
|
|
|
virtual void *keyOf( void * );
|
|
int compare( void *, void * );
|
|
|
|
};
|
|
|
|
#include <tv/yes_mss.h>
|
|
|
|
#endif // Uses_TStreamableTypes
|
|
|