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

#include <nfcdata.hpp>

Inheritance diagram for logicalaccess::NfcData:
logicalaccess::XmlSerializable logicalaccess::LockControlTlv logicalaccess::MemoryControlTlv logicalaccess::NdefMessage

Public Member Functions

 NfcData ()
 
 NfcData (char type)
 
 ~NfcData ()
 
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.
 
char getType () const
 
void setType (char type)
 
- 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 ByteVector dataToTLV (std::shared_ptr< NfcData > data)
 
static std::vector< std::shared_ptr< NfcData > > tlvToData (ByteVector tlv)
 
- 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

char m_type
 

Additional Inherited Members

- Static Protected Member Functions inherited from logicalaccess::XmlSerializable
static unsigned long long atoull (const std::string &str)
 

Constructor & Destructor Documentation

◆ NfcData() [1/2]

logicalaccess::NfcData::NfcData ( )

◆ NfcData() [2/2]

logicalaccess::NfcData::NfcData ( char  type)

◆ ~NfcData()

logicalaccess::NfcData::~NfcData ( )

Member Function Documentation

◆ dataToTLV()

ByteVector logicalaccess::NfcData::dataToTLV ( std::shared_ptr< NfcData data)
static

◆ getDefaultXmlNodeName()

std::string logicalaccess::NfcData::getDefaultXmlNodeName ( ) const
overridevirtual

Get the default Xml Node name for this object.

Returns
The Xml node name.

Implements logicalaccess::XmlSerializable.

◆ getType()

char logicalaccess::NfcData::getType ( ) const

◆ serialize()

void logicalaccess::NfcData::serialize ( boost::property_tree::ptree &  parentNode)
overridevirtual

Serialize object to Xml Node.

Parameters
osThe XML stream.

Implements logicalaccess::XmlSerializable.

◆ setType()

void logicalaccess::NfcData::setType ( char  type)

◆ tlvToData()

std::vector< std::shared_ptr< NfcData > > logicalaccess::NfcData::tlvToData ( ByteVector  tlv)
static

◆ unSerialize()

void logicalaccess::NfcData::unSerialize ( boost::property_tree::ptree &  node)
overridevirtual

UnSerialize object from a Xml Node.

Parameters
nodeThe Xml node.

Implements logicalaccess::XmlSerializable.

Member Data Documentation

◆ m_type

char logicalaccess::NfcData::m_type
protected

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