![]() |
RobWorkProject
23.9.11-
|
a RobWorkStudio main application which may be instantiated in its own thread. The app can be started with either a call to the run() function or the start() function depending on weather you want to run it from current thread or start it up in another tread. More...
#include <RobWorkStudioApp.hpp>
Public Member Functions | |
RobWorkStudioApp (const std::string &args="") | |
constructor More... | |
virtual | ~RobWorkStudioApp () |
destructor | |
void | start () |
start RobWorkStudio in its own thread, the function is blocking until rws is up and running | |
int | run () |
start RobWorkStudio in this thread. Notice this method call will block until RobWorkStudio is exited. More... | |
bool | isRunning () |
check if RobwWrkStudio is running More... | |
void | close () |
Close RobWorkStudio. Blocking until rws is closed. This might take awaile. | |
DEPRECATED ("In the feuture this will return RobWorkStudio::Ptr instead of RobWorkStudio*. use " "#define RWS_USE_PTR before including this file to enable the new behavior") | |
get handle to the running RobWorkStudio instance. More... | |
RobWorkStudio * | getRobWorkStudio () |
a RobWorkStudio main application which may be instantiated in its own thread. The app can be started with either a call to the run() function or the start() function depending on weather you want to run it from current thread or start it up in another tread.
For convinienve when running the app from the main tread the macros RWS_START(RobWorkStudioApp app) and RWS_END() can be used to capsulate code to run in a new thread
|
inline |
constructor
args | [in] command line arguments for RobWorkStudio |
DEPRECATED | ( | "In the feuture this will return RobWorkStudio::Ptr instead of RobWorkStudio*. use " "#define RWS_USE_PTR before including this file to enable the new behavior" | ) |
get handle to the running RobWorkStudio instance.
|
inline |
check if RobwWrkStudio is running
int run | ( | ) |
start RobWorkStudio in this thread. Notice this method call will block until RobWorkStudio is exited.