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

A BasdardApplication is a Nice Application with a name and a pointer to a server. More...

Inheritance diagram for Basda::BasdardApplication:
Inheritance graph
Collaboration diagram for Basda::BasdardApplication:
Collaboration graph

Public Member Functions

virtual int run (int, char *[])
 run the ICE application The usual arguments of the ICE interface are not used. More...
 
virtual void interruptCallback (int _sig)
 register that an interrupt shuts down the service by changing the state machine target state. More...
 
- Public Member Functions inherited from Nice::Application
 Application ()
 
 ~Application ()
 
int init (int &, char *[])
 
int start (int, char *[])
 
void loadTypes ()
 
void enableHeartbeat ()
 
void enableLogger ()
 
 Application ()
 
 ~Application ()
 
int init (int &, char *[])
 
int start (int, char *[])
 
void loadTypes ()
 
void enableHeartbeat ()
 
void enableLogger ()
 

Protected Attributes

Basda::BasdardServiceWorkerPtr m_basdard
 
The collection of states and services for that basdard. More...
 

Static Protected Attributes

static std::string s_name
 
The name by witch the basdard application may be called. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Nice::Application
static void exit (int)
 
static const char * appName ()
 
static bool isInitialized ()
 
static void wait ()
 
static void shutdown (int _int=0)
 
static Ice::CommunicatorPtr communicator ()
 
static Ice::ObjectAdapterPtr adapter (const std::string &="")
 
static const Ice::ObjectPrx & addService (const std::string &_name, Ice::ObjectPtr &_object)
 
static JointPtr preinit ()
 
static JointPtr config (const std::string &_node="")
 
static Nice::JointPtr loadFile (const std::string &_filename)
 
static Nice::PrioThreadPoolPtr threadpool ()
 
static void startHeartbeat ()
 
static void startLogger ()
 
static void distribute (const Nice::JointPtr &_seed, bool _recursive=true)
 
static std::string fileByPath (const std::string _filename, bool _create=false)
 
static void destroyOnInterrupt ()
 
static void shutdownOnInterrupt ()
 
static void ignoreInterrupt ()
 
static void callbackOnInterrupt ()
 
static void holdInterrupt ()
 
static void releaseInterrupt ()
 
static bool interrupted ()
 
static void exit (int)
 
static const char * appName ()
 
static bool isInitialized ()
 
static void wait ()
 
static void shutdown (int _int=0)
 
static Ice::CommunicatorPtr communicator ()
 
static Ice::ObjectAdapterPtr adapter (const std::string &="")
 
static const Ice::ObjectPrx & addService (const std::string &_name, Ice::ObjectPtr &_object)
 
static JointPtr preinit ()
 
static JointPtr config (const std::string &_node="")
 
static Nice::JointPtr loadFile (const std::string &_filename)
 
static Nice::PrioThreadPoolPtr threadpool ()
 
static void startHeartbeat ()
 
static void startLogger ()
 
static void distribute (const Nice::JointPtr &_seed, bool _recursive=true)
 
static std::string fileByPath (const std::string _filename, bool _create=false)
 
static void destroyOnInterrupt ()
 
static void shutdownOnInterrupt ()
 
static void ignoreInterrupt ()
 
static void callbackOnInterrupt ()
 
static void holdInterrupt ()
 
static void releaseInterrupt ()
 
static bool interrupted ()
 
- Static Protected Member Functions inherited from Nice::Application
static int end (int)
 
static void setCtrlCCallback (IceUtil::CtrlCHandlerCallback)
 
static int end (int)
 
static void setCtrlCCallback (IceUtil::CtrlCHandlerCallback)
 

Detailed Description

A BasdardApplication is a Nice Application with a name and a pointer to a server.

Member Function Documentation

◆ interruptCallback()

void Basda::BasdardApplication::interruptCallback ( int  _sig)
virtual

register that an interrupt shuts down the service by changing the state machine target state.

The signal (number) argument is not used.

Reimplemented from Nice::Application.

◆ run()

int Basda::BasdardApplication::run ( int  ,
char *  [] 
)
virtual

run the ICE application The usual arguments of the ICE interface are not used.

This constructs the basdard service, configures it, waits until the ICE application terminates,

Parameters
Thefinal state after the application has terminated.

Implements Nice::Application.

Member Data Documentation

◆ m_basdard

Basda::BasdardServiceWorkerPtr Basda::BasdardApplication::m_basdard
protected


The collection of states and services for that basdard.

◆ s_name

std::string Basda::BasdardApplication::s_name
staticprotected


The name by witch the basdard application may be called.

In this base class this is a static variable (shared by all instances).


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