base class for utilmm::singleton::wrapper
More...
#include <utilmm/singleton/bits/dummy.hh>
base class for utilmm::singleton::wrapper
This class is the base class for all the singletons wrapper and the "public" interface to the singleton server.
- Author
- Frédéric Py fpy@l.nosp@m.aas..nosp@m.fr
| utilmm::singleton::dummy::dummy |
( |
| ) |
|
|
protected |
| virtual utilmm::singleton::dummy::~dummy |
( |
| ) |
|
|
protectedpure virtual |
| static void utilmm::singleton::dummy::attach |
( |
std::string const & |
name, |
|
|
details::dummy_factory const & |
factory |
|
) |
| |
|
staticprotected |
Attach a new singleton.
- Parameters
-
| name | Internal id of the singleton. |
| inst | Candidate as singleton. |
This function called by wrapper::attach try to create a new singleton with name as unique id. If there's allready a singleton name then inst is deleted
| static void utilmm::singleton::dummy::detach |
( |
std::string const & |
name | ) |
|
|
staticprotected |
Detach to a singleton.
- Parameters
-
| name | Internal id of a singleton |
This function called by wrapper::detach indicate to the singleton server that the singleton identified as name has lost one client.
| static dummy* utilmm::singleton::dummy::instance |
( |
std::string const & |
name | ) |
|
|
staticprotected |
Singleton generic access.
- Parameters
-
| name | Internal id of a singleton |
- Returns
- a pointer to the dummy wrapper of the singleton attached to name
| friend class utilmm::singleton::server |
|
friend |
The documentation for this class was generated from the following file: