14 #include "../../include/ecl/sigslots.hpp" 24 std::cout <<
" This is standalone g()" << std::endl;
27 std::cout <<
" This is standalone g(int): " << i << std::endl;
33 std::cout <<
" This is A::g()" << std::endl;
36 std::cout <<
" This is A::g(int): " << i << std::endl;
48 int main(
int argc,
char **argv) {
50 std::cout << std::endl;
51 std::cout <<
"***************************************************************" << std::endl;
52 std::cout <<
"* 1 Signal, 2 Slots" << std::endl;
53 std::cout <<
"***************************************************************" << std::endl;
54 std::cout << std::endl;
61 slot_void0.
connect(
"void_test");
62 slot_void1.
connect(
"void_test");
63 std::cout <<
"Emitting:" << std::endl;
66 std::cout << std::endl;
67 std::cout <<
"***************************************************************" << std::endl;
68 std::cout <<
"* Statistics" << std::endl;
69 std::cout <<
"***************************************************************" << std::endl;
70 std::cout << std::endl;
74 std::cout << std::endl;
75 std::cout <<
"***************************************************************" << std::endl;
76 std::cout <<
"* 1 Data Signal, 2 Data Slots" << std::endl;
77 std::cout <<
"***************************************************************" << std::endl;
78 std::cout << std::endl;
85 slot_data0.
connect(
"data_test");
86 slot_data1.
connect(
"data_test");
87 std::cout <<
"Emitting:" << std::endl;
90 std::cout << std::endl;
91 std::cout <<
"***************************************************************" << std::endl;
92 std::cout <<
"* Statistics" << std::endl;
93 std::cout <<
"***************************************************************" << std::endl;
94 std::cout << std::endl;
static void printStatistics()
Print some statistics on the current status of the manager.
void connect(const std::string &topic)
Make a connection to the specified topic.
int main(int argc, char **argv)
Signalling component of a callback system.
void connect(const std::string &topic)
Make a connection to the specified topic.
void emit(Data data)
The primary purpose of the signal, to emit!
Function loading component of a callback system.