TwiceAsNice  2019-02-18
Classes | Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
Nice::StandaloneApp Class Reference
Inheritance diagram for Nice::StandaloneApp:
Inheritance graph
Collaboration diagram for Nice::StandaloneApp:
Collaboration graph

Classes

struct  MyServiceWatchdogListener
 

Public Member Functions

 StandaloneApp ()
 
void usage ()
 
virtual int run (int argc, char *argv[])
 
virtual ~StandaloneApp ()
 
- Public Member Functions inherited from Nice::Application
 Application ()
 
 ~Application ()
 
int init (int &, char *[])
 
int start (int, char *[])
 
void loadTypes ()
 
void enableHeartbeat ()
 
void enableLogger ()
 
virtual void interruptCallback (int _i)
 
 Application ()
 
 ~Application ()
 
int init (int &, char *[])
 
int start (int, char *[])
 
void loadTypes ()
 
void enableHeartbeat ()
 
void enableLogger ()
 
virtual void interruptCallback (int _i)
 

Private Types

typedef boost::shared_ptr< MyServiceWatchdogListenerMyServiceWatchdogListenerPtr
 

Private Member Functions

void runScript (Nice::JointPtr _node)
 
bool connect (Nice::JointPtr _j, int argc, char *argv[])
 
int getExitCode ()
 
void registerWatchdogListeners ()
 
void disableGuiIfAny ()
 
void enableGuiIfAny ()
 
bool areAllServicesAvailable ()
 
bool isGuiAvailable ()
 
void initializeWindowTitle ()
 
void updateWindowMessage (const std::string &windowMessage)
 
void printUsageAndExitIfNecessary (int argc, char **argv)
 
void logThatUserInterfaceIsUpAndRunning ()
 

Static Private Member Functions

static std::string getWindowTitlePropertyName ()
 
static std::string getPythonInterpreterPropertyName ()
 
static std::string getUiPropertyName ()
 
static std::string getUiLoggerPropertyName ()
 

Private Attributes

Nice::PlayThreadm_interpreter
 
bool m_hasGui
 
QSplitter * m_box
 
QApplication * m_app
 
QVBoxLayout * m_layout
 
vector< MyServiceWatchdogListenerPtrserviceWatchdogListeners_
 
unsigned m_serviceOutageCount
 
std::string m_basicWindowTitle
 

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)
 

Member Typedef Documentation

◆ MyServiceWatchdogListenerPtr

Constructor & Destructor Documentation

◆ StandaloneApp()

Nice::StandaloneApp::StandaloneApp ( )

◆ ~StandaloneApp()

Nice::StandaloneApp::~StandaloneApp ( )
virtual

Member Function Documentation

◆ areAllServicesAvailable()

bool Nice::StandaloneApp::areAllServicesAvailable ( )
private

◆ connect()

bool Nice::StandaloneApp::connect ( Nice::JointPtr  _j,
int  argc,
char *  argv[] 
)
private

◆ disableGuiIfAny()

void Nice::StandaloneApp::disableGuiIfAny ( )
private

◆ enableGuiIfAny()

void Nice::StandaloneApp::enableGuiIfAny ( )
private

◆ getExitCode()

int Nice::StandaloneApp::getExitCode ( )
private

◆ getPythonInterpreterPropertyName()

std::string Nice::StandaloneApp::getPythonInterpreterPropertyName ( )
staticprivate

◆ getUiLoggerPropertyName()

std::string Nice::StandaloneApp::getUiLoggerPropertyName ( )
staticprivate

◆ getUiPropertyName()

std::string Nice::StandaloneApp::getUiPropertyName ( )
staticprivate

◆ getWindowTitlePropertyName()

std::string Nice::StandaloneApp::getWindowTitlePropertyName ( )
staticprivate

◆ initializeWindowTitle()

void Nice::StandaloneApp::initializeWindowTitle ( )
private

◆ isGuiAvailable()

bool Nice::StandaloneApp::isGuiAvailable ( )
private

◆ logThatUserInterfaceIsUpAndRunning()

void Nice::StandaloneApp::logThatUserInterfaceIsUpAndRunning ( )
private

◆ printUsageAndExitIfNecessary()

void Nice::StandaloneApp::printUsageAndExitIfNecessary ( int  argc,
char **  argv 
)
private

◆ registerWatchdogListeners()

void Nice::StandaloneApp::registerWatchdogListeners ( )
private

◆ run()

int Nice::StandaloneApp::run ( int  argc,
char *  argv[] 
)
virtual

Implements Nice::Application.

◆ runScript()

void Nice::StandaloneApp::runScript ( Nice::JointPtr  _node)
private

◆ updateWindowMessage()

void Nice::StandaloneApp::updateWindowMessage ( const std::string &  windowMessage)
private

◆ usage()

void Nice::StandaloneApp::usage ( )

Member Data Documentation

◆ m_app

QApplication* Nice::StandaloneApp::m_app
private

◆ m_basicWindowTitle

std::string Nice::StandaloneApp::m_basicWindowTitle
private

◆ m_box

QSplitter* Nice::StandaloneApp::m_box
private

◆ m_hasGui

bool Nice::StandaloneApp::m_hasGui
private

◆ m_interpreter

Nice::PlayThread* Nice::StandaloneApp::m_interpreter
private

◆ m_layout

QVBoxLayout* Nice::StandaloneApp::m_layout
private

◆ m_serviceOutageCount

unsigned Nice::StandaloneApp::m_serviceOutageCount
private

◆ serviceWatchdogListeners_

vector<MyServiceWatchdogListenerPtr> Nice::StandaloneApp::serviceWatchdogListeners_
private

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