home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftptest.leeds.ac.uk
/
2015.02.ftptest.leeds.ac.uk.tar
/
ftptest.leeds.ac.uk
/
bionet
/
CAE-GROUP
/
SCL-WIN3x
/
SCLTEST.EXE
/
SCL2HTML
/
MYREGIST.H
< prev
next >
Wrap
C/C++ Source or Header
|
1994-12-13
|
997b
|
36 lines
/*
* MyRegistry.h
*
* Ian Soboroff, NIST
* July 1994
*
* The registry class, as defined in src/clstepcore/Registry.*, does not
* provide a facility for browsing the hashtable of types, as it does for
* schemas and entities. Just an oversight, I'm sure. ;-)
*
* class MyRegistry is derived from class Registry, and just adds functions
* ResetTypes() and NextType() to parallel ResetEntities(), etc, and
* NextEntity(), etc.
*/
#include <Registry.h>
//typedef void (* CF_init) (Registry &); // pointer to creation init.
class MyRegistry : public Registry
{
protected:
HashEntry cur_type;
public:
MyRegistry(CF_init initFunct) : Registry(initFunct)
{ HASHlistinit (active_types, &cur_type); }
~MyRegistry() {}
void ResetTypes() { HASHlistinit(active_types, &cur_type); }
const TypeDescriptor* NextType()
{ if (0 == HASHlist(&cur_type)) return 0;
return (const TypeDescriptor*) cur_type.e->data; }
};