LibLogicalAccess
2.5.0
An Open Source RFID Library
|
A reader format composite class. This is a card format composite associated to a specific reader configuration. More...
#include <readerformatcomposite.hpp>
Public Member Functions | |
ReaderFormatComposite () | |
Constructor. | |
virtual | ~ReaderFormatComposite () |
Destructor. | |
std::shared_ptr< Format > | readFormat () const |
Read format from a card. | |
void | serialize (boost::property_tree::ptree &parentNode) override |
Serialize the current object to XML. | |
void | unSerialize (boost::property_tree::ptree &node) override |
UnSerialize a XML node to the current object. | |
std::string | getDefaultXmlNodeName () const override |
Get the default Xml Node name for this object. | |
std::shared_ptr< ReaderConfiguration > | getReaderConfiguration () const |
Get the reader configuration. | |
void | setReaderConfiguration (std::shared_ptr< ReaderConfiguration > readerConfig) |
std::shared_ptr< CardsFormatComposite > | getCardsFormatComposite () const |
Get the cards format composite. | |
void | setCardsFormatComposite (std::shared_ptr< CardsFormatComposite > composite) |
![]() | |
virtual | ~XmlSerializable ()=default |
virtual std::string | serialize () |
Serialize object to Xml Node string. | |
virtual std::string | serializeWithHeaders () |
Serialize object to Xml Node string, with xml headers. | |
virtual void | serialize (boost::property_tree::ptree &parentNode)=0 |
Serialize object to Xml Node. | |
virtual void | serializeToFile (const std::string &filename) |
Serialize object to a Xml file. | |
virtual void | unSerialize (boost::property_tree::ptree &node)=0 |
UnSerialize object from a Xml Node. | |
virtual void | unSerialize (const std::string &xmlstring, const std::string &rootNode) |
UnSerialize object from a Xml Node string. | |
virtual void | unSerialize (std::istream &is, const std::string &rootNode) |
UnSerialize object from a Xml node. | |
virtual void | unSerialize (boost::property_tree::ptree &node, const std::string &rootNode) |
UnSerialize object from a Xml node. | |
virtual void | unSerializeFromFile (const std::string &filename) |
UnSerialize object from a Xml file. | |
virtual std::string | getDefaultXmlNodeName () const =0 |
Get the default Xml Node name for this object. | |
Protected Attributes | |
std::shared_ptr< CardsFormatComposite > | d_cardsFormatComposite |
The cards foramt composite. | |
std::shared_ptr< ReaderConfiguration > | d_readerConfiguration |
The reader configuration. | |
Additional Inherited Members | |
![]() | |
static std::string | removeXmlDeclaration (const std::string &xmlstring) |
Remove Xml declaration from a xml string. | |
static ByteVector | formatHexString (std::string hexstr) |
Format hex string to hex string with space. | |
![]() | |
static unsigned long long | atoull (const std::string &str) |
A reader format composite class. This is a card format composite associated to a specific reader configuration.
logicalaccess::ReaderFormatComposite::ReaderFormatComposite | ( | ) |
Constructor.
|
virtual |
Destructor.
std::shared_ptr< CardsFormatComposite > logicalaccess::ReaderFormatComposite::getCardsFormatComposite | ( | ) | const |
Get the cards format composite.
|
overridevirtual |
Get the default Xml Node name for this object.
Implements logicalaccess::XmlSerializable.
std::shared_ptr< ReaderConfiguration > logicalaccess::ReaderFormatComposite::getReaderConfiguration | ( | ) | const |
Get the reader configuration.
std::shared_ptr< Format > logicalaccess::ReaderFormatComposite::readFormat | ( | ) | const |
Read format from a card.
|
overridevirtual |
Serialize the current object to XML.
parentNode | The parent node. |
Implements logicalaccess::XmlSerializable.
void logicalaccess::ReaderFormatComposite::setCardsFormatComposite | ( | std::shared_ptr< CardsFormatComposite > | composite | ) |
void logicalaccess::ReaderFormatComposite::setReaderConfiguration | ( | std::shared_ptr< ReaderConfiguration > | readerConfig | ) |
|
overridevirtual |
UnSerialize a XML node to the current object.
node | The XML node. |
Implements logicalaccess::XmlSerializable.
|
protected |
The cards foramt composite.
|
protected |
The reader configuration.