|
LibLogicalAccess
2.5.0
An Open Source RFID Library
|
A reader configuration class. Contains the reader provider and selected reader unit. More...
#include <readerconfiguration.hpp>
Public Member Functions | |
| ReaderConfiguration () | |
| Constructor. | |
| virtual | ~ReaderConfiguration () |
| Destructor. | |
| 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< ReaderProvider > | getReaderProvider () const |
| Get the reader provider. | |
| std::shared_ptr< ReaderUnit > | getReaderUnit () const |
| Get the reader unit. | |
| void | setReaderProvider (std::shared_ptr< ReaderProvider > provider) |
| void | setReaderUnit (std::shared_ptr< ReaderUnit > unit) |
| virtual std::string | serialize () |
| Serialize object to Xml Node string. | |
| virtual void | serialize (boost::property_tree::ptree &parentNode)=0 |
| Serialize object to Xml Node. | |
| 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. | |
Public Member Functions inherited from logicalaccess::XmlSerializable | |
| 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< ReaderProvider > | d_readerProvider |
| The reader provider. | |
| std::shared_ptr< ReaderUnit > | d_ReaderUnit |
| The reader unit. | |
Additional Inherited Members | |
Static Public Member Functions inherited from logicalaccess::XmlSerializable | |
| 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 Protected Member Functions inherited from logicalaccess::XmlSerializable | |
| static unsigned long long | atoull (const std::string &str) |
A reader configuration class. Contains the reader provider and selected reader unit.
| logicalaccess::ReaderConfiguration::ReaderConfiguration | ( | ) |
Constructor.
|
virtual |
Destructor.
|
overridevirtual |
Get the default Xml Node name for this object.
Implements logicalaccess::XmlSerializable.
| std::shared_ptr< ReaderProvider > logicalaccess::ReaderConfiguration::getReaderProvider | ( | ) | const |
Get the reader provider.
| std::shared_ptr< ReaderUnit > logicalaccess::ReaderConfiguration::getReaderUnit | ( | ) | const |
Get the reader unit.
|
virtual |
Serialize object to Xml Node string.
Reimplemented from logicalaccess::XmlSerializable.
|
overridevirtual |
Serialize the current object to XML.
| parentNode | The parent node. |
Implements logicalaccess::XmlSerializable.
|
virtual |
Serialize object to Xml Node.
| os | The XML stream. |
Implements logicalaccess::XmlSerializable.
| void logicalaccess::ReaderConfiguration::setReaderProvider | ( | std::shared_ptr< ReaderProvider > | provider | ) |
| void logicalaccess::ReaderConfiguration::setReaderUnit | ( | std::shared_ptr< ReaderUnit > | unit | ) |
|
overridevirtual |
UnSerialize a XML node to the current object.
| node | The XML node. |
Implements logicalaccess::XmlSerializable.
|
virtual |
UnSerialize object from a Xml Node.
| node | The Xml node. |
Implements logicalaccess::XmlSerializable.
|
virtual |
UnSerialize object from a Xml node.
| node | The Xml node. |
| rootNode | The root node. |
Reimplemented from logicalaccess::XmlSerializable.
|
virtual |
UnSerialize object from a Xml Node string.
| xmlstring | The Xml Node string. |
| rootNode | The root node. |
Reimplemented from logicalaccess::XmlSerializable.
|
virtual |
UnSerialize object from a Xml node.
| is | The Xml stream. |
| rootNode | The root node. |
Reimplemented from logicalaccess::XmlSerializable.
|
protected |
The reader provider.
|
protected |
The reader unit.
1.9.6