QxOrm  1.5.0
C++ Object Relational Mapping library

Common interface for all parameters transfered by QxService module of QxOrm library. More...

#include <QtCore/qdatastream.h>
#include <QtCore/qjsonvalue.h>
#include <QxRegister/QxRegisterInternalHelper.h>

Go to the source code of this file.

Classes

class  qx::service::IxParameter
 qx::service::IxParameter : common interface for all parameters transfered by QxService module of QxOrm library More...

Namespaces

namespace  qx
 

Root namespace for all QxOrm library features.


namespace  qx::service
 

QxOrm library services engine to provide easy and powerful way to create C++ application server (to transfer data over network)


Defines

#define QX_SERVICE_IX_PARAMETER_QDATASTREAM_HPP(className)
#define QX_SERVICE_IX_PARAMETER_QDATASTREAM_CPP(className)
#define QX_SERVICE_IX_PARAMETER_QJSON_HPP(className)
#define QX_SERVICE_IX_PARAMETER_QJSON_CPP(className)
#define QX_SERVICE_IX_PARAMETER_SERIALIZATION_HPP(className)
#define QX_SERVICE_IX_PARAMETER_SERIALIZATION_CPP(className)

Typedefs

typedef std::shared_ptr
< IxParameter > 
qx::service::IxParameter_ptr

Functions

QX_DLL_EXPORT QDataStream & operator<< (QDataStream &stream, const qx::service::IxParameter &t) QX_USED
QX_DLL_EXPORT QDataStream & operator>> (QDataStream &stream, qx::service::IxParameter &t) QX_USED

Detailed Description

Common interface for all parameters transfered by QxService module of QxOrm library.

Author:
Lionel Marty

Definition in file IxParameter.h.


Define Documentation

#define QX_SERVICE_IX_PARAMETER_QDATASTREAM_CPP (   className)
Value:
void className::save(QDataStream & stream) const { qx::QxSerializeRegistered< className >::save(stream, (* this)); } \
void className::load(QDataStream & stream) { qx::QxSerializeRegistered< className >::load(stream, (* this)); }

Definition at line 110 of file IxParameter.h.

#define QX_SERVICE_IX_PARAMETER_QDATASTREAM_HPP (   className)
Value:
public: \
virtual void save(QDataStream & stream) const; \
virtual void load(QDataStream & stream);

Definition at line 105 of file IxParameter.h.

#define QX_SERVICE_IX_PARAMETER_QJSON_CPP (   className)
Value:
QJsonValue className::saveToJson() const { return qx::cvt::detail::QxSerializeJsonRegistered< className >::save((* this), ""); } \
qx_bool className::loadFromJson(const QJsonValue & val) { return qx::cvt::detail::QxSerializeJsonRegistered< className >::load(val, (* this), ""); }

Definition at line 121 of file IxParameter.h.

#define QX_SERVICE_IX_PARAMETER_QJSON_HPP (   className)
Value:
public: \
virtual QJsonValue saveToJson() const; \
virtual qx_bool loadFromJson(const QJsonValue & val);

Definition at line 116 of file IxParameter.h.

#define QX_SERVICE_IX_PARAMETER_SERIALIZATION_CPP (   className)
Value:
QX_SERVICE_IX_PARAMETER_QDATASTREAM_CPP(className) \
QX_SERVICE_IX_PARAMETER_QJSON_CPP(className) \
void className::registerClass() const { qx::QxClass< className >::getSingleton(); } \
QString className::getClassName() const { return #className; }

Definition at line 137 of file IxParameter.h.

#define QX_SERVICE_IX_PARAMETER_SERIALIZATION_HPP (   className)
Value:
QX_SERVICE_IX_PARAMETER_QDATASTREAM_HPP(className) \
QX_SERVICE_IX_PARAMETER_QJSON_HPP(className) \
public: \
virtual void registerClass() const; \
virtual QString getClassName() const;

Definition at line 130 of file IxParameter.h.


Function Documentation

QX_DLL_EXPORT QDataStream& operator<< ( QDataStream &  stream,
const qx::service::IxParameter t 
)
QX_DLL_EXPORT QDataStream& operator>> ( QDataStream &  stream,
qx::service::IxParameter t 
)