#undef NEED
-// -- cSmartCardSlots ----------------------------------------------------------
+// -- cSmartCardSlots / cSmartCardSlotLink -------------------------------------
+
+class cSmartCardSlotLink {
+public:
+ cSmartCardSlotLink *next;
+ const char *name;
+public:
+ cSmartCardSlotLink(const char *Name);
+ virtual ~cSmartCardSlotLink() {}
+ virtual cSmartCardSlot *Create(void)=0;
+ };
+
+template<class LL> class cSmartCardSlotLinkReg : public cSmartCardSlotLink {
+public:
+ cSmartCardSlotLinkReg(const char *Name):cSmartCardSlotLink(Name) {}
+ virtual cSmartCardSlot *Create(void) { return new LL; }
+ };
class cSmartCardSlots : public cStructListPlain<cSmartCardSlot> {
friend class cSmartCardSlotLink;
static cSmartCardSlots cardslots;
-// -- cSmartCardSlotLink -------------------------------------------------------
-
-class cSmartCardSlotLink {
-public:
- cSmartCardSlotLink *next;
- const char *name;
-public:
- cSmartCardSlotLink(const char *Name);
- virtual ~cSmartCardSlotLink() {}
- virtual cSmartCardSlot *Create(void)=0;
- };
-
-template<class LL> class cSmartCardSlotLinkReg : public cSmartCardSlotLink {
-public:
- cSmartCardSlotLinkReg(const char *Name):cSmartCardSlotLink(Name) {}
- virtual cSmartCardSlot *Create(void) { return new LL; }
- };
-
cSmartCardSlotLink::cSmartCardSlotLink(const char *Name)
{
name=Name;
cSmartCardSlots::Register(this);
}
-// -- cSmartCardSlots ----------------------------------------------------------
-
cSmartCardSlots::cSmartCardSlots(void)
:cStructListPlain<cSmartCardSlot>("cardslot config","cardslot.conf",SL_MISSINGOK|SL_VERBOSE|SL_NOPURGE)
{}