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

The Mifare Ultralight C base chip class. More...

#include <mifareultralightcchip.hpp>

Inheritance diagram for logicalaccess::MifareUltralightCChip:
logicalaccess::MifareUltralightChip logicalaccess::Chip logicalaccess::IChip

Public Member Functions

 MifareUltralightCChip ()
 Constructor.
 
virtual ~MifareUltralightCChip ()
 Destructor.
 
std::shared_ptr< LocationNodegetRootLocationNode () override
 Get the root location node.
 
std::shared_ptr< CardServicegetService (CardServiceType serviceType) override
 Get a card service for this chip.
 
std::shared_ptr< AccessInfocreateAccessInfo () const override
 Create default access informations.
 
std::shared_ptr< TripleDESKeygetDefaultKey () const
 
std::shared_ptr< MifareUltralightCCommandsgetMifareUltralightCCommands () const
 Get the Mifare Ultralight C card provider for I/O access.
 
- Public Member Functions inherited from logicalaccess::MifareUltralightChip
 MifareUltralightChip ()
 Constructor.
 
 MifareUltralightChip (std::string ct)
 Constructor.
 
virtual ~MifareUltralightChip ()
 Destructor.
 
std::string getGenericCardType () const override
 Get the generic card type.
 
std::shared_ptr< LocationNodegetRootLocationNode () override
 Get the root location node.
 
std::shared_ptr< CardServicegetService (CardServiceType serviceType) override
 Get a card service for this chip.
 
virtual unsigned short getNbBlocks (bool checkOnCard=false)
 Get the number of blocks.
 
std::shared_ptr< AccessInfocreateAccessInfo () const override
 Create default access informations.
 
std::shared_ptr< LocationcreateLocation () const override
 Create default location.
 
std::shared_ptr< MifareUltralightCommandsgetMifareUltralightCommands () const
 Get the Mifare Ultralight commands.
 
- Public Member Functions inherited from logicalaccess::Chip
 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.
 

Additional Inherited Members

- Protected Member Functions inherited from logicalaccess::MifareUltralightChip
void checkRootLocationNodeName (std::shared_ptr< LocationNode > rootNode)
 
- Static Protected Member Functions inherited from logicalaccess::MifareUltralightChip
static void addBlockNode (std::shared_ptr< LocationNode > rootNode, int block)
 
- Protected Attributes inherited from logicalaccess::MifareUltralightChip
unsigned short d_nbblocks
 
- Protected Attributes inherited from logicalaccess::Chip
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 Mifare Ultralight C base chip class.

Constructor & Destructor Documentation

◆ MifareUltralightCChip()

logicalaccess::MifareUltralightCChip::MifareUltralightCChip ( )

Constructor.

◆ ~MifareUltralightCChip()

logicalaccess::MifareUltralightCChip::~MifareUltralightCChip ( )
virtual

Destructor.

Member Function Documentation

◆ createAccessInfo()

std::shared_ptr< AccessInfo > logicalaccess::MifareUltralightCChip::createAccessInfo ( ) const
overridevirtual

Create default access informations.

Returns
Default access informations. Always null.

Reimplemented from logicalaccess::Chip.

◆ getDefaultKey()

std::shared_ptr< TripleDESKey > logicalaccess::MifareUltralightCChip::getDefaultKey ( ) const

◆ getMifareUltralightCCommands()

std::shared_ptr< MifareUltralightCCommands > logicalaccess::MifareUltralightCChip::getMifareUltralightCCommands ( ) const
inline

Get the Mifare Ultralight C card provider for I/O access.

Returns
The Mifare Ultralight C card provider.

◆ getRootLocationNode()

std::shared_ptr< LocationNode > logicalaccess::MifareUltralightCChip::getRootLocationNode ( )
overridevirtual

Get the root location node.

Returns
The root location node.

Reimplemented from logicalaccess::Chip.

◆ getService()

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

Get a card service for this chip.

Parameters
serviceTypeThe card service type.
Returns
The card service.

Reimplemented from logicalaccess::Chip.


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