UniSet  2.24.2
PyUInterface.h
1 /*
2  * Copyright (c) 2015 Pavel Vainerman.
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as
6  * published by the Free Software Foundation, version 2.1.
7  *
8  * This program is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  * Lesser General Lesser Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  */
16 // -------------------------------------------------------------------------
17 #ifndef pyUInterface_H_
18 #define pyUInterface_H_
19 // --------------------------------------------------------------------------
20 #include <string>
21 #include "UTypes.h"
22 #include "UExceptions.h"
23 // --------------------------------------------------------------------------
24 #pragma GCC diagnostic ignored "-Wunused-function"
25 #pragma GCC diagnostic ignored "-Wdeprecated"
26 // --------------------------------------------------------------------------
27 namespace pyUInterface
28 {
29  void uniset_init_params( UTypes::Params* p, const std::string& xmlfile ); // throw(UException);
30  void uniset_init( int argc, char** argv, const std::string& xmlfile ); // throw(UException);
31  void uniset_activate_objects(); // throw(UException);
32 
33  //---------------------------------------------------------------------------
34  long getValue( long id ); // throw(UException);
35  void setValue( long id, long val, long supplier = UTypes::DefaultSupplerID ); // throw(UException);
36 
37  long getSensorID( const std::string& name );
38  long getObjectID( const std::string& name );
39 
40  std::string getShortName( long id );
41  std::string getName( long id );
42  std::string getTextName( long id );
43 
44  std::string getConfFileName();
45 }
46 //---------------------------------------------------------------------------
47 #endif
48 //---------------------------------------------------------------------------