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

#include <urirecord.hpp>

Inheritance diagram for logicalaccess::UriRecord:
logicalaccess::NdefRecord logicalaccess::XmlSerializable

Public Member Functions

 UriRecord ()
 
virtual ~UriRecord ()
 
void init (TNF tnf, ByteVector type, ByteVector id, ByteVector payload) override
 
void updatePayload ()
 
void setUri (std::string uri)
 
std::string getUri ()
 
void setPrefixe (UriType prefixe)
 
UriType getPrefixe () const
 
- Public Member Functions inherited from logicalaccess::NdefRecord
 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)
 
ByteVectorgetType ()
 
void setPayload (ByteVector payload)
 
ByteVectorgetPayload ()
 
void setId (ByteVector id)
 
ByteVectorgetId ()
 
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.
 
- 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.
 

Private Attributes

std::string m_uri
 
UriType m_prefixe
 
std::unordered_map< UriType, std::string > m_prefixeMap
 

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.
 
- Protected Member Functions inherited from logicalaccess::NdefRecord
unsigned char getTnfByte (bool firstRecord, bool lastRecord) const
 
- Static Protected Member Functions inherited from logicalaccess::XmlSerializable
static unsigned long long atoull (const std::string &str)
 
- Protected Attributes inherited from logicalaccess::NdefRecord
TNF m_tnf
 
ByteVector m_type
 
ByteVector m_payload
 
ByteVector m_id
 

Constructor & Destructor Documentation

◆ UriRecord()

logicalaccess::UriRecord::UriRecord ( )
inline

◆ ~UriRecord()

virtual logicalaccess::UriRecord::~UriRecord ( )
inlinevirtual

Member Function Documentation

◆ getPrefixe()

UriType logicalaccess::UriRecord::getPrefixe ( ) const

◆ getUri()

std::string logicalaccess::UriRecord::getUri ( )

◆ init()

void logicalaccess::UriRecord::init ( TNF  tnf,
ByteVector  type,
ByteVector  id,
ByteVector  payload 
)
overridevirtual

Reimplemented from logicalaccess::NdefRecord.

◆ setPrefixe()

void logicalaccess::UriRecord::setPrefixe ( UriType  prefixe)

◆ setUri()

void logicalaccess::UriRecord::setUri ( std::string  uri)

◆ updatePayload()

void logicalaccess::UriRecord::updatePayload ( )

Member Data Documentation

◆ m_prefixe

UriType logicalaccess::UriRecord::m_prefixe
private

◆ m_prefixeMap

std::unordered_map<UriType, std::string> logicalaccess::UriRecord::m_prefixeMap
private

◆ m_uri

std::string logicalaccess::UriRecord::m_uri
private

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