TwiceAsNice  2019-02-18
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Types | Private Attributes | Friends | List of all members
Basda::MoccaLCServiceWorkerInterface Class Reference

#include <LCServiceWorkerInterface.h>

Inheritance diagram for Basda::MoccaLCServiceWorkerInterface:
Inheritance graph
Collaboration diagram for Basda::MoccaLCServiceWorkerInterface:
Collaboration graph

Public Types

enum  CMDS {
  ISREACHABLE, GETNAMEDINTENSITY, SETNAMEDINTENSITY, SETINTENSITY,
  SWITCHON, SWITCHOFF, ISREACHABLE, GETNAMEDINTENSITY,
  SETNAMEDINTENSITY, SETINTENSITY, SWITCHON, SWITCHOFF
}
 
enum  CMDS {
  ISREACHABLE, GETNAMEDINTENSITY, SETNAMEDINTENSITY, SETINTENSITY,
  SWITCHON, SWITCHOFF, ISREACHABLE, GETNAMEDINTENSITY,
  SETNAMEDINTENSITY, SETINTENSITY, SWITCHON, SWITCHOFF
}
 

Public Member Functions

void init ()
 
std::string readServiceName ()
 
bool isReachable ()
 
Nice::NPoint getNamedIntensity (int _named_intensity)
 
void setNamedIntensity (int _named_intensity)
 
void setIntensity (std::string _light_source, int _intensity)
 
void switchOn (int _intensity=1023)
 
void switchOff ()
 
void init ()
 
std::string readServiceName ()
 
bool isReachable ()
 
Nice::NPoint getNamedIntensity (int _named_intensity)
 
void setNamedIntensity (int _named_intensity)
 
void setIntensity (std::string _light_source, int _intensity)
 
void switchOn (int _intensity=1023)
 
void switchOff ()
 
- Public Member Functions inherited from Basda::ServiceWorkerInterface
virtual ~ServiceWorkerInterface ()
 
std::string identity ()
 
Nice::I64 id ()
 
Nice::JointPtr config ()
 
bool isConnected ()
 
template<typename Type >
void set (const char *_key, const Type &_val)
 
template<typename Type >
Type get (const char *_key)
 
template<typename Type >
Type getAttribute (const char *_key, const char *_attr)
 
void abort ()
 
bool stop (const Nice::Time &_timeout=Nice::Time())
 
Basda::ServiceState state ()
 
bool changeState (Basda::ServiceState _state, const Nice::Time &_timeout=Nice::Time())
 
bool waitForState (Basda::ServiceState _state, const Nice::Time &_timeout=Nice::Time())
 
bool waitForActiveState (const Nice::Time &_timeout=Nice::Time())
 
virtual ~ServiceWorkerInterface ()
 
std::string identity ()
 
Nice::I64 id ()
 
Nice::JointPtr config ()
 
bool isConnected ()
 
template<typename Type >
void set (const char *_key, const Type &_val)
 
template<typename Type >
Type get (const char *_key)
 
template<typename Type >
Type getAttribute (const char *_key, const char *_attr)
 
void abort ()
 
bool stop (const Nice::Time &_timeout=Nice::Time())
 
Basda::ServiceState state ()
 
bool changeState (Basda::ServiceState _state, const Nice::Time &_timeout=Nice::Time())
 
bool waitForState (Basda::ServiceState _state, const Nice::Time &_timeout=Nice::Time())
 
bool waitForActiveState (const Nice::Time &_timeout=Nice::Time())
 

Static Public Member Functions

static MoccaLCServiceWorkerInterfacePtr create (const std::string &_absnodename)
 
static MoccaLCServiceWorkerInterfacePtr create (const Nice::JointPtr &_config)
 
static MoccaLCServiceWorkerInterfacePtr connect (const Nice::Endpoint &, const Nice::JointPtr &_config)
 
static MoccaLCServiceWorkerInterfacePtr create (const std::string &_absnodename)
 
static MoccaLCServiceWorkerInterfacePtr create (const Nice::JointPtr &_config)
 
static MoccaLCServiceWorkerInterfacePtr connect (const Nice::Endpoint &, const Nice::JointPtr &_config)
 
- Static Public Member Functions inherited from Basda::ServiceWorkerInterface
static void addAttribute (const Nice::JointPtr &_node)
 
template<typename Type >
static IceUtil::Handle< Typecreate (const Nice::JointPtr &_config, const std::string &_name)
 
template<typename Type >
static IceUtil::Handle< Typeconnect (const Nice::Endpoint &_ep, const Nice::JointPtr &_config, const std::string &_name)
 
static void addAttribute (const Nice::JointPtr &_node)
 
template<typename Type >
static IceUtil::Handle< Typecreate (const Nice::JointPtr &_config, const std::string &_name)
 
template<typename Type >
static IceUtil::Handle< Typeconnect (const Nice::Endpoint &_ep, const Nice::JointPtr &_config, const std::string &_name)
 

Static Public Attributes

static std::map< std::string, Nice::CompletionStates_enumMapStringToNum
 

Protected Member Functions

 MoccaLCServiceWorkerInterface (const Nice::JointPtr &, const Nice::AppConfigClientPtr &_cc=0)
 
virtual ~MoccaLCServiceWorkerInterface ()
 
 MoccaLCServiceWorkerInterface (const Nice::JointPtr &, const Nice::AppConfigClientPtr &_cc=0)
 
virtual ~MoccaLCServiceWorkerInterface ()
 
- Protected Member Functions inherited from Basda::ServiceWorkerInterface
void addListener ()
 
template<typename BridgeType >
IceUtil::Handle< BridgeType > addCmdBridge (const std::string &_node)
 
 ServiceWorkerInterface (const Nice::JointPtr &_config, const Nice::AppConfigClientPtr &_cc=0)
 
void addListener ()
 
template<typename BridgeType >
IceUtil::Handle< BridgeType > addCmdBridge (const std::string &_node)
 
 ServiceWorkerInterface (const Nice::JointPtr &_config, const Nice::AppConfigClientPtr &_cc=0)
 

Private Types

typedef IceUtil::Handle< Basda::ServiceWorkerReadWaitDataWithMultiCompletionProxy< Basda::MoccaLCIsReachable > > IsReachableReadWaitDataWithCompletionProxyPtr
 
typedef IceUtil::Handle< Basda::ServiceWorkerReadWaitDataWithMultiCompletionProxy< Basda::MoccaLCGetNamedIntensity > > GetNamedIntensityReadWaitDataWithCompletionProxyPtr
 
typedef IceUtil::Handle< Basda::ServiceWorkerReadWaitDataWithMultiCompletionProxy< Basda::MoccaLCSetNamedIntensity > > SetNamedIntensityReadWaitDataWithCompletionProxyPtr
 
typedef IceUtil::Handle< Basda::ServiceWorkerReadWaitDataWithMultiCompletionProxy< Basda::MoccaLCSetIntensity > > SetIntensityReadWaitDataWithCompletionProxyPtr
 
typedef IceUtil::Handle< Basda::ServiceWorkerReadWaitDataWithMultiCompletionProxy< Basda::MoccaLCSwitchOn > > SwitchOnReadWaitDataWithCompletionProxyPtr
 
typedef IceUtil::Handle< Basda::ServiceWorkerReadWaitDataWithMultiCompletionProxy< Basda::MoccaLCSwitchOff > > SwitchOffReadWaitDataWithCompletionProxyPtr
 
typedef IceUtil::Handle< Basda::ServiceWorkerReadWaitDataWithMultiCompletionProxy< Basda::MoccaLCIsReachable > > IsReachableReadWaitDataWithCompletionProxyPtr
 
typedef IceUtil::Handle< Basda::ServiceWorkerReadWaitDataWithMultiCompletionProxy< Basda::MoccaLCGetNamedIntensity > > GetNamedIntensityReadWaitDataWithCompletionProxyPtr
 
typedef IceUtil::Handle< Basda::ServiceWorkerReadWaitDataWithMultiCompletionProxy< Basda::MoccaLCSetNamedIntensity > > SetNamedIntensityReadWaitDataWithCompletionProxyPtr
 
typedef IceUtil::Handle< Basda::ServiceWorkerReadWaitDataWithMultiCompletionProxy< Basda::MoccaLCSetIntensity > > SetIntensityReadWaitDataWithCompletionProxyPtr
 
typedef IceUtil::Handle< Basda::ServiceWorkerReadWaitDataWithMultiCompletionProxy< Basda::MoccaLCSwitchOn > > SwitchOnReadWaitDataWithCompletionProxyPtr
 
typedef IceUtil::Handle< Basda::ServiceWorkerReadWaitDataWithMultiCompletionProxy< Basda::MoccaLCSwitchOff > > SwitchOffReadWaitDataWithCompletionProxyPtr
 

Private Attributes

IsReachableReadWaitDataWithCompletionProxyPtr m_isReachableReadWaitDataWithCompletionProxy
 
GetNamedIntensityReadWaitDataWithCompletionProxyPtr m_getNamedIntensityReadWaitDataWithCompletionProxy
 
SetNamedIntensityReadWaitDataWithCompletionProxyPtr m_setNamedIntensityReadWaitDataWithCompletionProxy
 
SetIntensityReadWaitDataWithCompletionProxyPtr m_setIntensityReadWaitDataWithCompletionProxy
 
SwitchOnReadWaitDataWithCompletionProxyPtr m_switchOnReadWaitDataWithCompletionProxy
 
SwitchOffReadWaitDataWithCompletionProxyPtr m_switchOffReadWaitDataWithCompletionProxy
 

Friends

template<typename T >
IceUtil::Handle< T > Basda::getServiceWorkerInterfaceInstance (const Nice::JointPtr &, const std::string &)
 
template<typename T >
IceUtil::Handle< T > Basda::getServiceWorkerInterfaceInstance (const Nice::JointPtr &, const std::string &)
 

Additional Inherited Members

- Protected Attributes inherited from Basda::ServiceWorkerInterface
std::string m_identity
 
Nice::I64 m_id
 
Nice::JointPtr m_config
 
Nice::AppConfigClientPtr m_cc
 
ServiceWorkerInterfaceWatchdogListenerm_listener
 
Nice::PropertyBridgeReadWaitProxyPtr m_stateBridgeReadWaitProxy
 
Basda::ServiceWorkerReadWaitCompletionProxyPtr m_stopReadWaitProxy
 
- Static Protected Attributes inherited from Basda::ServiceWorkerInterface
static std::map< std::string, ServiceWorkerInterfacePtrs_inst
 

Member Typedef Documentation

◆ GetNamedIntensityReadWaitDataWithCompletionProxyPtr [1/2]

◆ GetNamedIntensityReadWaitDataWithCompletionProxyPtr [2/2]

◆ IsReachableReadWaitDataWithCompletionProxyPtr [1/2]

◆ IsReachableReadWaitDataWithCompletionProxyPtr [2/2]

◆ SetIntensityReadWaitDataWithCompletionProxyPtr [1/2]

◆ SetIntensityReadWaitDataWithCompletionProxyPtr [2/2]

◆ SetNamedIntensityReadWaitDataWithCompletionProxyPtr [1/2]

◆ SetNamedIntensityReadWaitDataWithCompletionProxyPtr [2/2]

◆ SwitchOffReadWaitDataWithCompletionProxyPtr [1/2]

◆ SwitchOffReadWaitDataWithCompletionProxyPtr [2/2]

◆ SwitchOnReadWaitDataWithCompletionProxyPtr [1/2]

◆ SwitchOnReadWaitDataWithCompletionProxyPtr [2/2]

Member Enumeration Documentation

◆ CMDS [1/2]

Enumerator
ISREACHABLE 
GETNAMEDINTENSITY 
SETNAMEDINTENSITY 
SETINTENSITY 
SWITCHON 
SWITCHOFF 
ISREACHABLE 
GETNAMEDINTENSITY 
SETNAMEDINTENSITY 
SETINTENSITY 
SWITCHON 
SWITCHOFF 

◆ CMDS [2/2]

Enumerator
ISREACHABLE 
GETNAMEDINTENSITY 
SETNAMEDINTENSITY 
SETINTENSITY 
SWITCHON 
SWITCHOFF 
ISREACHABLE 
GETNAMEDINTENSITY 
SETNAMEDINTENSITY 
SETINTENSITY 
SWITCHON 
SWITCHOFF 

Constructor & Destructor Documentation

◆ MoccaLCServiceWorkerInterface() [1/2]

Basda::MoccaLCServiceWorkerInterface::MoccaLCServiceWorkerInterface ( const Nice::JointPtr _config,
const Nice::AppConfigClientPtr _cc = 0 
)
protected

◆ ~MoccaLCServiceWorkerInterface() [1/2]

Basda::MoccaLCServiceWorkerInterface::~MoccaLCServiceWorkerInterface ( )
protectedvirtual

◆ MoccaLCServiceWorkerInterface() [2/2]

Basda::MoccaLCServiceWorkerInterface::MoccaLCServiceWorkerInterface ( const Nice::JointPtr ,
const Nice::AppConfigClientPtr _cc = 0 
)
protected

◆ ~MoccaLCServiceWorkerInterface() [2/2]

virtual Basda::MoccaLCServiceWorkerInterface::~MoccaLCServiceWorkerInterface ( )
protectedvirtual

Member Function Documentation

◆ connect() [1/2]

MoccaLCServiceWorkerInterfacePtr Basda::MoccaLCServiceWorkerInterface::connect ( const Nice::Endpoint _ep,
const Nice::JointPtr _config 
)
static

◆ connect() [2/2]

static MoccaLCServiceWorkerInterfacePtr Basda::MoccaLCServiceWorkerInterface::connect ( const Nice::Endpoint ,
const Nice::JointPtr _config 
)
static

◆ create() [1/4]

static MoccaLCServiceWorkerInterfacePtr Basda::MoccaLCServiceWorkerInterface::create ( const std::string &  _absnodename)
static

◆ create() [2/4]

MoccaLCServiceWorkerInterfacePtr Basda::MoccaLCServiceWorkerInterface::create ( const std::string &  _absnodename)
static

◆ create() [3/4]

MoccaLCServiceWorkerInterfacePtr Basda::MoccaLCServiceWorkerInterface::create ( const Nice::JointPtr _config)
static

◆ create() [4/4]

static MoccaLCServiceWorkerInterfacePtr Basda::MoccaLCServiceWorkerInterface::create ( const Nice::JointPtr _config)
static

◆ getNamedIntensity() [1/2]

Nice::NPoint Basda::MoccaLCServiceWorkerInterface::getNamedIntensity ( int  _named_intensity)

◆ getNamedIntensity() [2/2]

Nice::NPoint Basda::MoccaLCServiceWorkerInterface::getNamedIntensity ( int  _named_intensity)

◆ init() [1/2]

void Basda::MoccaLCServiceWorkerInterface::init ( )

◆ init() [2/2]

void Basda::MoccaLCServiceWorkerInterface::init ( )

◆ isReachable() [1/2]

bool Basda::MoccaLCServiceWorkerInterface::isReachable ( )

◆ isReachable() [2/2]

bool Basda::MoccaLCServiceWorkerInterface::isReachable ( )

◆ readServiceName() [1/2]

std::string Basda::MoccaLCServiceWorkerInterface::readServiceName ( )

◆ readServiceName() [2/2]

std::string Basda::MoccaLCServiceWorkerInterface::readServiceName ( )

◆ setIntensity() [1/2]

void Basda::MoccaLCServiceWorkerInterface::setIntensity ( std::string  _light_source,
int  _intensity 
)

◆ setIntensity() [2/2]

void Basda::MoccaLCServiceWorkerInterface::setIntensity ( std::string  _light_source,
int  _intensity 
)

◆ setNamedIntensity() [1/2]

void Basda::MoccaLCServiceWorkerInterface::setNamedIntensity ( int  _named_intensity)

◆ setNamedIntensity() [2/2]

void Basda::MoccaLCServiceWorkerInterface::setNamedIntensity ( int  _named_intensity)

◆ switchOff() [1/2]

void Basda::MoccaLCServiceWorkerInterface::switchOff ( )

◆ switchOff() [2/2]

void Basda::MoccaLCServiceWorkerInterface::switchOff ( )

◆ switchOn() [1/2]

void Basda::MoccaLCServiceWorkerInterface::switchOn ( int  _intensity = 1023)

◆ switchOn() [2/2]

void Basda::MoccaLCServiceWorkerInterface::switchOn ( int  _intensity = 1023)

Friends And Related Function Documentation

◆ Basda::getServiceWorkerInterfaceInstance [1/2]

template<typename T >
IceUtil::Handle<T> Basda::getServiceWorkerInterfaceInstance ( const Nice::JointPtr ,
const std::string &   
)
friend

◆ Basda::getServiceWorkerInterfaceInstance [2/2]

template<typename T >
IceUtil::Handle<T> Basda::getServiceWorkerInterfaceInstance ( const Nice::JointPtr ,
const std::string &   
)
friend

Member Data Documentation

◆ m_getNamedIntensityReadWaitDataWithCompletionProxy

GetNamedIntensityReadWaitDataWithCompletionProxyPtr Basda::MoccaLCServiceWorkerInterface::m_getNamedIntensityReadWaitDataWithCompletionProxy
private

◆ m_isReachableReadWaitDataWithCompletionProxy

IsReachableReadWaitDataWithCompletionProxyPtr Basda::MoccaLCServiceWorkerInterface::m_isReachableReadWaitDataWithCompletionProxy
private

◆ m_setIntensityReadWaitDataWithCompletionProxy

SetIntensityReadWaitDataWithCompletionProxyPtr Basda::MoccaLCServiceWorkerInterface::m_setIntensityReadWaitDataWithCompletionProxy
private

◆ m_setNamedIntensityReadWaitDataWithCompletionProxy

SetNamedIntensityReadWaitDataWithCompletionProxyPtr Basda::MoccaLCServiceWorkerInterface::m_setNamedIntensityReadWaitDataWithCompletionProxy
private

◆ m_switchOffReadWaitDataWithCompletionProxy

SwitchOffReadWaitDataWithCompletionProxyPtr Basda::MoccaLCServiceWorkerInterface::m_switchOffReadWaitDataWithCompletionProxy
private

◆ m_switchOnReadWaitDataWithCompletionProxy

SwitchOnReadWaitDataWithCompletionProxyPtr Basda::MoccaLCServiceWorkerInterface::m_switchOnReadWaitDataWithCompletionProxy
private

◆ s_enumMapStringToNum

static std::map< std::string, Nice::CompletionState > Basda::MoccaLCServiceWorkerInterface::s_enumMapStringToNum
static

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