libhomegear-base  0.7
Base library for Homegear and Homegear family modules.
RunProgram.h
Go to the documentation of this file.
1 /* Copyright 2013-2019 Homegear GmbH
2  *
3  * libhomegear-base is free software: you can redistribute it and/or
4  * modify it under the terms of the GNU Lesser General Public License as
5  * published by the Free Software Foundation, either version 3 of the
6  * License, or (at your option) any later version.
7  *
8  * libhomegear-base is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public
14  * License along with libhomegear-base. If not, see
15  * <http://www.gnu.org/licenses/>.
16  *
17  * In addition, as a special exception, the copyright holders give
18  * permission to link the code of portions of this program with the
19  * OpenSSL library under certain conditions as described in each
20  * individual source file, and distribute linked combinations
21  * including the two.
22  * You must obey the GNU Lesser General Public License in all respects
23  * for all of the code used other than OpenSSL. If you modify
24  * file(s) with this exception, you may extend this exception to your
25  * version of the file(s), but you are not obligated to do so. If you
26  * do not wish to do so, delete this exception statement from your
27  * version. If you delete this exception statement from all source
28  * files in the program, then also delete it here.
29 */
30 
31 #ifndef RUNPROGRAM_H_
32 #define RUNPROGRAM_H_
33 
34 #include "JsonPayload.h"
35 #include "BinaryPayload.h"
36 #include "Parameter.h"
37 #include <string>
38 #include <memory>
39 #include <vector>
40 #include <map>
41 
42 namespace BaseLib
43 {
44 
45 class SharedObjects;
46 
47 namespace DeviceDescription
48 {
49 
50 class RunProgram;
51 
52 typedef std::shared_ptr<RunProgram> PRunProgram;
53 
55 {
56 public:
57  struct StartType
58  {
60  };
61 
64  virtual ~RunProgram() {}
65 
66  //Elements
67  std::string path;
68  std::vector<std::string> arguments;
70  uint32_t interval = 0;
71  std::string script;
72  std::string script2;
73 
74 protected:
76 };
77 }
78 }
79 
80 #endif
This is the base library main class.
Definition: BaseLib.h:95
std::shared_ptr< RunProgram > PRunProgram
Definition: RunProgram.h:50
Definition: BaseLib.cpp:34
BaseLib::SharedObjects * _bl
Definition: RunProgram.h:75
RunProgram(BaseLib::SharedObjects *baseLib)
Definition: RunProgram.cpp:39
std::string script2
Definition: RunProgram.h:72
std::string script
Definition: RunProgram.h:71
std::string path
Definition: RunProgram.h:67
virtual ~RunProgram()
Definition: RunProgram.h:64
std::vector< std::string > arguments
Definition: RunProgram.h:68
StartType::Enum startType
Definition: RunProgram.h:69
Definition: RunProgram.h:54
Class representing a node of XML document.
Definition: rapidxml.h:539