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.
40 lines
1.1 KiB
40 lines
1.1 KiB
////////////////////////////////////////////////////////////////////////////////// |
|
// Name: actHashReg.h |
|
// Product: cv act library |
|
// Purpose: registry for factory functions in actHashKit.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_HashReg_H |
|
#define ACT_HashReg_H |
|
|
|
namespace act |
|
{ |
|
class IHashAlg; |
|
|
|
typedef IHashAlg* (*CreateHashPtr)(); |
|
|
|
struct HashMapEntry |
|
{ |
|
const char* Name; |
|
CreateHashPtr CreatePtr; |
|
}; |
|
|
|
class HashReg |
|
{ |
|
public: |
|
static IHashAlg* CreateHashAlg(const char* name); |
|
static CreateHashPtr GetCreatePointer(const char* name); |
|
static const char* GetName(void* createptr); |
|
static const char* GetNextName(const char* name); |
|
static void Insert(const char* name, CreateHashPtr createptr); |
|
static void Insert(const HashMapEntry* hashmap); |
|
}; |
|
|
|
} // namespace act |
|
|
|
#endif // ACT_HashReg_H
|
|
|