Orocos Real-Time Toolkit  2.6.0
GlobalService.hpp
00001 
00002 #ifndef ORO_GLOBALSERVICE_HPP_
00003 #define ORO_GLOBALSERVICE_HPP_
00004 
00005 #include "../Service.hpp"
00006 #include <boost/shared_ptr.hpp>
00007 
00008 namespace RTT
00009 {
00010 
00011     namespace internal
00012     {
00013 
00018         class GlobalService: public RTT::Service
00019         {
00020             GlobalService();
00021         public:
00022             virtual ~GlobalService();
00023             RTT_API static Service::shared_ptr Instance();
00024             RTT_API static void Release();
00025 
00035             bool require(const std::string servicename);
00036         };
00037 
00038     }
00039 
00040 }
00041 
00042 #endif /* ORO_GLOBALSERVICE_HPP_ */