UniSet  2.6.0
PyUInterface.h
00001 /*
00002  * Copyright (c) 2015 Pavel Vainerman.
00003  *
00004  * This program is free software: you can redistribute it and/or modify
00005  * it under the terms of the GNU Lesser General Public License as
00006  * published by the Free Software Foundation, version 2.1.
00007  *
00008  * This program is distributed in the hope that it will be useful, but
00009  * WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00011  * Lesser General Lesser Public License for more details.
00012  *
00013  * You should have received a copy of the GNU Lesser General Public License
00014  * along with this program. If not, see <http://www.gnu.org/licenses/>.
00015  */
00016 // -------------------------------------------------------------------------
00017 #ifndef pyUInterface_H_
00018 #define pyUInterface_H_
00019 // --------------------------------------------------------------------------
00020 #include <string>
00021 #include "UTypes.h"
00022 #include "UExceptions.h"
00023 // --------------------------------------------------------------------------
00024 namespace pyUInterface
00025 {
00026 void uniset_init_params( UTypes::Params* p, const std::string& xmlfile )throw(UException);
00027 void uniset_init( int argc, char** argv, const std::string& xmlfile )throw(UException);
00028 void uniset_activate_objects() throw(UException);
00029 
00030 //---------------------------------------------------------------------------
00031 long getValue( long id )throw(UException);
00032 void setValue( long id, long val, long supplier = UTypes::DefaultSupplerID )throw(UException);
00033 
00034 long getSensorID(  const std::string& name );
00035 long getObjectID(  const std::string& name );
00036 
00037 std::string getShortName( long id );
00038 std::string getName( long id );
00039 std::string getTextName( long id );
00040 
00041 std::string getConfFileName();
00042 }
00043 //---------------------------------------------------------------------------
00044 #endif
00045 //---------------------------------------------------------------------------