supla-device
Loading...
Searching...
No Matches
runtime.h
1/*
2 Copyright (C) AC SOFTWARE SP. Z O.O
3
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Place - Suite 330, Boston, MA 02111-1307, USA.
17 */
18
19#ifndef SRC_SUPLA_SUPLET_RUNTIME_H_
20#define SRC_SUPLA_SUPLET_RUNTIME_H_
21
22#include <stdint.h>
23#include <supla/element.h>
24#include <supla/suplet/definition.h>
25#include <supla/suplet/storage.h>
26
27namespace Supla {
28namespace Suplet {
29
30class Runtime {
31 public:
32 static bool validateDefinition(const Definition &definition);
33 static Supla::Element *createElement(const ChannelDefinition &channel,
34 const InstanceRecord &instance);
35 static Supla::Element *createElement(const Definition &definition,
36 const ChannelDefinition &channel,
37 const InstanceRecord &instance);
38 static bool createElements(const Definition &definition,
39 const InstanceRecord &instance,
40 Supla::Element **created,
41 uint8_t createdSize,
42 ChannelMap *createdChannelMap = nullptr);
43};
44
45} // namespace Suplet
46} // namespace Supla
47
48#endif // SRC_SUPLA_SUPLET_RUNTIME_H_
Base class for all elements of SuplaDevice.
Definition element.h:42
Definition channel_map.h:40
Definition runtime.h:30
Definition definition.h:101
Definition definition.h:138
Definition storage.h:33