Leosac  0.8.0
Open Source Access Control
Leosac::Cred::IRFIDCard Class Referenceabstract

Interface for RFIDCard credential. More...

#include <IRFIDCard.hpp>

+ Inheritance diagram for Leosac::Cred::IRFIDCard:
+ Collaboration diagram for Leosac::Cred::IRFIDCard:

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::ValidityInfovalidity () const =0
 Retrieve validity status from the credential. More...
 
virtual std::vector< Tools::ScheduleMappingLWPtrlazy_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)
 

Detailed Description

Interface for RFIDCard credential.

Definition at line 32 of file IRFIDCard.hpp.

Member Function Documentation

◆ card_id() [1/2]

virtual const std::string& Leosac::Cred::IRFIDCard::card_id ( ) const
pure virtual

Implemented in Leosac::Cred::RFIDCard.

◆ card_id() [2/2]

virtual void Leosac::Cred::IRFIDCard::card_id ( const std::string &  )
pure virtual

Implemented in Leosac::Cred::RFIDCard.

◆ MAKE_VISITABLE_FALLBACK()

Leosac::Cred::IRFIDCard::MAKE_VISITABLE_FALLBACK ( ICredential  )

◆ nb_bits() [1/2]

virtual int Leosac::Cred::IRFIDCard::nb_bits ( ) const
pure virtual

Implemented in Leosac::Cred::RFIDCard.

◆ nb_bits() [2/2]

virtual void Leosac::Cred::IRFIDCard::nb_bits ( int  )
pure virtual

Implemented in Leosac::Cred::RFIDCard.

◆ to_int()

virtual uint64_t Leosac::Cred::IRFIDCard::to_int ( ) const
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.

◆ to_raw_int()

virtual uint64_t Leosac::Cred::IRFIDCard::to_raw_int ( ) const
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.


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