Keyple C++  0.9.0
Keyple, an Open Source SDK for Ticketing
Public Member Functions | Friends | List of all members
keyple::core::seproxy::SeSelector::AtrFilter Class Referencefinal

#include <SeSelector.h>

Inherits enable_shared_from_this< AtrFilter >.

Public Member Functions

 AtrFilter (const std::string &atrRegex)
 
virtual ~AtrFilter ()
 
virtual void setAtrRegex (const std::string &atrRegex)
 
virtual std::string getAtrRegex ()
 
virtual bool atrMatches (const std::vector< uint8_t > &atr)
 

Friends

KEYPLECORE_API std::ostream & operator<< (std::ostream &os, const AtrFilter &af)
 

Detailed Description

Static nested class to hold the data elements used to perform an ATR based filtering

Constructor & Destructor Documentation

◆ AtrFilter()

keyple::core::seproxy::AtrFilter::AtrFilter ( const std::string &  atrRegex)

Regular expression based filter

Parameters
atrRegexString hex regular expression

◆ ~AtrFilter()

virtual keyple::core::seproxy::SeSelector::AtrFilter::~AtrFilter ( )
inlinevirtual

Member Function Documentation

◆ atrMatches()

bool keyple::core::seproxy::AtrFilter::atrMatches ( const std::vector< uint8_t > &  atr)
virtual

Tells if the provided ATR matches the registered regular expression

If the registered regular expression is empty, the ATR is always matching.

Parameters
atra buffer containing the ATR to be checked
Returns
a boolean true the ATR matches the current regex

◆ getAtrRegex()

std::string keyple::core::seproxy::AtrFilter::getAtrRegex ( )
virtual

Getter for the regular expression provided at construction time

Returns
Regular expression string

◆ setAtrRegex()

void keyple::core::seproxy::AtrFilter::setAtrRegex ( const std::string &  atrRegex)
virtual

Setter for the regular expression provided at construction time

Parameters
atrRegexexpression string

Friends And Related Function Documentation

◆ operator<<

KEYPLECORE_API std::ostream& operator<< ( std::ostream &  os,
const AtrFilter af 
)
friend

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