Orocos Real-Time Toolkit
2.8.3
|
#include "../rtt-config.h"
#include <os/startstop.h>
#include "os/MainThread.hpp"
#include "os/StartStopManager.hpp"
#include "../internal/GlobalEngine.hpp"
#include "../types/GlobalsRepository.hpp"
#include "../types/TypekitRepository.hpp"
#include <cstdio>
#include "../Logger.hpp"
#include "TimeService.hpp"
Go to the source code of this file.
Functions | |
int | __os_init (int argc, char **argv) |
Call this function from within main() before using the RTT services. More... | |
int | __os_main_argc (void) |
Call this function to find out how many arguments were passed to the process' main() function. More... | |
char ** | __os_main_argv (void) |
Call this function to get the list of arguments of this process' main() function. More... | |
void | __os_printFailure (const char *prog) |
Internal: Inform the user that a failure occured. More... | |
void | __os_printException (const char *prog, std::exception &arg) |
Internal: Inform the user that a failure occured. More... | |
int | __os_checkException (int &argc, char **argv) |
Internal: Check if the user requests disabling exception catching at run-time. More... | |
void | __os_exit (void) |
Call this function from within main() after using the RTT services, just before returning. More... | |
Variables | |
const char * | oro_catchflag = "--nocatch" |
const char * | oro_catchflag2 = "--no-catch" |
int __os_checkException | ( | int & | , |
char ** | |||
) |
Internal: Check if the user requests disabling exception catching at run-time.
Definition at line 146 of file startstop.cpp.
References oro_catchflag, and oro_catchflag2.
void __os_exit | ( | void | ) |
Call this function from within main() after using the RTT services, just before returning.
You do not need this when you use ORO_main().
Definition at line 162 of file startstop.cpp.
References RTT::Logger::Debug, RTT::Logger::endl(), RTT::os::StartStopManager::Instance(), RTT::Logger::log(), RTT::types::GlobalsRepository::Release(), RTT::os::StartStopManager::Release(), RTT::internal::GlobalEngine::Release(), RTT::types::TypeInfoRepository::Release(), RTT::os::MainThread::Release(), RTT::os::TimeService::Release(), RTT::types::TypekitRepository::Release(), RTT::Logger::Release(), and RTT::os::StartStopManager::stop().
int __os_init | ( | int | argc, |
char ** | argv | ||
) |
Call this function from within main() before using the RTT services.
You do not need this when you use ORO_main().
Definition at line 75 of file startstop.cpp.
References RTT::Logger::Debug, RTT::Logger::endl(), RTT::Logger::Error, RTT::dev::NameServer< _ValueType >::getObject(), RTT::Logger::Info, RTT::os::StartStopManager::Instance(), RTT::os::MainThread::Instance(), RTT::Logger::log(), RTT::dev::DigitalOutInterface::nameserver, RTT::os::StartStopManager::start(), and RTT::dev::DigitalOutInterface::switchOn().
int __os_main_argc | ( | void | ) |
Call this function to find out how many arguments were passed to the process' main() function.
Definition at line 109 of file startstop.cpp.
char** __os_main_argv | ( | void | ) |
Call this function to get the list of arguments of this process' main() function.
Definition at line 112 of file startstop.cpp.
void __os_printException | ( | const char * | prog, |
std::exception & | arg | ||
) |
Internal: Inform the user that a failure occured.
Definition at line 135 of file startstop.cpp.
References __os_printFailure(), and RTT::os::endl().
void __os_printFailure | ( | const char * | prog | ) |
Internal: Inform the user that a failure occured.
Definition at line 116 of file startstop.cpp.
References RTT::os::endl().
Referenced by __os_printException().
const char* oro_catchflag = "--nocatch" |
Definition at line 143 of file startstop.cpp.
Referenced by __os_checkException().
const char* oro_catchflag2 = "--no-catch" |
Definition at line 144 of file startstop.cpp.
Referenced by __os_checkException().