|
LibLogicalAccess
2.5.0
An Open Source RFID Library
|
#include <serialportxml.hpp>
Public Member Functions | |
| virtual | ~SerialPortXml ()=default |
| SerialPortXml () | |
| Constructor. | |
| SerialPortXml (const std::string &dev) | |
| Constructor. | |
| 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< SerialPort > | getSerialPort () const |
| Get the serial port object. | |
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. | |
Static Public Member Functions | |
| static bool | EnumerateUsingCreateFile (std::vector< std::shared_ptr< SerialPortXml > > &ports) |
| Enumate available COM port using CreateFile function. | |
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. | |
Protected Attributes | |
| std::shared_ptr< SerialPort > | d_serialport |
Additional Inherited Members | |
Static Protected Member Functions inherited from logicalaccess::XmlSerializable | |
| static unsigned long long | atoull (const std::string &str) |
|
virtualdefault |
| logicalaccess::SerialPortXml::SerialPortXml | ( | ) |
Constructor.
|
explicit |
Constructor.
| dev | The device name. (Example: "/dev/tty0") |
|
static |
Enumate available COM port using CreateFile function.
| ports | The list which will contains the available COM port. |
|
overridevirtual |
Get the default Xml Node name for this object.
Implements logicalaccess::XmlSerializable.
| std::shared_ptr< SerialPort > logicalaccess::SerialPortXml::getSerialPort | ( | ) | const |
Get the serial port object.
|
overridevirtual |
Serialize the current object to XML.
| parentNode | The parent node. |
Implements logicalaccess::XmlSerializable.
|
overridevirtual |
UnSerialize a XML node to the current object.
| node | The XML node. |
Implements logicalaccess::XmlSerializable.
|
protected |
1.9.6