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 |
Common interface for all parameters transfered by QxService module of QxOrm library.
Definition in file IxParameter.h.
#define QX_SERVICE_IX_PARAMETER_QDATASTREAM_CPP | ( | className | ) |
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 | ) |
Definition at line 105 of file IxParameter.h.
#define QX_SERVICE_IX_PARAMETER_QJSON_CPP | ( | className | ) |
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 | ) |
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 | ) |
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 | ) |
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.
QX_DLL_EXPORT QDataStream& operator<< | ( | QDataStream & | stream, |
const qx::service::IxParameter & | t | ||
) |
QX_DLL_EXPORT QDataStream& operator>> | ( | QDataStream & | stream, |
qx::service::IxParameter & | t | ||
) |