LibLogicalAccess
2.5.0
An Open Source RFID Library
|
#include <ndefrecord.hpp>
Public Member Functions | |
NdefRecord () | |
virtual | ~NdefRecord () |
size_t | getEncodedSize () const |
ByteVector | encode (bool firstRecord, bool lastRecord) |
virtual void | init (TNF tnf, ByteVector type, ByteVector id, ByteVector payload) |
void | setTnf (TNF tnf) |
TNF | getTnf () const |
void | setType (ByteVector type) |
ByteVector & | getType () |
void | setPayload (ByteVector payload) |
ByteVector & | getPayload () |
void | setId (ByteVector id) |
ByteVector & | getId () |
void | serialize (boost::property_tree::ptree &parentNode) override |
Serialize object to Xml Node. | |
void | unSerialize (boost::property_tree::ptree &node) override |
UnSerialize object from a Xml Node. | |
std::string | getDefaultXmlNodeName () const override |
Get the default Xml Node name for this object. | |
![]() | |
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 Member Functions | |
unsigned char | getTnfByte (bool firstRecord, bool lastRecord) const |
Protected Attributes | |
TNF | m_tnf |
ByteVector | m_type |
ByteVector | m_payload |
ByteVector | m_id |
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) |
|
inline |
|
inlinevirtual |
ByteVector logicalaccess::NdefRecord::encode | ( | bool | firstRecord, |
bool | lastRecord | ||
) |
|
inlineoverridevirtual |
Get the default Xml Node name for this object.
Implements logicalaccess::XmlSerializable.
size_t logicalaccess::NdefRecord::getEncodedSize | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
protected |
|
inline |
|
virtual |
Reimplemented in logicalaccess::TextRecord, and logicalaccess::UriRecord.
|
overridevirtual |
Serialize object to Xml Node.
os | The XML stream. |
Implements logicalaccess::XmlSerializable.
|
inline |
|
inline |
|
inline |
|
inline |
|
overridevirtual |
UnSerialize object from a Xml Node.
node | The Xml node. |
Implements logicalaccess::XmlSerializable.
|
protected |
|
protected |
|
protected |
|
protected |