UniSet  2.8.0
SMonitor.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 SMonitor_H_
18 #define SMonitor_H_
19 // -----------------------------------------------------------------------------
20 #include <list>
21 #include <UniSetObject.h>
22 #include "UniSetTypes.h"
23 // -----------------------------------------------------------------------------
24 namespace uniset
25 {
26 
27  class SMonitor:
28  public UniSetObject
29  {
30  public:
31 
33  ~SMonitor();
34 
35  // -----
36  protected:
37  virtual void sysCommand( const uniset::SystemMessage* sm ) override;
38  virtual void sensorInfo( const uniset::SensorMessage* si ) override;
39  SMonitor();
40 
41  private:
42  typedef std::list<uniset::ParamSInfo> MyIDList;
43  MyIDList lst;
44  std::string script;
45  };
46  // -------------------------------------------------------------------------
47 } // end of uniset namespace
48 // -----------------------------------------------------------------------------
49 #endif
50 // -----------------------------------------------------------------------------
Definition: CommonEventLoop.h:14
Definition: MessageType.h:170
Definition: SMonitor.h:27
Definition: UniSetObject.h:73
Definition: MessageType.h:126
long ObjectId
Definition: UniSetTypes_i.idl:30