LibLogicalAccess
2.5.0
An Open Source RFID Library
|
#include <mifareplusiso7816resultchecker.hpp>
Public Member Functions | |
MifarePlusISO7816ResultChecker () | |
virtual | ~MifarePlusISO7816ResultChecker ()=default |
void | CheckResult (const void *data, size_t datalen) override |
![]() | |
ResultChecker () | |
Constructor. | |
virtual | ~ResultChecker () |
Destructor. | |
virtual void | CheckResult (const void *data, size_t datalen) |
Check the buffer result and throw exception if needed. | |
virtual bool | AllowEmptyResult () const |
Static Private Member Functions | |
static bool | checkByte (uint8_t) |
Additional Inherited Members | |
![]() | |
void | AddCheck (unsigned char SW1, unsigned char SW2, const std::string &msg, CardException::ErrorType error=CardException::DEFAULT, bool throwException=true) |
Add a new check. Maps already existing are overwritten. | |
void | RemoveCheck (unsigned char SW1, unsigned char SW2) |
Remove a check. | |
void | ClearChecks () |
Clear all checks. | |
void | AddSingleShotCheck (unsigned char SW1, unsigned char SW2, const std::string &msg) |
Add a new single shot check. Single shots are always cleared after the check result. | |
Result checker when talking to a MifarePlus in T=CL mode.
logicalaccess::MifarePlusISO7816ResultChecker::MifarePlusISO7816ResultChecker | ( | ) |
|
virtualdefault |
|
staticprivate |
|
overridevirtual |
Check the buffer result and throw exception if needed.
This method needs to be reimplemented because the result code doesn't follow the format SW1 SW2.
data | The buffer. |
size_t | The buffer length. |
Reimplemented from logicalaccess::ResultChecker.