Util--  1.1
Protected Member Functions | Static Protected Member Functions | Friends | List of all members
utilmm::singleton::dummy Class Referenceabstract

base class for utilmm::singleton::wrapper More...

#include <utilmm/singleton/bits/dummy.hh>

Inheritance diagram for utilmm::singleton::dummy:
Inheritance graph
[legend]
Collaboration diagram for utilmm::singleton::dummy:
Collaboration graph
[legend]

Protected Member Functions

 dummy ()
 Default Constructor. More...
 
virtual ~dummy ()=0
 Destructor. More...
 

Static Protected Member Functions

static void attach (std::string const &name, details::dummy_factory const &factory)
 Attach a new singleton. More...
 
static void detach (std::string const &name)
 Detach to a singleton. More...
 
static dummyinstance (std::string const &name)
 Singleton generic access. More...
 

Friends

class utilmm::singleton::server
 

Detailed Description

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

Constructor & Destructor Documentation

◆ dummy()

utilmm::singleton::dummy::dummy ( )
protected

Default Constructor.

◆ ~dummy()

virtual utilmm::singleton::dummy::~dummy ( )
protectedpure virtual

Destructor.

Member Function Documentation

◆ attach()

static void utilmm::singleton::dummy::attach ( std::string const &  name,
details::dummy_factory const &  factory 
)
staticprotected

Attach a new singleton.

Parameters
nameInternal id of the singleton.
instCandidate 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

◆ detach()

static void utilmm::singleton::dummy::detach ( std::string const &  name)
staticprotected

Detach to a singleton.

Parameters
nameInternal 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.

◆ instance()

static dummy* utilmm::singleton::dummy::instance ( std::string const &  name)
staticprotected

Singleton generic access.

Parameters
nameInternal id of a singleton
Returns
a pointer to the dummy wrapper of the singleton attached to name

Friends And Related Function Documentation

◆ utilmm::singleton::server

friend class utilmm::singleton::server
friend

The documentation for this class was generated from the following file:

Generated on Wed Oct 17 2018 09:34:19 for Util-- by doxygen 1.8.13
SourceForge.net Project Page