Leosac  0.8.0
Open Source Access Control
Leosac::PolymorphicCredentialJSONSerializer::HelperUnserialize Struct Reference
+ Inheritance diagram for Leosac::PolymorphicCredentialJSONSerializer::HelperUnserialize:
+ Collaboration diagram for Leosac::PolymorphicCredentialJSONSerializer::HelperUnserialize:

Public Member Functions

 HelperUnserialize (const SecurityContext &sc, const json &payload)
 
void visit (Cred::IRFIDCard &t) override
 
void visit (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

const SecurityContextsecurity_context_
 Reference to the security context. More...
 
json payload_
 The payload to unserialize from. 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 > >
 

Detailed Description

Definition at line 79 of file PolymorphicCredentialSerializer.hpp.

Constructor & Destructor Documentation

◆ HelperUnserialize()

PolymorphicCredentialJSONSerializer::HelperUnserialize::HelperUnserialize ( const SecurityContext sc,
const json payload 
)

Definition at line 63 of file PolymorphicCredentialSerializer.cpp.

Member Function Documentation

◆ visit() [1/2]

void PolymorphicCredentialJSONSerializer::HelperUnserialize::visit ( Cred::IPinCode t)
override

Definition at line 76 of file PolymorphicCredentialSerializer.cpp.

◆ visit() [2/2]

void PolymorphicCredentialJSONSerializer::HelperUnserialize::visit ( Cred::IRFIDCard t)
override

Definition at line 70 of file PolymorphicCredentialSerializer.cpp.

Member Data Documentation

◆ payload_

json Leosac::PolymorphicCredentialJSONSerializer::HelperUnserialize::payload_

The payload to unserialize from.

Definition at line 95 of file PolymorphicCredentialSerializer.hpp.

◆ security_context_

const SecurityContext& Leosac::PolymorphicCredentialJSONSerializer::HelperUnserialize::security_context_

Reference to the security context.

Definition at line 90 of file PolymorphicCredentialSerializer.hpp.


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