AusweisApp2
Lade ...
Suche ...
Keine Treffer
GenericContextContainer.h
gehe zur Dokumentation dieser Datei
1
12#pragma once
13
15
16
17namespace governikus
18{
19
20template<typename ContextClass>
22{
23 private:
24 const QSharedPointer<ContextClass> mTypedContext;
25
26 public:
27 explicit GenericContextContainer(const QSharedPointer<WorkflowContext>& pContext)
28 : mTypedContext(pContext.staticCast<ContextClass>())
29 {
30 Q_ASSERT(pContext.objectCast<ContextClass>());
31 }
32
33
34 [[nodiscard]] QSharedPointer<ContextClass> getContext() const
35 {
36 return mTypedContext;
37 }
38
39
40};
41
42} // namespace governikus
Definition: GenericContextContainer.h:22
QSharedPointer< ContextClass > getContext() const
Definition: GenericContextContainer.h:34
GenericContextContainer(const QSharedPointer< WorkflowContext > &pContext)
Definition: GenericContextContainer.h:27
Implementation of GeneralAuthenticate response APDUs.
Definition: CommandApdu.h:16