Signalling component of a callback system. More...
|void||connect (const std::string &topic)|
|Make a connection to the specified topic. |
|void||connectAsSlot (const std::string &topic)|
|Connect as a slot, with the emit function loaded. |
|Disconnect the signal from all topics. |
|void||emit (Data data)|
|The primary purpose of the signal, to emit! |
|Default constructor. |
|Signal (const std::string &topic)|
|Creates a signal and connects. |
|Signal (const Signal &signal)|
|Copy constructor. |
|Default destructor. |
|SigSlot< Data > *||sigslot|
Signalling component of a callback system.
Anywhere that triggers an event requiring a callback to be executed can be implemented with a signal. These can be placed anywhere in your code and with slots, provide a many to many callback solution.
Usage examples are provided in the main page's documentation for this package.
|ecl::Signal< Data >::Signal||(||const Signal< Data > &||signal||)||
This is specially designed so that copying a signal is perfectly acceptable. Copies do not increase the number of emits that are fired - they just preserve the signal when used with things like stl containers. When the last copy disappears, the object destroys its connection automagically.
|signal||: the object to be copied.|
|void ecl::Signal< Data >::connect||(||const std::string &||topic||)||
|void ecl::Signal< Data >::connectAsSlot||(||const std::string &||topic||)||