QxOrm 1.4.9
C++ Object Relational Mapping library
Loading...
Searching...
No Matches

qx::service::QxService<INPUT, OUTPUT> : concrete service class with INPUT parameters and OUTPUT parameters More...

#include <QxService.h>

Inheritance diagram for qx::service::QxService< INPUT, OUTPUT >:
qx::service::IxService

Public Member Functions

 QxService (const QString &sServiceName)
 
virtual ~QxService ()
 
INPUT_ptr getInputParameter () const
 
OUTPUT_ptr getOutputParameter () const
 
virtual void registerClass () const
 
- Public Member Functions inherited from qx::service::IxService
 IxService ()
 
 IxService (const QString &sServiceName)
 
virtual ~IxService ()
 
QString getServiceName () const
 
QString getServiceMethodName () const
 
IxParameter_ptr getInputParameter_BaseClass () const
 
IxParameter_ptr getOutputParameter_BaseClass () const
 
qx_bool getMessageReturn () const
 
std::shared_ptr< QxTransactiongetTransaction () const
 
void setServiceName (const QString &s)
 
void setServiceMethodName (const QString &s)
 
void setInputParameter (IxParameter_ptr p)
 
void setOutputParameter (IxParameter_ptr p)
 
void setMessageReturn (const qx_bool &b)
 
void setMessageReturn (long l, const QString &s)
 
void setTransaction (const std::shared_ptr< QxTransaction > &p)
 
bool isValid () const
 
bool isValidWithOutput () const
 
virtual void onBeforeProcess ()
 
virtual void onAfterProcess ()
 

Protected Types

enum  { is_input_parameter = std::is_base_of<IxParameter, INPUT>::value }
 
enum  { is_output_parameter = std::is_base_of<IxParameter, OUTPUT>::value }
 
enum  { is_input_registered = qx::trait::is_qx_registered<INPUT>::value }
 
enum  { is_output_registered = qx::trait::is_qx_registered<OUTPUT>::value }
 
enum  { is_valid_parameter = (is_input_parameter && is_output_parameter && is_input_registered && is_output_registered) }
 
typedef std::shared_ptr< INPUT > INPUT_ptr
 
typedef std::shared_ptr< OUTPUT > OUTPUT_ptr
 

Additional Inherited Members

- Protected Attributes inherited from qx::service::IxService
QString m_sServiceName
 Service name <=> class name.
 
QString m_sServiceMethodName
 Service method name to call.
 
IxParameter_ptr m_pInputParameter
 List of input parameters (request)
 
IxParameter_ptr m_pOutputParameter
 List of output parameters (reply)
 
qx_bool m_bMessageReturn
 Message return to indicate if an error occured.
 
std::shared_ptr< QxTransactionm_pTransaction
 Current transaction after executing service method.
 

Detailed Description

template<class INPUT, class OUTPUT>
class qx::service::QxService< INPUT, OUTPUT >

qx::service::QxService<INPUT, OUTPUT> : concrete service class with INPUT parameters and OUTPUT parameters

Click here to access to a tutorial to explain how to work with QxService module.

Definition at line 61 of file QxService.h.

Member Typedef Documentation

◆ INPUT_ptr

template<class INPUT , class OUTPUT >
typedef std::shared_ptr<INPUT> qx::service::QxService< INPUT, OUTPUT >::INPUT_ptr
protected

Definition at line 72 of file QxService.h.

◆ OUTPUT_ptr

template<class INPUT , class OUTPUT >
typedef std::shared_ptr<OUTPUT> qx::service::QxService< INPUT, OUTPUT >::OUTPUT_ptr
protected

Definition at line 73 of file QxService.h.

Member Enumeration Documentation

◆ anonymous enum

template<class INPUT , class OUTPUT >
anonymous enum
protected
Enumerator
is_input_parameter 

Definition at line 66 of file QxService.h.

◆ anonymous enum

template<class INPUT , class OUTPUT >
anonymous enum
protected
Enumerator
is_output_parameter 

Definition at line 67 of file QxService.h.

◆ anonymous enum

template<class INPUT , class OUTPUT >
anonymous enum
protected
Enumerator
is_input_registered 

Definition at line 68 of file QxService.h.

◆ anonymous enum

template<class INPUT , class OUTPUT >
anonymous enum
protected
Enumerator
is_output_registered 

Definition at line 69 of file QxService.h.

◆ anonymous enum

template<class INPUT , class OUTPUT >
anonymous enum
protected
Enumerator
is_valid_parameter 

Definition at line 70 of file QxService.h.

Constructor & Destructor Documentation

◆ QxService()

template<class INPUT , class OUTPUT >
qx::service::QxService< INPUT, OUTPUT >::QxService ( const QString & sServiceName)
inline

Definition at line 77 of file QxService.h.

◆ ~QxService()

template<class INPUT , class OUTPUT >
virtual qx::service::QxService< INPUT, OUTPUT >::~QxService ( )
inlinevirtual

Definition at line 78 of file QxService.h.

Member Function Documentation

◆ getInputParameter()

template<class INPUT , class OUTPUT >
INPUT_ptr qx::service::QxService< INPUT, OUTPUT >::getInputParameter ( ) const
inline

Definition at line 80 of file QxService.h.

◆ getOutputParameter()

template<class INPUT , class OUTPUT >
OUTPUT_ptr qx::service::QxService< INPUT, OUTPUT >::getOutputParameter ( ) const
inline

Definition at line 81 of file QxService.h.

◆ registerClass()

template<class INPUT , class OUTPUT >
virtual void qx::service::QxService< INPUT, OUTPUT >::registerClass ( ) const
inlinevirtual

Reimplemented from qx::service::IxService.

Definition at line 83 of file QxService.h.


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