YARP
Yet Another Robot Platform
yarp::manager::ScriptLocalBroker Class Reference

#include <yarp/manager/scriptbroker.h>

+ Inheritance diagram for yarp::manager::ScriptLocalBroker:

Public Member Functions

 ScriptLocalBroker (const char *sc)
 
virtual ~ScriptLocalBroker ()
 
bool init (const char *szcmd, const char *szparam, const char *szhost, const char *szstdio, const char *szworkdir, const char *szenv) override
 
bool init () override
 
bool init (const char *szcmd, const char *szparam, const char *szhost, const char *szstdio, const char *szworkdir, const char *szenv) override
 
- Public Member Functions inherited from yarp::manager::LocalBroker
 LocalBroker ()
 
virtual ~LocalBroker ()
 
void fini () override
 
bool start () override
 
bool stop () override
 
bool kill () override
 
bool connect (const char *from, const char *to, const char *carrier, bool persist=false) override
 connection broker More...
 
bool disconnect (const char *from, const char *to, const char *carrier) override
 
int running () override
 
bool exists (const char *port) override
 
const char * requestRpc (const char *szport, const char *request, double timeout) override
 
bool connected (const char *from, const char *to, const char *carrier) override
 
const char * error () override
 
bool initialized () override
 
bool attachStdout () override
 
void detachStdout () override
 
void setWindowMode (WindowMode m)
 Define if the application will be visible or not. More...
 
void run () override
 Main body of the new thread. More...
 
bool threadInit () override
 Initialization method. More...
 
void threadRelease () override
 Release method. More...
 
- Public Member Functions inherited from yarp::manager::Broker
 Broker ()
 
virtual ~Broker ()
 
void setEventSink (BrokerEventSink *pEventSink)
 
unsigned int generateID ()
 
void enableWatchDog ()
 
void disableWatchDog ()
 
bool hasWatchDog ()
 
void setDisplay (const char *szDisplay)
 
const char * getDisplay () const
 
- Public Member Functions inherited from yarp::os::Thread
 Thread ()
 Constructor. More...
 
virtual ~Thread ()
 Destructor. More...
 
virtual void onStop ()
 Call-back, called while halting the thread (before join). More...
 
bool start ()
 Start the new thread running. More...
 
bool stop ()
 Stop the thread. More...
 
virtual void beforeStart ()
 Called just before a new thread starts. More...
 
virtual void afterStart (bool success)
 Called just after a new thread starts (or fails to start), this is executed by the same thread that calls start(). More...
 
bool isStopping ()
 Returns true if the thread is stopping (Thread::stop has been called). More...
 
bool isRunning ()
 Returns true if the thread is running (Thread::start has been called successfully and the thread has not stopped). More...
 
long int getKey ()
 Get a unique identifier for the thread. More...
 
int setPriority (int priority, int policy=-1)
 Set the priority and scheduling policy of the thread, if the OS supports that. More...
 
int getPriority ()
 Query the current priority of the thread, if the OS supports that. More...
 
int getPolicy ()
 Query the current scheduling policy of the thread, if the OS supports that. More...
 
bool join (double seconds=-1)
 The function returns when the thread execution has completed. More...
 
void setOptions (int stackSize=0)
 Set the stack size for the new thread. More...
 

Additional Inherited Members

- Public Types inherited from yarp::manager::LocalBroker
enum  WindowMode {
  WINDOW_HIDDEN =0,
  WINDOW_VISIBLE =1,
  WINDOW_MINIMIZED =2
}
 
- Static Public Member Functions inherited from yarp::os::Thread
static int getCount ()
 Check how many threads are running. More...
 
static long int getKeyOfCaller ()
 Get a unique identifier for the calling thread. More...
 
static void yield ()
 Reschedule the execution of current thread, allowing other threads to run. More...
 
static void setDefaultStackSize (int stackSize)
 Set the default stack size for all threads created after this point. More...
 
- Protected Attributes inherited from yarp::manager::Broker
unsigned int UNIQUEID
 
BrokerEventSinkeventSink
 
bool bWithWatchDog
 
std::string strDisplay
 

Detailed Description

Definition at line 22 of file scriptbroker.h.

Constructor & Destructor Documentation

◆ ScriptLocalBroker()

yarp::manager::ScriptLocalBroker::ScriptLocalBroker ( const char *  sc)
inline

Definition at line 26 of file scriptbroker.h.

◆ ~ScriptLocalBroker()

virtual yarp::manager::ScriptLocalBroker::~ScriptLocalBroker ( )
inlinevirtual

Definition at line 30 of file scriptbroker.h.

Member Function Documentation

◆ init() [1/3]

bool LocalBroker::init
overridevirtual

Reimplemented from yarp::manager::LocalBroker.

Definition at line 49 of file localbroker.cpp.

◆ init() [2/3]

bool LocalBroker::init
overridevirtual

Reimplemented from yarp::manager::LocalBroker.

Definition at line 50 of file localbroker.cpp.

◆ init() [3/3]

bool ScriptLocalBroker::init ( const char *  szcmd,
const char *  szparam,
const char *  szhost,
const char *  szstdio,
const char *  szworkdir,
const char *  szenv 
)
overridevirtual

Reimplemented from yarp::manager::LocalBroker.

Definition at line 66 of file scriptbroker.cpp.


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