LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
Public Member Functions | List of all members
logicalaccess::Location Class Referenceabstract

A location informations. More...

#include <location.hpp>

Inheritance diagram for logicalaccess::Location:
logicalaccess::XmlSerializable logicalaccess::CPS3Location logicalaccess::DESFireLocation logicalaccess::FeliCaLocation logicalaccess::ISO15693Location logicalaccess::ISO7816Location logicalaccess::MifareLocation logicalaccess::MifareUltralightLocation logicalaccess::ProxLocation logicalaccess::TopazLocation logicalaccess::TwicLocation

Public Member Functions

virtual ~Location ()=default
 
virtual std::string getCardType ()=0
 Get the card type for this location.
 
virtual void incrementOffset (int increment)
 
virtual bool operator== (const Location &location) const
 Equality operator.
 
bool operator!= (const Location &location) const
 Inequality operator.
 
- 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.
 

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.
 
- Static Protected Member Functions inherited from logicalaccess::XmlSerializable
static unsigned long long atoull (const std::string &str)
 

Detailed Description

A location informations.

Constructor & Destructor Documentation

◆ ~Location()

virtual logicalaccess::Location::~Location ( )
virtualdefault

Member Function Documentation

◆ getCardType()

virtual std::string logicalaccess::Location::getCardType ( )
pure virtual

◆ incrementOffset()

virtual void logicalaccess::Location::incrementOffset ( int  increment)
inlinevirtual

Increment the offset of the location.

Todo: Possibly a refactor would be better than this virtual method.

Reimplemented in logicalaccess::DESFireLocation.

◆ operator!=()

bool logicalaccess::Location::operator!= ( const Location location) const
inline

Inequality operator.

Parameters
locationLocation to compare.
Returns
True if inequals, false otherwise.

◆ operator==()

bool logicalaccess::Location::operator== ( const Location location) const
virtual

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