TwiceAsNice  2019-02-18
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
lbto::FactoryI Class Reference

#include <LbtoIIFInterfaceFactoryI.h>

Inheritance diagram for lbto::FactoryI:
Inheritance graph
Collaboration diagram for lbto::FactoryI:
Collaboration graph

Public Member Functions

 FactoryI ()
 
 ~FactoryI ()
 dtor. Does nothing More...
 
virtual lbto::IIFServerPrx create (const std::string &_proxyName, const std::string &_focalStation, const std::string &_instrumentID, const Ice::Current &)
 Creates or links an ICE proxy with the client connection. More...
 
virtual void destroyProxy (const std::string &_proxyName, const Ice::Current &)
 
Releases the proxy object and removes the entry from the DirtContainer More...
 
virtual void destroy (const lbto::IIFServerPrx &_prx, const Ice::Current &)
 
Releases the proxy object and removes the entry from the DirtContainer More...
 
virtual std::string getProxy (const std::string &_proxyName, const Ice::Current &)
 Get the proxy definition. More...
 
virtual std::string getProxyInstrument (const std::string &_proxyName, const Ice::Current &)
 
Get the proxy instrument. More...
 
virtual std::string getProxyFocalStation (const std::string &_proxyName, const Ice::Current &)
 Get the proxy focal station. More...
 
virtual std::string listConnections (const Ice::Current &)
 
Creates a list with all the current connections. More...
 
virtual void debugMode (bool b, const Ice::Current &)
 enable/disable debug mode. More...
 
- Public Member Functions inherited from lbto::Factory
virtual bool ice_isA (const ::std::string &, const ::Ice::Current &=::Ice::Current()) const
 
virtual ::std::vector< ::std::string > ice_ids (const ::Ice::Current &=::Ice::Current()) const
 
virtual const ::std::string & ice_id (const ::Ice::Current &=::Ice::Current()) const
 
virtual ::lbto::IIFServerPrx create (const ::std::string &, const ::std::string &, const ::std::string &, const ::Ice::Current &=::Ice::Current())=0
 
::Ice::DispatchStatus ___create (::IceInternal::Incoming &, const ::Ice::Current &)
 
virtual void destroy (const ::lbto::IIFServerPrx &, const ::Ice::Current &=::Ice::Current())=0
 
::Ice::DispatchStatus ___destroy (::IceInternal::Incoming &, const ::Ice::Current &)
 
virtual void destroyProxy (const ::std::string &, const ::Ice::Current &=::Ice::Current())=0
 
::Ice::DispatchStatus ___destroyProxy (::IceInternal::Incoming &, const ::Ice::Current &)
 
virtual ::std::string getProxy (const ::std::string &, const ::Ice::Current &=::Ice::Current())=0
 
::Ice::DispatchStatus ___getProxy (::IceInternal::Incoming &, const ::Ice::Current &)
 
virtual ::std::string getProxyInstrument (const ::std::string &, const ::Ice::Current &=::Ice::Current())=0
 
::Ice::DispatchStatus ___getProxyInstrument (::IceInternal::Incoming &, const ::Ice::Current &)
 
virtual ::std::string getProxyFocalStation (const ::std::string &, const ::Ice::Current &=::Ice::Current())=0
 
::Ice::DispatchStatus ___getProxyFocalStation (::IceInternal::Incoming &, const ::Ice::Current &)
 
virtual ::std::string listConnections (const ::Ice::Current &=::Ice::Current())=0
 
::Ice::DispatchStatus ___listConnections (::IceInternal::Incoming &, const ::Ice::Current &)
 
virtual void debugMode (bool, const ::Ice::Current &=::Ice::Current())=0
 
::Ice::DispatchStatus ___debugMode (::IceInternal::Incoming &, const ::Ice::Current &)
 
virtual ::Ice::DispatchStatus __dispatch (::IceInternal::Incoming &, const ::Ice::Current &)
 
virtual bool ice_isA (const ::std::string &, const ::Ice::Current &=::Ice::Current()) const
 
virtual ::std::vector< ::std::string > ice_ids (const ::Ice::Current &=::Ice::Current()) const
 
virtual const ::std::string & ice_id (const ::Ice::Current &=::Ice::Current()) const
 
virtual ::lbto::IIFServerPrx create (const ::std::string &, const ::std::string &, const ::std::string &, const ::Ice::Current &=::Ice::Current())=0
 
::Ice::DispatchStatus ___create (::IceInternal::Incoming &, const ::Ice::Current &)
 
virtual void destroy (const ::lbto::IIFServerPrx &, const ::Ice::Current &=::Ice::Current())=0
 
::Ice::DispatchStatus ___destroy (::IceInternal::Incoming &, const ::Ice::Current &)
 
virtual void destroyProxy (const ::std::string &, const ::Ice::Current &=::Ice::Current())=0
 
::Ice::DispatchStatus ___destroyProxy (::IceInternal::Incoming &, const ::Ice::Current &)
 
virtual ::std::string getProxy (const ::std::string &, const ::Ice::Current &=::Ice::Current())=0
 
::Ice::DispatchStatus ___getProxy (::IceInternal::Incoming &, const ::Ice::Current &)
 
virtual ::std::string getProxyInstrument (const ::std::string &, const ::Ice::Current &=::Ice::Current())=0
 
::Ice::DispatchStatus ___getProxyInstrument (::IceInternal::Incoming &, const ::Ice::Current &)
 
virtual ::std::string getProxyFocalStation (const ::std::string &, const ::Ice::Current &=::Ice::Current())=0
 
::Ice::DispatchStatus ___getProxyFocalStation (::IceInternal::Incoming &, const ::Ice::Current &)
 
virtual ::std::string listConnections (const ::Ice::Current &=::Ice::Current())=0
 
::Ice::DispatchStatus ___listConnections (::IceInternal::Incoming &, const ::Ice::Current &)
 
virtual void debugMode (bool, const ::Ice::Current &=::Ice::Current())=0
 
::Ice::DispatchStatus ___debugMode (::IceInternal::Incoming &, const ::Ice::Current &)
 
virtual ::Ice::DispatchStatus __dispatch (::IceInternal::Incoming &, const ::Ice::Current &)
 

Private Attributes

Arbitrator m_ar
 Arbitrator object. More...
 
Ice::Current m_c
 Ice current object. More...
 
bool m_debug
 debug mode flag More...
 
std::map< std::string, std::string > nameMap
 instrument ID map More...
 
IceUtil::RecMutex __connMutex
 Recursive Ice Mutex protection. More...
 

Static Private Attributes

static lbto::DirtContainer s_dirts
 DirtI container. More...
 

Additional Inherited Members

- Public Types inherited from lbto::Factory
typedef FactoryPrx ProxyType
 
typedef FactoryPtr PointerType
 
typedef FactoryPrx ProxyType
 
typedef FactoryPtr PointerType
 
- Static Public Member Functions inherited from lbto::Factory
static const ::std::string & ice_staticId ()
 
static const ::std::string & ice_staticId ()
 
- Protected Member Functions inherited from lbto::Factory
virtual void __writeImpl (::IceInternal::BasicStream *) const
 
virtual void __readImpl (::IceInternal::BasicStream *)
 
virtual void __writeImpl (::IceInternal::BasicStream *) const
 
virtual void __readImpl (::IceInternal::BasicStream *)
 

Constructor & Destructor Documentation

◆ FactoryI()

lbto::FactoryI::FactoryI ( )

Default ctor.

◆ ~FactoryI()

lbto::FactoryI::~FactoryI ( )

dtor. Does nothing


Member Function Documentation

◆ create()

lbto::IIFServerPrx lbto::FactoryI::create ( const std::string &  _proxyName,
const std::string &  _focalStation,
const std::string &  _instrumentID,
const Ice::Current &  _c 
)
virtual

Creates or links an ICE proxy with the client connection.

Parameters
_proxyNameProxy Identification. If two or more clients use the same name, both are linked to the same IIFServer object, sharing guide stars, target, etc.
_focalStationInstrument focal station
_instrumentIDInstrument ID
Returns
The proxy pointer associated with this client.

◆ debugMode()

void lbto::FactoryI::debugMode ( bool  b,
const Ice::Current &  _c 
)
virtual

enable/disable debug mode.

Parameters
bsetting b to true, it will print out debug information in the syslog.
_c

◆ destroy()

void lbto::FactoryI::destroy ( const lbto::IIFServerPrx _prx,
const Ice::Current &  _c 
)
virtual


Releases the proxy object and removes the entry from the DirtContainer

Parameters
_prxthe client proxy pointer
_c

◆ destroyProxy()

void lbto::FactoryI::destroyProxy ( const std::string &  _proxyName,
const Ice::Current &  _c 
)
virtual


Releases the proxy object and removes the entry from the DirtContainer

Parameters
_proxyNamethe client proxy name
_c

◆ getProxy()

std::string lbto::FactoryI::getProxy ( const std::string &  _proxyName,
const Ice::Current &  _c 
)
virtual

Get the proxy definition.

Returns
the proxy name.

◆ getProxyFocalStation()

std::string lbto::FactoryI::getProxyFocalStation ( const std::string &  _proxyName,
const Ice::Current &  _c 
)
virtual

Get the proxy focal station.

Parameters
_proxyName
_c
Returns
the proxy focal station

◆ getProxyInstrument()

std::string lbto::FactoryI::getProxyInstrument ( const std::string &  _proxyName,
const Ice::Current &  _c 
)
virtual


Get the proxy instrument.

Returns
the proxy instrument

◆ listConnections()

std::string lbto::FactoryI::listConnections ( const Ice::Current &  _c)
virtual


Creates a list with all the current connections.

Parameters
_c
Returns
the list of established connections

Member Data Documentation

◆ __connMutex

IceUtil::RecMutex lbto::FactoryI::__connMutex
private

Recursive Ice Mutex protection.

◆ m_ar

Arbitrator lbto::FactoryI::m_ar
private

Arbitrator object.

◆ m_c

Ice::Current lbto::FactoryI::m_c
private

Ice current object.

◆ m_debug

bool lbto::FactoryI::m_debug
private

debug mode flag

◆ nameMap

std::map<std::string, std::string> lbto::FactoryI::nameMap
private

instrument ID map

◆ s_dirts

lbto::DirtContainer lbto::FactoryI::s_dirts
staticprivate

DirtI container.


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