SmartSoft Component-Developer API
Public Member Functions | Protected Member Functions | List of all members
Smart::QueryServerTaskTrigger< RequestType, AnswerType > Class Template Reference

#include <smartQueryServerTaskTrigger_T.h>

Inheritance diagram for Smart::QueryServerTaskTrigger< RequestType, AnswerType >:
Smart::IInputHandler< std::pair< Smart::QueryIdPtr, RequestType > > Smart::TaskTriggerSubject

Public Member Functions

 QueryServerTaskTrigger (IQueryServerPattern< RequestType, AnswerType > *server)
 
virtual ~QueryServerTaskTrigger ()=default
 
Smart::StatusCode consumeRequest (Smart::QueryIdPtr &id, RequestType &request)
 
Smart::StatusCode answer (const Smart::QueryIdPtr &id, const AnswerType &answer)
 
- Public Member Functions inherited from Smart::IInputHandler< std::pair< Smart::QueryIdPtr, RequestType > >
 IInputHandler (InputSubject< std::pair< Smart::QueryIdPtr, RequestType > > *subject, const unsigned int &prescaleFactor=1)
 The default constructor. More...
 
virtual ~IInputHandler ()
 The default destructor. More...
 
virtual void handle_input (const std::pair< Smart::QueryIdPtr, RequestType > &input)=0
 This is the main input-handler method that will be automatically called from the given subject each time the subject receives input-data. More...
 
- Public Member Functions inherited from Smart::TaskTriggerSubject
 TaskTriggerSubject ()
 
virtual ~TaskTriggerSubject ()
 
void attach (TaskTriggerObserver *observer, const unsigned int &prescaleFactor=1)
 
void detach (TaskTriggerObserver *observer)
 

Protected Member Functions

virtual void handle_input (const InputType &input) override
 
- Protected Member Functions inherited from Smart::IInputHandler< std::pair< Smart::QueryIdPtr, RequestType > >
void attach_self (const unsigned int &prescale=1)
 calls subject->attach(this); More...
 
void detach_self ()
 calls subject->detach(this); More...
 
- Protected Member Functions inherited from Smart::TaskTriggerSubject
void trigger_all_tasks ()
 

Additional Inherited Members

- Protected Attributes inherited from Smart::IInputHandler< std::pair< Smart::QueryIdPtr, RequestType > >
InputSubject< std::pair< Smart::QueryIdPtr, RequestType > > * subject
 this is the subject-pointer (can be used in derived classes) More...
 

Constructor & Destructor Documentation

◆ QueryServerTaskTrigger()

template<class RequestType , class AnswerType >
Smart::QueryServerTaskTrigger< RequestType, AnswerType >::QueryServerTaskTrigger ( IQueryServerPattern< RequestType, AnswerType > *  server)
inline

◆ ~QueryServerTaskTrigger()

template<class RequestType , class AnswerType >
virtual Smart::QueryServerTaskTrigger< RequestType, AnswerType >::~QueryServerTaskTrigger ( )
virtualdefault

Member Function Documentation

◆ answer()

template<class RequestType , class AnswerType >
Smart::StatusCode Smart::QueryServerTaskTrigger< RequestType, AnswerType >::answer ( const Smart::QueryIdPtr id,
const AnswerType &  answer 
)
inline

◆ consumeRequest()

template<class RequestType , class AnswerType >
Smart::StatusCode Smart::QueryServerTaskTrigger< RequestType, AnswerType >::consumeRequest ( Smart::QueryIdPtr id,
RequestType &  request 
)
inline

◆ handle_input()

template<class RequestType , class AnswerType >
virtual void Smart::QueryServerTaskTrigger< RequestType, AnswerType >::handle_input ( const InputType &  input)
inlineoverrideprotectedvirtual

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