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.
41 lines
1.0 KiB
41 lines
1.0 KiB
14 years ago
|
//////////////////////////////////////////////////////////////////////////////////
|
||
|
// Name: actKeyReg.h
|
||
|
// Product: cv act library
|
||
|
// Purpose: registry for factory functions in actKeyKit.h
|
||
|
//
|
||
|
// Copyright: (c) 2000 cv cryptovision GmbH
|
||
|
// all rights reserved
|
||
|
// Licence: The conditions for the use of this software are regulated
|
||
|
// in the cv act library licence agreement.
|
||
|
//////////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
#ifndef ACT_KeyReg_h
|
||
|
#define ACT_KeyReg_h
|
||
|
|
||
|
namespace act
|
||
|
{
|
||
|
class IKey;
|
||
|
|
||
|
typedef IKey* (*CreateKeyPtr)();
|
||
|
|
||
|
struct KeyMapEntry
|
||
|
{
|
||
|
const char* Name;
|
||
|
CreateKeyPtr CreatePtr;
|
||
|
};
|
||
|
|
||
|
class KeyReg
|
||
|
{
|
||
|
public:
|
||
|
static IKey* CreateKey(const char* name);
|
||
|
static CreateKeyPtr GetCreatePointer(const char* name);
|
||
|
static const char* GetName(void* createptr);
|
||
|
static const char* GetNextName(const char* name);
|
||
|
static void Insert(const char* name, CreateKeyPtr createptr);
|
||
|
static void Insert(const KeyMapEntry* keymap);
|
||
|
};
|
||
|
|
||
|
} // namespace act
|
||
|
|
||
|
#endif // ACT_KeyReg_h
|