complex macros with ;

This commit is contained in:
Бычков Андрей
2022-07-25 16:22:16 +03:00
parent 4fe9489484
commit 4d9029babe
9 changed files with 43 additions and 43 deletions

View File

@@ -29,7 +29,7 @@ namespace CDUtils {
class CD_CORE_EXPORT CInterface: public Interface class CD_CORE_EXPORT CInterface: public Interface
{ {
PIOBJECT_SUBCLASS(CInterface, Interface) PIOBJECT_SUBCLASS(CInterface, Interface);
public: public:
CInterface(); CInterface();

View File

@@ -43,7 +43,7 @@ public:
class CD_CORE_EXPORT CDCore: public PIObject class CD_CORE_EXPORT CDCore: public PIObject
{ {
PIOBJECT(CDUtils::CDCore) PIOBJECT(CDUtils::CDCore);
friend class __Core_Initializer__; friend class __Core_Initializer__;
friend class CDSection; friend class CDSection;
friend class Interface; friend class Interface;
@@ -52,32 +52,32 @@ public:
static CDCore * instance(); static CDCore * instance();
static bool destroy(); static bool destroy();
EVENT(K_Sended) EVENT(K_Sended);
EVENT(K_SendFail) EVENT(K_SendFail);
EVENT(K_Received) EVENT(K_Received);
EVENT(K_ReceiveFail) EVENT(K_ReceiveFail);
EVENT(K_ChangedGlobal) EVENT(K_ChangedGlobal);
EVENT_HANDLER2(void, K_DirectChange, PIDeque<int>, path, PIString, value); EVENT_HANDLER2(void, K_DirectChange, PIDeque<int>, path, PIString, value);
EVENT(X_Sended) EVENT(X_Sended);
EVENT(X_SendFail) EVENT(X_SendFail);
EVENT(X_Received) EVENT(X_Received);
EVENT(X_ReceiveFail) EVENT(X_ReceiveFail);
EVENT(X_ChangedGlobal) EVENT(X_ChangedGlobal);
EVENT1(X_ReceivedX, PIVector<PIDeque<int> >, pathes) EVENT1(X_ReceivedX, PIVector<PIDeque<int> >, pathes);
EVENT(C_Sended) EVENT(C_Sended);
EVENT(C_SendFail) EVENT(C_SendFail);
EVENT(C_Received) EVENT(C_Received);
EVENT(C_ReceiveFail) EVENT(C_ReceiveFail);
EVENT(C_ChangedGlobal) EVENT(C_ChangedGlobal);
EVENT(M_Sended) EVENT(M_Sended);
EVENT(M_SendFail) EVENT(M_SendFail);
EVENT(M_Received) EVENT(M_Received);
EVENT(M_ReceiveFail) EVENT(M_ReceiveFail);
EVENT(M_ChangedGlobal) EVENT(M_ChangedGlobal);
EVENT3(M_Message, PIDeque<int>, path, int, type, PIString, msg) EVENT3(M_Message, PIDeque<int>, path, int, type, PIString, msg);
void cd_write (CDSection * cd, PIIODevice * d); void cd_write (CDSection * cd, PIIODevice * d);
void cd_read (CDSection * cd, PIIODevice * d); void cd_read (CDSection * cd, PIIODevice * d);

View File

@@ -32,7 +32,7 @@ class CDCore;
class CD_CORE_EXPORT Interface: public PIObject class CD_CORE_EXPORT Interface: public PIObject
{ {
PIOBJECT(CDUtils::Interface) PIOBJECT(CDUtils::Interface);
public: public:
Interface(CDType::cdT type_); Interface(CDType::cdT type_);
@@ -72,11 +72,11 @@ public:
void writeFile(); void writeFile();
bool inProgress(); bool inProgress();
EVENT(sended) EVENT(sended);
EVENT(sendFailed) EVENT(sendFailed);
EVENT(received) EVENT(received);
EVENT(receiveFailed) EVENT(receiveFailed);
EVENT(changedGlobal) EVENT(changedGlobal);
EVENT_HANDLER(void, send); EVENT_HANDLER(void, send);
EVENT_HANDLER(void, request); EVENT_HANDLER(void, request);

View File

@@ -29,11 +29,11 @@ namespace CDUtils {
class CD_CORE_EXPORT KInterface: public Interface class CD_CORE_EXPORT KInterface: public Interface
{ {
PIOBJECT_SUBCLASS(KInterface, Interface) PIOBJECT_SUBCLASS(KInterface, Interface);
public: public:
KInterface(); KInterface();
EVENT1(keepNamesRequest, bool*, kn) EVENT1(keepNamesRequest, bool*, kn);
void directChange(const CDType & k); void directChange(const CDType & k);
void directChange(const CDType & k, double v); void directChange(const CDType & k, double v);

View File

@@ -29,7 +29,7 @@ namespace CDUtils {
class CD_CORE_EXPORT MInterface: public Interface class CD_CORE_EXPORT MInterface: public Interface
{ {
PIOBJECT_SUBCLASS(MInterface, Interface) PIOBJECT_SUBCLASS(MInterface, Interface);
public: public:
MInterface(); MInterface();
@@ -42,7 +42,7 @@ public:
void messageBox(const CDType & m, const PIString & msg); void messageBox(const CDType & m, const PIString & msg);
EVENT3(messageReceived, PIDeque<int>, path, int, type, PIString, msg) EVENT3(messageReceived, PIDeque<int>, path, int, type, PIString, msg);
private: private:
PICout createPICout(const CDType & m) const; PICout createPICout(const CDType & m) const;

View File

@@ -29,12 +29,12 @@ namespace CDUtils {
class CD_CORE_EXPORT XInterface: public Interface class CD_CORE_EXPORT XInterface: public Interface
{ {
PIOBJECT_SUBCLASS(XInterface, Interface) PIOBJECT_SUBCLASS(XInterface, Interface);
public: public:
XInterface(); XInterface();
EVENT1(keepNamesRequest, bool*, xn) EVENT1(keepNamesRequest, bool*, xn);
EVENT1(receivedX, PIVector<PIDeque<int> >, pathes) EVENT1(receivedX, PIVector<PIDeque<int> >, pathes);
void enable(const CDType & x) {setEnabled(x, true);} void enable(const CDType & x) {setEnabled(x, true);}
void disable(const CDType & x) {setEnabled(x, false);} void disable(const CDType & x) {setEnabled(x, false);}

View File

@@ -11,11 +11,11 @@ using namespace CDUtils;
class Core : public PIObject class Core : public PIObject
{ {
PIOBJECT(Core) PIOBJECT(Core);
public: public:
Core() { Core() {
CDCore::instance()->initApp(); CDCore::instance()->initApp();
// piCout << "testCore"; // piCout << "testCore";
CONNECTU(&timer, tickEvent, this, timerDone); CONNECTU(&timer, tickEvent, this, timerDone);
CONNECTU(&X, received, this, xrecv); CONNECTU(&X, received, this, xrecv);
CONNECTU(&C, received, this, crecv); CONNECTU(&C, received, this, crecv);

View File

@@ -43,7 +43,7 @@ public:
class CD_QT_EXPORT QCDCore: public QObject, public PIObject class CD_QT_EXPORT QCDCore: public QObject, public PIObject
{ {
Q_OBJECT Q_OBJECT
PIOBJECT(QCDCore) PIOBJECT(QCDCore);
friend class __QCore_Initializer__; friend class __QCore_Initializer__;
public: public:
static QCDCore * instance() {return __QCore_Initializer__::__instance__;} static QCDCore * instance() {return __QCore_Initializer__::__instance__;}

View File

@@ -35,7 +35,7 @@ class QSortFilterProxyModel;
class CD_QT_EXPORT CDView: public QTreeView, public PIObject class CD_QT_EXPORT CDView: public QTreeView, public PIObject
{ {
Q_OBJECT Q_OBJECT
PIOBJECT(CDView) PIOBJECT(CDView);
public: public:
explicit CDView(QWidget *parent = 0); explicit CDView(QWidget *parent = 0);
~CDView(); ~CDView();