4S Device Communication Module Collection  Version 0.6-SNAPSHOT
Full documentation of the modules in the 4SDC collection (aimed at 4SDC module developers)
core.h
Go to the documentation of this file.
1 /*
2  * Copyright 2014-2015 The 4S Foundation (www.4s-online.dk)
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
34 #ifndef CORE_H
35 #define CORE_H
36 
37 #include "FSYS/basemsg.h"
38 #include <string>
39 
40 namespace fsdc
41 {
42 
49 class Core
50 {
51 
52 public:
53 
56  public:
57  uint16_t dataType;
58  };
59 
62  public:
63  uint16_t dataType;
64  };
65 
67  class DataAvailable : public FSYS::BaseMsg {
68  public:
69  // The device type the data is comming from
70  uint16_t dataType;
71  // A JSON string with the data
72  std::string data;
73  };
74 
75 };
76 
77 } // End namespace
78 
79 
80 #endif // CORE_H
81 
4SDC Core class
Definition: core.h:49
Definition: core.h:67
The BaseMsg class is the base class for all messages.
Definition: basemsg.h:54
Contains interface declaration for the FSYS::BaseMsg class.
Definition: core.h:61
Definition: core.h:40
Definition: core.h:55