Leosac
0.8.0
Open Source Access Control
|
Non static helper that can visit credential object. More...
Public Member Functions | |
HelperSerialize (const SecurityContext &sc) | |
void | visit (const Cred::IRFIDCard &t) override |
void | visit (const Cred::IPinCode &t) override |
Public Member Functions inherited from Leosac::Tools::Visitor< Cred::IRFIDCard > | |
virtual void | visit (const VisitableT &) |
virtual void | visit (VisitableT &visitable) |
Public Member Functions inherited from Leosac::Tools::BaseVisitor | |
virtual | ~BaseVisitor ()=default |
virtual void | cannot_visit (const IVisitable &) |
Invoked when the visitable cannot be visited by the visitor. More... | |
Public Member Functions inherited from Leosac::Tools::Visitor< Cred::IPinCode > | |
virtual void | visit (const VisitableT &) |
virtual void | visit (VisitableT &visitable) |
Public Attributes | |
json | result_ |
Store the result here because we can't return from the visit() method. More... | |
const SecurityContext & | security_context_ |
Reference to the security context. More... | |
Additional Inherited Members | |
Public Types inherited from Leosac::Tools::Visitor< Cred::IRFIDCard > | |
using | VisitableT = std::remove_reference_t< std::remove_const_t< Cred::IRFIDCard > > |
Public Types inherited from Leosac::Tools::Visitor< Cred::IPinCode > | |
using | VisitableT = std::remove_reference_t< std::remove_const_t< Cred::IPinCode > > |
Non static helper that can visit credential object.
Definition at line 59 of file PolymorphicCredentialSerializer.hpp.
PolymorphicCredentialJSONSerializer::HelperSerialize::HelperSerialize | ( | const SecurityContext & | sc | ) |
Definition at line 81 of file PolymorphicCredentialSerializer.cpp.
|
override |
Definition at line 92 of file PolymorphicCredentialSerializer.cpp.
|
override |
Definition at line 87 of file PolymorphicCredentialSerializer.cpp.
json Leosac::PolymorphicCredentialJSONSerializer::HelperSerialize::result_ |
Store the result here because we can't return from the visit() method.
Definition at line 71 of file PolymorphicCredentialSerializer.hpp.
const SecurityContext& Leosac::PolymorphicCredentialJSONSerializer::HelperSerialize::security_context_ |
Reference to the security context.
Definition at line 76 of file PolymorphicCredentialSerializer.hpp.