Leosac
0.8.0
Open Source Access Control
|
Interface for RFIDCard credential. More...
#include <IRFIDCard.hpp>
Public Member Functions | |
MAKE_VISITABLE_FALLBACK (ICredential) | |
virtual const std::string & | card_id () const =0 |
virtual int | nb_bits () const =0 |
virtual void | nb_bits (int)=0 |
virtual void | card_id (const std::string &)=0 |
virtual uint64_t | to_int () const =0 |
Returns the integer representation of the card ID. More... | |
virtual uint64_t | to_raw_int () const =0 |
Convert the bits of the card to an integer. More... | |
Public Member Functions inherited from Leosac::Cred::ICredential | |
MAKE_VISITABLE () | |
virtual CredentialId | id () const =0 |
Retrieve the identifier of the credential. More... | |
virtual void | id (const CredentialId &new_id)=0 |
Manually set the identifier of a credential. More... | |
virtual Auth::UserLPtr | owner () const =0 |
Retrieve the owner of the credential. More... | |
virtual Auth::UserId | owner_id () const =0 |
Returns the id of the owner, or 0 if there is no owner (or the owner has no id). More... | |
virtual void | owner (Auth::UserLPtr)=0 |
Set a new owner for the credential. More... | |
virtual std::string | alias () const =0 |
An alias for the credential. More... | |
virtual void | alias (const std::string &)=0 |
Set the alias for the credential. More... | |
virtual std::string | description () const =0 |
An optional description / notes for the credential. More... | |
virtual void | description (const std::string &)=0 |
Set a description for this credential. More... | |
virtual void | validity (const Auth::ValidityInfo &)=0 |
Provide the validity info object to the credential. More... | |
virtual const Auth::ValidityInfo & | validity () const =0 |
Retrieve validity status from the credential. More... | |
virtual std::vector< Tools::ScheduleMappingLWPtr > | lazy_schedules_mapping () const =0 |
Retrieve the lazy_weak_ptr to ScheduleMapping that map this credential. More... | |
virtual size_t | odb_version () const =0 |
Credentials are "optimistic" object (wrt ODB). More... | |
Public Member Functions inherited from Leosac::Tools::IVisitable | |
virtual void | accept (::Leosac::Tools::BaseVisitor &)=0 |
Accept a visitor that may mutate this . More... | |
virtual void | accept (::Leosac::Tools::BaseVisitor &) const =0 |
Accept a visitor that will not mutate this . More... | |
Additional Inherited Members | |
Static Protected Member Functions inherited from Leosac::Tools::IVisitable | |
template<class T > | |
static bool | visitor_dispatch (T &visited, BaseVisitor &visitor, bool abort_on_failure) |
Interface for RFIDCard credential.
Definition at line 32 of file IRFIDCard.hpp.
|
pure virtual |
Implemented in Leosac::Cred::RFIDCard.
|
pure virtual |
Implemented in Leosac::Cred::RFIDCard.
Leosac::Cred::IRFIDCard::MAKE_VISITABLE_FALLBACK | ( | ICredential | ) |
|
pure virtual |
Implemented in Leosac::Cred::RFIDCard.
|
pure virtual |
Implemented in Leosac::Cred::RFIDCard.
|
pure virtual |
Returns the integer representation of the card ID.
The format (Wiegand 26, 32, ....) is used to build the card number. If no format is recognized, fallback to to_raw_int()
Implemented in Leosac::Cred::RFIDCard.
|
pure virtual |
Convert the bits of the card to an integer.
The format (Wiegand26, 32, ...) is ignored: all bits are used to build the number.
Implemented in Leosac::Cred::RFIDCard.