Logo ROOT   6.10/09
Reference Guide
Macros | Functions | Variables
TQObjectTests.cxx File Reference
#include "gtest/gtest.h"
#include "gmock/gmock.h"
#include "Rtypes.h"
#include "TQObject.h"
#include "TQConnection.h"
#include "RQ_OBJECT.h"
Include dependency graph for TQObjectTests.cxx:

Macros

#define DICT_CLASS
 
#define Stringify(s)   Stringifyx(s)
 
#define Stringifyx(s)   #s
 

Functions

 TEST (TQObject, Emit)
 

Variables

 DICT_CLASS
 

Macro Definition Documentation

◆ DICT_CLASS

#define DICT_CLASS
Value:
class RQ_OBJECTTester : public TQObject { \
/* This will expand, adding signal/slot support to this class */ \
RQ_OBJECT("RQ_OBJECTTester"); \
Int_t fValue = 0; \
\
public: \
void SetValue(Int_t value) \
{ \
/* to prevent infinite looping in the case of cyclic connections */ \
if (value != fValue) { \
fValue = value; \
Emit("SetValue(Int_t)", fValue); \
} \
} \
void PrintValue() const { printf("value=%d\n", fValue); } \
Int_t GetValue() const { return fValue; } \
};
This is the ROOT implementation of the Qt object communication mechanism (see also http://www...
Definition: TQObject.h:49
int Int_t
Definition: RtypesCore.h:41
PyObject * fValue

Definition at line 15 of file TQObjectTests.cxx.

◆ Stringify

#define Stringify (   s)    Stringifyx(s)

Definition at line 10 of file TQObjectTests.cxx.

◆ Stringifyx

#define Stringifyx (   s)    #s

Definition at line 11 of file TQObjectTests.cxx.

Function Documentation

◆ TEST()

TEST ( TQObject  ,
Emit   
)

Definition at line 36 of file TQObjectTests.cxx.

Variable Documentation

◆ DICT_CLASS

DICT_CLASS

Definition at line 34 of file TQObjectTests.cxx.