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