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

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)
 

Macros

#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< IxParameterqx::service::IxParameter_ptr
 

Functions

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

Detailed Description

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

Author
Lionel Marty

Definition in file IxParameter.h.

Macro Definition Documentation

◆ QX_SERVICE_IX_PARAMETER_QDATASTREAM_CPP

#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)); }
static QDataStream & save(QDataStream &stream, const T &t)
static QDataStream & load(QDataStream &stream, T &t)

Definition at line 110 of file IxParameter.h.

◆ QX_SERVICE_IX_PARAMETER_QDATASTREAM_HPP

#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.

◆ QX_SERVICE_IX_PARAMETER_QJSON_CPP

#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), ""); }
qx_bool : boolean type with code and description message when an error occured
Definition QxBool.h:71
static QJsonValue save(const T &t, const QString &format)
static qx_bool load(const QJsonValue &j, T &t, const QString &format)

Definition at line 121 of file IxParameter.h.

◆ QX_SERVICE_IX_PARAMETER_QJSON_HPP

#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.

◆ QX_SERVICE_IX_PARAMETER_SERIALIZATION_CPP

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

Definition at line 137 of file IxParameter.h.

◆ QX_SERVICE_IX_PARAMETER_SERIALIZATION_HPP

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

Definition at line 130 of file IxParameter.h.

Function Documentation

◆ operator<<()

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

◆ operator>>()

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