LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
logicalaccess::Chip Class Reference

The base chip class for all chip. Each chip have is own object and providers according to himself and the reader used to access the chip. More...

#include <chip.hpp>

Inheritance diagram for logicalaccess::Chip:
logicalaccess::IChip logicalaccess::DESFireChip logicalaccess::EM4102Chip logicalaccess::EM4135Chip logicalaccess::FeliCaChip logicalaccess::GenericTagChip logicalaccess::ISO15693Chip logicalaccess::ISO7816Chip logicalaccess::IndalaChip logicalaccess::LegicPrimeChip logicalaccess::MifareChip logicalaccess::MifarePlusSChip logicalaccess::MifarePlusSL0Chip logicalaccess::MifarePlusSL3Chip logicalaccess::MifarePlusXChip logicalaccess::MifareUltralightChip logicalaccess::ProxChip logicalaccess::ProxLiteChip logicalaccess::SAMChip logicalaccess::SeosChip logicalaccess::SmartFrameChip logicalaccess::StmLri512Chip logicalaccess::TopazChip logicalaccess::YubikeyChip

Public Member Functions

 Chip ()
 Constructor.
 
 Chip (std::string cardtype)
 Constructor.
 
virtual ~Chip ()
 Destructor.
 
const std::string & getCardType () const override
 Get the card type of the chip.
 
std::string getGenericCardType () const override
 Get the generic card type.
 
virtual std::shared_ptr< LocationNodegetRootLocationNode ()
 Get the root location node.
 
std::shared_ptr< CommandsgetCommands () const override
 Get the commands.
 
void setCommands (std::shared_ptr< Commands > commands)
 Set commands.
 
ByteVector getChipIdentifier () const override
 Get the chip identifier.
 
virtual void setChipIdentifier (ByteVector identifier)
 Set the chip identifier.
 
ChipPowerStatus getPowerStatus () const
 Get the chip power status.
 
void setPowerStatus (ChipPowerStatus powerStatus)
 Set the chip power status.
 
unsigned char getReceptionLevel () const
 Get the chip reception level.
 
void setReceptionLevel (unsigned char receptionLevel)
 Set the chip reception level.
 
virtual std::shared_ptr< AccessInfocreateAccessInfo () const
 Create default access informations.
 
virtual std::shared_ptr< LocationcreateLocation () const
 Create default location.
 
std::shared_ptr< CardServicegetService (CardServiceType serviceType) override
 Get a card service for this chip.
 
template<typename T >
std::shared_ptr< T > getService ()
 
bool operator< (const Chip &chip) const
 
- Public Member Functions inherited from logicalaccess::IChip
virtual ~IChip ()=default
 
virtual const std::string & getCardType () const =0
 Get the card type of the chip.
 
virtual std::string getGenericCardType () const =0
 Get the generic card type.
 
virtual std::shared_ptr< CommandsgetCommands () const =0
 Get the commands.
 
virtual ByteVector getChipIdentifier () const =0
 Get the chip identifier.
 
virtual std::shared_ptr< CardServicegetService (CardServiceType serviceType)=0
 Get a card service for this chip.
 

Protected Attributes

std::string d_cardtype
 The card type of the profile.
 
ByteVector d_chipIdentifier
 The chip identifier.
 
ChipPowerStatus d_powerStatus
 The chip power status. Most chip doesn't have his own power supply.
 
std::shared_ptr< Commandsd_commands
 Commands object.
 
unsigned char d_receptionLevel
 The chip reception level.
 

Detailed Description

The base chip class for all chip. Each chip have is own object and providers according to himself and the reader used to access the chip.

Constructor & Destructor Documentation

◆ Chip() [1/2]

logicalaccess::Chip::Chip ( )

Constructor.

◆ Chip() [2/2]

logicalaccess::Chip::Chip ( std::string  cardtype)
explicit

Constructor.

Parameters
cardtypeThe Card type of the chip.

◆ ~Chip()

virtual logicalaccess::Chip::~Chip ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ createAccessInfo()

std::shared_ptr< AccessInfo > logicalaccess::Chip::createAccessInfo ( ) const
virtual

◆ createLocation()

std::shared_ptr< Location > logicalaccess::Chip::createLocation ( ) const
virtual

◆ getCardType()

const std::string & logicalaccess::Chip::getCardType ( ) const
overridevirtual

◆ getChipIdentifier()

ByteVector logicalaccess::Chip::getChipIdentifier ( ) const
inlineoverridevirtual

◆ getCommands()

std::shared_ptr< Commands > logicalaccess::Chip::getCommands ( ) const
inlineoverridevirtual

◆ getGenericCardType()

std::string logicalaccess::Chip::getGenericCardType ( ) const
overridevirtual

◆ getPowerStatus()

ChipPowerStatus logicalaccess::Chip::getPowerStatus ( ) const
inline

Get the chip power status.

Returns
The power status.

◆ getReceptionLevel()

unsigned char logicalaccess::Chip::getReceptionLevel ( ) const
inline

Get the chip reception level.

Returns
The reception level.

◆ getRootLocationNode()

std::shared_ptr< LocationNode > logicalaccess::Chip::getRootLocationNode ( )
virtual

◆ getService() [1/2]

template<typename T >
std::shared_ptr< T > logicalaccess::Chip::getService ( )
inline

◆ getService() [2/2]

std::shared_ptr< CardService > logicalaccess::Chip::getService ( CardServiceType  serviceType)
overridevirtual

◆ operator<()

bool logicalaccess::Chip::operator< ( const Chip chip) const
inline

◆ setChipIdentifier()

virtual void logicalaccess::Chip::setChipIdentifier ( ByteVector  identifier)
inlinevirtual

Set the chip identifier.

Parameters
identifierThe chip identifier.

◆ setCommands()

void logicalaccess::Chip::setCommands ( std::shared_ptr< Commands commands)
inline

Set commands.

Parameters
commandsThe commands.

◆ setPowerStatus()

void logicalaccess::Chip::setPowerStatus ( ChipPowerStatus  powerStatus)
inline

Set the chip power status.

Parameters
powerStatusThe power status.

◆ setReceptionLevel()

void logicalaccess::Chip::setReceptionLevel ( unsigned char  receptionLevel)
inline

Set the chip reception level.

Parameters
powerStatusThe reception level.

Member Data Documentation

◆ d_cardtype

std::string logicalaccess::Chip::d_cardtype
protected

The card type of the profile.

◆ d_chipIdentifier

ByteVector logicalaccess::Chip::d_chipIdentifier
protected

The chip identifier.

◆ d_commands

std::shared_ptr<Commands> logicalaccess::Chip::d_commands
protected

Commands object.

◆ d_powerStatus

ChipPowerStatus logicalaccess::Chip::d_powerStatus
protected

The chip power status. Most chip doesn't have his own power supply.

◆ d_receptionLevel

unsigned char logicalaccess::Chip::d_receptionLevel
protected

The chip reception level.


The documentation for this class was generated from the following files: