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.
47 lines
1.2 KiB
47 lines
1.2 KiB
14 years ago
|
// ---------------------------------------------------------------------------
|
||
|
// Name: actSCardOSReg.h
|
||
|
// Product: cv act library
|
||
|
// Purpose: factory functions registry to create SCardOS objects.
|
||
|
//
|
||
|
// Copyright: (c) 2002 cv cryptovision GmbH
|
||
|
// all rights reserved
|
||
|
// Licence: The conditions for the use of this software are regulated
|
||
|
// in the cv act library licence agreement.
|
||
|
//
|
||
|
// Autor: Dr. Xiangdong Wang (XWG)
|
||
|
// Date: 04/09/2002
|
||
|
// ---------------------------------------------------------------------------
|
||
|
|
||
|
#ifndef ACT_SCardOSReg_h
|
||
|
#define ACT_SCardOSReg_h
|
||
|
|
||
|
namespace act
|
||
|
{
|
||
|
# define ACT_ISO7816OS_NAME "ISO7816OS"
|
||
|
|
||
|
class ISCardOS;
|
||
|
class ISCardAccess;
|
||
|
|
||
|
typedef ISCardOS* (*CreateSCardOSPtr)(ISCardAccess*);
|
||
|
|
||
|
struct SCardOSMapEntry
|
||
|
{
|
||
|
const char* Name;
|
||
|
CreateSCardOSPtr CreatePtr;
|
||
|
};
|
||
|
|
||
|
class SCardOSReg
|
||
|
{
|
||
|
public:
|
||
|
static ISCardOS* CreateSCardOS(const char* name, ISCardAccess* ac);
|
||
|
static CreateSCardOSPtr GetCreatePointer(const char* name);
|
||
|
static const char* GetName(void* createptr);
|
||
|
static const char* GetNextName(const char* name);
|
||
|
static void Insert(const char* name, CreateSCardOSPtr createptr);
|
||
|
static void Insert(const SCardOSMapEntry* entry);
|
||
|
};
|
||
|
|
||
|
} // namespace act
|
||
|
|
||
|
#endif // ACT_SCardOSReg_h
|