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
{
PIOBJECT_SUBCLASS(CInterface, Interface)
PIOBJECT_SUBCLASS(CInterface, Interface);
public:
CInterface();

View File

@@ -43,7 +43,7 @@ public:
class CD_CORE_EXPORT CDCore: public PIObject
{
PIOBJECT(CDUtils::CDCore)
PIOBJECT(CDUtils::CDCore);
friend class __Core_Initializer__;
friend class CDSection;
friend class Interface;
@@ -52,32 +52,32 @@ public:
static CDCore * instance();
static bool destroy();
EVENT(K_Sended)
EVENT(K_SendFail)
EVENT(K_Received)
EVENT(K_ReceiveFail)
EVENT(K_ChangedGlobal)
EVENT(K_Sended);
EVENT(K_SendFail);
EVENT(K_Received);
EVENT(K_ReceiveFail);
EVENT(K_ChangedGlobal);
EVENT_HANDLER2(void, K_DirectChange, PIDeque<int>, path, PIString, value);
EVENT(X_Sended)
EVENT(X_SendFail)
EVENT(X_Received)
EVENT(X_ReceiveFail)
EVENT(X_ChangedGlobal)
EVENT1(X_ReceivedX, PIVector<PIDeque<int> >, pathes)
EVENT(X_Sended);
EVENT(X_SendFail);
EVENT(X_Received);
EVENT(X_ReceiveFail);
EVENT(X_ChangedGlobal);
EVENT1(X_ReceivedX, PIVector<PIDeque<int> >, pathes);
EVENT(C_Sended)
EVENT(C_SendFail)
EVENT(C_Received)
EVENT(C_ReceiveFail)
EVENT(C_ChangedGlobal)
EVENT(C_Sended);
EVENT(C_SendFail);
EVENT(C_Received);
EVENT(C_ReceiveFail);
EVENT(C_ChangedGlobal);
EVENT(M_Sended)
EVENT(M_SendFail)
EVENT(M_Received)
EVENT(M_ReceiveFail)
EVENT(M_ChangedGlobal)
EVENT3(M_Message, PIDeque<int>, path, int, type, PIString, msg)
EVENT(M_Sended);
EVENT(M_SendFail);
EVENT(M_Received);
EVENT(M_ReceiveFail);
EVENT(M_ChangedGlobal);
EVENT3(M_Message, PIDeque<int>, path, int, type, PIString, msg);
void cd_write (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
{
PIOBJECT(CDUtils::Interface)
PIOBJECT(CDUtils::Interface);
public:
Interface(CDType::cdT type_);
@@ -72,11 +72,11 @@ public:
void writeFile();
bool inProgress();
EVENT(sended)
EVENT(sendFailed)
EVENT(received)
EVENT(receiveFailed)
EVENT(changedGlobal)
EVENT(sended);
EVENT(sendFailed);
EVENT(received);
EVENT(receiveFailed);
EVENT(changedGlobal);
EVENT_HANDLER(void, send);
EVENT_HANDLER(void, request);

View File

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

View File

@@ -29,7 +29,7 @@ namespace CDUtils {
class CD_CORE_EXPORT MInterface: public Interface
{
PIOBJECT_SUBCLASS(MInterface, Interface)
PIOBJECT_SUBCLASS(MInterface, Interface);
public:
MInterface();
@@ -42,7 +42,7 @@ public:
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:
PICout createPICout(const CDType & m) const;

View File

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

View File

@@ -11,7 +11,7 @@ using namespace CDUtils;
class Core : public PIObject
{
PIOBJECT(Core)
PIOBJECT(Core);
public:
Core() {
CDCore::instance()->initApp();

View File

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

View File

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