Leosac  0.8.0
Open Source Access Control
Leosac::PolymorphicCredentialJSONSerializer::HelperSerialize Struct Reference

Non static helper that can visit credential object. More...

+ Inheritance diagram for Leosac::PolymorphicCredentialJSONSerializer::HelperSerialize:
+ Collaboration diagram for Leosac::PolymorphicCredentialJSONSerializer::HelperSerialize:

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 SecurityContextsecurity_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 > >
 

Detailed Description

Non static helper that can visit credential object.

Definition at line 59 of file PolymorphicCredentialSerializer.hpp.

Constructor & Destructor Documentation

◆ HelperSerialize()

PolymorphicCredentialJSONSerializer::HelperSerialize::HelperSerialize ( const SecurityContext sc)

Definition at line 81 of file PolymorphicCredentialSerializer.cpp.

Member Function Documentation

◆ visit() [1/2]

void PolymorphicCredentialJSONSerializer::HelperSerialize::visit ( const Cred::IPinCode t)
override

Definition at line 92 of file PolymorphicCredentialSerializer.cpp.

◆ visit() [2/2]

void PolymorphicCredentialJSONSerializer::HelperSerialize::visit ( const Cred::IRFIDCard t)
override

Definition at line 87 of file PolymorphicCredentialSerializer.cpp.

Member Data Documentation

◆ result_

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.

◆ security_context_

const SecurityContext& Leosac::PolymorphicCredentialJSONSerializer::HelperSerialize::security_context_

Reference to the security context.

Definition at line 76 of file PolymorphicCredentialSerializer.hpp.


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