LibLogicalAccess
2.5.0
An Open Source RFID Library
|
#include <memorycontroltlv.hpp>
Public Member Functions | |
MemoryControlTlv () | |
MemoryControlTlv (ByteVector data) | |
MemoryControlTlv (int byteAddr, unsigned char size) | |
~MemoryControlTlv () | |
int | getByteAddr () const |
void | setByteAddr (int addr) |
unsigned char | getPageAddr () const |
void | setPageAddr (unsigned char pageAddr) |
unsigned char | getOffset () const |
void | setOffset (unsigned char offset) |
unsigned char | getSize () const |
void | setSize (unsigned char size) |
unsigned char | getBytesPerPage () const |
void | setBytesPerPage (unsigned char bytesPerPage) |
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. | |
![]() | |
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) |
![]() | |
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 std::shared_ptr< MemoryControlTlv > | tlvToMemoryControl (ByteVector tlv) |
static ByteVector | memoryControlToTLV (std::shared_ptr< MemoryControlTlv > data) |
![]() | |
static ByteVector | dataToTLV (std::shared_ptr< NfcData > data) |
static std::vector< std::shared_ptr< NfcData > > | tlvToData (ByteVector tlv) |
![]() | |
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. | |
Private Member Functions | |
void | calculateReservedPosition () |
Private Attributes | |
int | _byteAddr |
unsigned char | _pageAddr |
unsigned char | _offset |
unsigned char | _size |
unsigned char | _bytesPerPage |
Additional Inherited Members | |
![]() | |
static unsigned long long | atoull (const std::string &str) |
![]() | |
char | m_type |
logicalaccess::MemoryControlTlv::MemoryControlTlv | ( | ) |
logicalaccess::MemoryControlTlv::MemoryControlTlv | ( | ByteVector | data | ) |
logicalaccess::MemoryControlTlv::MemoryControlTlv | ( | int | byteAddr, |
unsigned char | size | ||
) |
logicalaccess::MemoryControlTlv::~MemoryControlTlv | ( | ) |
|
private |
int logicalaccess::MemoryControlTlv::getByteAddr | ( | ) | const |
unsigned char logicalaccess::MemoryControlTlv::getBytesPerPage | ( | ) | const |
|
overridevirtual |
Get the default Xml Node name for this object.
Implements logicalaccess::XmlSerializable.
unsigned char logicalaccess::MemoryControlTlv::getOffset | ( | ) | const |
unsigned char logicalaccess::MemoryControlTlv::getPageAddr | ( | ) | const |
unsigned char logicalaccess::MemoryControlTlv::getSize | ( | ) | const |
|
static |
|
overridevirtual |
Serialize object to Xml Node.
os | The XML stream. |
Implements logicalaccess::XmlSerializable.
void logicalaccess::MemoryControlTlv::setByteAddr | ( | int | addr | ) |
void logicalaccess::MemoryControlTlv::setBytesPerPage | ( | unsigned char | bytesPerPage | ) |
void logicalaccess::MemoryControlTlv::setOffset | ( | unsigned char | offset | ) |
void logicalaccess::MemoryControlTlv::setPageAddr | ( | unsigned char | pageAddr | ) |
void logicalaccess::MemoryControlTlv::setSize | ( | unsigned char | size | ) |
|
static |
|
overridevirtual |
UnSerialize object from a Xml Node.
node | The Xml node. |
Implements logicalaccess::XmlSerializable.
|
private |
|
private |
|
private |
|
private |
|
private |