Motorcortex Core  version: 2.7.6
MyData.h
1 /*
2  * Developer : Alexey Zakharov (alexey.zakharov@vectioneer.com)
3  * All rights reserved. Copyright (c) 2014-2021 VECTIONEER.
4  */
5 
6 #ifndef MOTORCORTEX_CORE_MYDATA_H
7 #define MOTORCORTEX_CORE_MYDATA_H
8 
9 #include "visit_struct_intrusive.h"
10 #include <array>
11 
12 struct Foo1 {
13  BEGIN_VISITABLES(Foo1);
14  typedef std::array<double, 5> std_array5;
15  typedef double array5[5];
16  VISITABLE(bool, b);
17  VISITABLE(int, i);
18  VISITABLE(double, f);
19  VISITABLE(double, f1);
20  VISITABLE(std_array5, f2);
21  VISITABLE(array5, f3);
22  END_VISITABLES;
23 };
24 
25 struct Foo2 {
26  BEGIN_VISITABLES(Foo2);
27  typedef std::array<double, 5> std_array5;
28  typedef std::array<Foo1, 5> foo1_array5;
29  VISITABLE(double, simple_type);
30  VISITABLE(std_array5, simple_array);
31  VISITABLE(Foo1, visitable_type);
32  VISITABLE(foo1_array5, visitable_array);
33  END_VISITABLES;
34 };
35 
36 struct Foo {
37  BEGIN_VISITABLES(Foo);
38  typedef std::array<double, 5> std_array5;
39  typedef double array5[5];
40  typedef Foo1 foo5[5];
41  VISITABLE(bool, b);
42  VISITABLE(int, i);
43  VISITABLE(double, f);
44  VISITABLE(double, f1);
45  VISITABLE(std_array5, f2);
46  VISITABLE(array5, f3);
47  VISITABLE(Foo1, f4);
48  VISITABLE(foo5, f5);
49  END_VISITABLES;
50 };
51 
52 #endif // MOTORCORTEX_CORE_MYDATA_H
Foo
Definition: MyData.h:36
Foo1
Definition: MyData.h:12
Foo2
Definition: MyData.h:25