Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Examples

RDAService.h

00001 #ifndef _RDA_RDA_SERVICE_H
00002 #define _RDA_RDA_SERVICE_H
00003 //
00004 // 20 May 2003 N.Trofimov
00005 // Change log:
00006 // 29 Nov 2006, WPG
00007 //   - Added method 'destroy' to cleanup all resources used (including ORB)
00008 
00009 //
00010 // All client include's here, so that an application can only include
00011 // this file.
00012 //
00013 #include <rda/rdadefs.h>
00014 #include <rda/DeviceHandle.h>
00015 #include <rda/ReplyHandler.h>
00016 #include <rda/Logger.h>
00017 
00028 class rdaConnectionManagementThread;
00029 
00030 class rdaRDAService
00031 {
00032    public:
00033 
00040       static rdaRDAService* init() throw (rdaInternalError);
00041 
00048       static void destroy();
00049 
00050 
00063       static void setServiceContext(const rdaData& ctx);
00064 
00070       virtual rdaDeviceHandle * getDeviceHandle(const char * deviceName)
00071          throw (rdaBadParameter, rdaInternalException, rdaInternalError) = 0;
00072          
00073       //
00074       // TODO: doc
00075       //
00076       static void setLogLevel(rdaLogger::LogLevel level);
00077 
00078    protected:
00079 
00080       rdaRDAService() {}
00081       virtual ~rdaRDAService() {}
00082 
00083       static rdaRDAService* theService;
00084       static rdaLogger* logger;
00085       static rdaConnectionManagementThread* managementThread;
00086 };
00087 
00088 #endif /* _RDA_RDA_SERVICE_H */

RDA-2.3 documentation - 27 Jun 2007 - N.Trofimov