Portuguese eID Middleware SDK  Version: 3.12.0
eIDMW::PTEID_Object Class Referenceabstract

#include <eidlib.h>

Public Member Functions

virtual PTEIDSDK_API ~PTEID_Object ()=0
 
NOEXPORT_PTEIDSDK void Init (const SDK_Context *context, void *impl)
 
NOEXPORT_PTEIDSDK void Release ()
 

Protected Member Functions

 PTEID_Object (const SDK_Context *context, void *impl)
 
void addObject (PTEID_Object *impl)
 
void backupObject (unsigned long idx)
 
PTEID_ObjectgetObject (unsigned long idx)
 
PTEID_ObjectgetObject (void *impl)
 
void delObject (unsigned long idx)
 
void delObject (void *impl)
 
void checkContextStillOk () const
 
 PTEID_Object (const PTEID_Object &obj)
 
PTEID_Objectoperator= (const PTEID_Object &obj)
 

Protected Attributes

bool m_delimpl
 
void * m_impl
 
unsigned long m_ulIndexExtAdd
 
std::map< unsigned long, PTEID_Object * > m_objects
 
SDK_Context * m_context
 

Detailed Description

Base class for the object of PTEID SDK (Can not be instantiated).

Constructor & Destructor Documentation

◆ ~PTEID_Object()

virtual PTEIDSDK_API eIDMW::PTEID_Object::~PTEID_Object ( )
pure virtual

Destructor

◆ PTEID_Object() [1/2]

eIDMW::PTEID_Object::PTEID_Object ( const SDK_Context *  context,
void *  impl 
)
protected

For internal use : Constructor

◆ PTEID_Object() [2/2]

eIDMW::PTEID_Object::PTEID_Object ( const PTEID_Object obj)
protected

Copy not allowed - not implemented

Member Function Documentation

◆ addObject()

void eIDMW::PTEID_Object::addObject ( PTEID_Object impl)
protected

For internal use : Add linked object

◆ backupObject()

void eIDMW::PTEID_Object::backupObject ( unsigned long  idx)
protected

For internal use : Backup linked object

◆ checkContextStillOk()

void eIDMW::PTEID_Object::checkContextStillOk ( ) const
protected

For internal use : check if the Context is still correct (the card hasn't changed)

◆ delObject() [1/2]

void eIDMW::PTEID_Object::delObject ( unsigned long  idx)
protected

For internal use : Delete an object by its index

◆ delObject() [2/2]

void eIDMW::PTEID_Object::delObject ( void *  impl)
protected

For internal use : Delete an object by its impl

◆ getObject() [1/2]

PTEID_Object* eIDMW::PTEID_Object::getObject ( unsigned long  idx)
protected

For internal use : Return an object by its index

◆ getObject() [2/2]

PTEID_Object* eIDMW::PTEID_Object::getObject ( void *  impl)
protected

For internal use : Return an object by its impl

◆ Init()

NOEXPORT_PTEIDSDK void eIDMW::PTEID_Object::Init ( const SDK_Context *  context,
void *  impl 
)

For internal use : Initialize pimpl

◆ operator=()

PTEID_Object& eIDMW::PTEID_Object::operator= ( const PTEID_Object obj)
protected

Copy not allowed - not implemented

◆ Release()

NOEXPORT_PTEIDSDK void eIDMW::PTEID_Object::Release ( )

Release the objects instantiated within this PTEID_Object. Automatically call in the destructor.

Member Data Documentation

◆ m_context

SDK_Context* eIDMW::PTEID_Object::m_context
protected

For internal use : context structure

◆ m_delimpl

bool eIDMW::PTEID_Object::m_delimpl
protected

For internal use : m_impl object must be deleted

◆ m_impl

void* eIDMW::PTEID_Object::m_impl
protected

For internal use : pimpl pointer

◆ m_objects

std::map<unsigned long,PTEID_Object *> eIDMW::PTEID_Object::m_objects
protected

For internal use : Map of object instantiated within this PTEID_Object

◆ m_ulIndexExtAdd

unsigned long eIDMW::PTEID_Object::m_ulIndexExtAdd
protected

For internal use : extended add object