UniSet  1.7.0
UConnector.h
00001 #ifndef UConnector_H_
00002 #define UConnector_H_
00003 // --------------------------------------------------------------------------
00004 #include <string>
00005 #include <Configuration.h>
00006 #include <UniversalInterface.h>
00007 #include "UTypes.h"
00008 #include "UExceptions.h"
00009 // -------------------------------------------------------------------------- 
00010 class UConnector
00011 {
00012     public:
00013       UConnector( int argc, char** argv, const char* xmlfile )throw(UException);
00014       UConnector( UTypes::Params* p, const char* xmlfile )throw(UException);
00015       ~UConnector();
00016 
00017       inline const char* getUIType(){ return "uniset"; }
00018 
00019       const char* getConfFileName();
00020       long getValue( long id, long node )throw(UException);
00021       void setValue( long id, long val, long node )throw(UException);
00022 
00023       long getSensorID( const char* );
00024       long getNodeID( const char* );
00025     
00026       const char* getShortName( long id );
00027       const char* getName( long id );
00028       const char* getTextName( long id );
00029 
00030       
00031     private:
00032       UniSetTypes::Configuration* conf;
00033       UniversalInterface* ui;
00034       const char* xmlfile;
00035 };
00036 //---------------------------------------------------------------------------
00037 #endif
00038 //---------------------------------------------------------------------------