Fawkes API  Fawkes Development Version
NavPathInterface.h
1 
2 /***************************************************************************
3  * NavPathInterface.h - Fawkes BlackBoard Interface - NavPathInterface
4  *
5  * Templated created: Thu Oct 12 10:49:19 2006
6  * Copyright 2014 Sebastian Reuter
7  *
8  ****************************************************************************/
9 
10 /* This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version. A runtime exception applies to
14  * this software (see LICENSE.GPL_WRE file mentioned below for details).
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU Library General Public License for more details.
20  *
21  * Read the full text in the LICENSE.GPL_WRE file in the doc directory.
22  */
23 
24 #ifndef __INTERFACES_NAVPATHINTERFACE_H_
25 #define __INTERFACES_NAVPATHINTERFACE_H_
26 
27 #include <interface/interface.h>
28 #include <interface/message.h>
29 #include <interface/field_iterator.h>
30 
31 namespace fawkes {
32 
34 {
35  /// @cond INTERNALS
36  INTERFACE_MGMT_FRIENDS(NavPathInterface)
37  /// @endcond
38  public:
39  /* constants */
40 
41  private:
42  /** Internal data storage, do NOT modify! */
43  typedef struct __attribute__((packed)) {
44  int64_t timestamp_sec; /**< Interface Unix timestamp, seconds */
45  int64_t timestamp_usec; /**< Interface Unix timestamp, micro-seconds */
46  char path_node_1[64]; /**< Path Node */
47  char path_node_2[64]; /**< Path Node */
48  char path_node_3[64]; /**< Path Node */
49  char path_node_4[64]; /**< Path Node */
50  char path_node_5[64]; /**< Path Node */
51  char path_node_6[64]; /**< Path Node */
52  char path_node_7[64]; /**< Path Node */
53  char path_node_8[64]; /**< Path Node */
54  char path_node_9[64]; /**< Path Node */
55  char path_node_10[64]; /**< Path Node */
56  char path_node_11[64]; /**< Path Node */
57  char path_node_12[64]; /**< Path Node */
58  char path_node_13[64]; /**< Path Node */
59  char path_node_14[64]; /**< Path Node */
60  char path_node_15[64]; /**< Path Node */
61  char path_node_16[64]; /**< Path Node */
62  char path_node_17[64]; /**< Path Node */
63  char path_node_18[64]; /**< Path Node */
64  char path_node_19[64]; /**< Path Node */
65  char path_node_20[64]; /**< Path Node */
66  char path_node_21[64]; /**< Path Node */
67  char path_node_22[64]; /**< Path Node */
68  char path_node_23[64]; /**< Path Node */
69  char path_node_24[64]; /**< Path Node */
70  char path_node_25[64]; /**< Path Node */
71  char path_node_26[64]; /**< Path Node */
72  char path_node_27[64]; /**< Path Node */
73  char path_node_28[64]; /**< Path Node */
74  char path_node_29[64]; /**< Path Node */
75  char path_node_30[64]; /**< Path Node */
76  char path_node_31[64]; /**< Path Node */
77  char path_node_32[64]; /**< Path Node */
78  char path_node_33[64]; /**< Path Node */
79  char path_node_34[64]; /**< Path Node */
80  char path_node_35[64]; /**< Path Node */
81  char path_node_36[64]; /**< Path Node */
82  char path_node_37[64]; /**< Path Node */
83  char path_node_38[64]; /**< Path Node */
84  char path_node_39[64]; /**< Path Node */
85  char path_node_40[64]; /**< Path Node */
86  uint32_t path_length; /**< Length of path */
87  } NavPathInterface_data_t;
88 
89  NavPathInterface_data_t *data;
90 
91  public:
92  /* messages */
93  virtual bool message_valid(const Message *message) const;
94  private:
97 
98  public:
99  /* Methods */
100  char * path_node_1() const;
101  void set_path_node_1(const char * new_path_node_1);
102  size_t maxlenof_path_node_1() const;
103  char * path_node_2() const;
104  void set_path_node_2(const char * new_path_node_2);
105  size_t maxlenof_path_node_2() const;
106  char * path_node_3() const;
107  void set_path_node_3(const char * new_path_node_3);
108  size_t maxlenof_path_node_3() const;
109  char * path_node_4() const;
110  void set_path_node_4(const char * new_path_node_4);
111  size_t maxlenof_path_node_4() const;
112  char * path_node_5() const;
113  void set_path_node_5(const char * new_path_node_5);
114  size_t maxlenof_path_node_5() const;
115  char * path_node_6() const;
116  void set_path_node_6(const char * new_path_node_6);
117  size_t maxlenof_path_node_6() const;
118  char * path_node_7() const;
119  void set_path_node_7(const char * new_path_node_7);
120  size_t maxlenof_path_node_7() const;
121  char * path_node_8() const;
122  void set_path_node_8(const char * new_path_node_8);
123  size_t maxlenof_path_node_8() const;
124  char * path_node_9() const;
125  void set_path_node_9(const char * new_path_node_9);
126  size_t maxlenof_path_node_9() const;
127  char * path_node_10() const;
128  void set_path_node_10(const char * new_path_node_10);
129  size_t maxlenof_path_node_10() const;
130  char * path_node_11() const;
131  void set_path_node_11(const char * new_path_node_11);
132  size_t maxlenof_path_node_11() const;
133  char * path_node_12() const;
134  void set_path_node_12(const char * new_path_node_12);
135  size_t maxlenof_path_node_12() const;
136  char * path_node_13() const;
137  void set_path_node_13(const char * new_path_node_13);
138  size_t maxlenof_path_node_13() const;
139  char * path_node_14() const;
140  void set_path_node_14(const char * new_path_node_14);
141  size_t maxlenof_path_node_14() const;
142  char * path_node_15() const;
143  void set_path_node_15(const char * new_path_node_15);
144  size_t maxlenof_path_node_15() const;
145  char * path_node_16() const;
146  void set_path_node_16(const char * new_path_node_16);
147  size_t maxlenof_path_node_16() const;
148  char * path_node_17() const;
149  void set_path_node_17(const char * new_path_node_17);
150  size_t maxlenof_path_node_17() const;
151  char * path_node_18() const;
152  void set_path_node_18(const char * new_path_node_18);
153  size_t maxlenof_path_node_18() const;
154  char * path_node_19() const;
155  void set_path_node_19(const char * new_path_node_19);
156  size_t maxlenof_path_node_19() const;
157  char * path_node_20() const;
158  void set_path_node_20(const char * new_path_node_20);
159  size_t maxlenof_path_node_20() const;
160  char * path_node_21() const;
161  void set_path_node_21(const char * new_path_node_21);
162  size_t maxlenof_path_node_21() const;
163  char * path_node_22() const;
164  void set_path_node_22(const char * new_path_node_22);
165  size_t maxlenof_path_node_22() const;
166  char * path_node_23() const;
167  void set_path_node_23(const char * new_path_node_23);
168  size_t maxlenof_path_node_23() const;
169  char * path_node_24() const;
170  void set_path_node_24(const char * new_path_node_24);
171  size_t maxlenof_path_node_24() const;
172  char * path_node_25() const;
173  void set_path_node_25(const char * new_path_node_25);
174  size_t maxlenof_path_node_25() const;
175  char * path_node_26() const;
176  void set_path_node_26(const char * new_path_node_26);
177  size_t maxlenof_path_node_26() const;
178  char * path_node_27() const;
179  void set_path_node_27(const char * new_path_node_27);
180  size_t maxlenof_path_node_27() const;
181  char * path_node_28() const;
182  void set_path_node_28(const char * new_path_node_28);
183  size_t maxlenof_path_node_28() const;
184  char * path_node_29() const;
185  void set_path_node_29(const char * new_path_node_29);
186  size_t maxlenof_path_node_29() const;
187  char * path_node_30() const;
188  void set_path_node_30(const char * new_path_node_30);
189  size_t maxlenof_path_node_30() const;
190  char * path_node_31() const;
191  void set_path_node_31(const char * new_path_node_31);
192  size_t maxlenof_path_node_31() const;
193  char * path_node_32() const;
194  void set_path_node_32(const char * new_path_node_32);
195  size_t maxlenof_path_node_32() const;
196  char * path_node_33() const;
197  void set_path_node_33(const char * new_path_node_33);
198  size_t maxlenof_path_node_33() const;
199  char * path_node_34() const;
200  void set_path_node_34(const char * new_path_node_34);
201  size_t maxlenof_path_node_34() const;
202  char * path_node_35() const;
203  void set_path_node_35(const char * new_path_node_35);
204  size_t maxlenof_path_node_35() const;
205  char * path_node_36() const;
206  void set_path_node_36(const char * new_path_node_36);
207  size_t maxlenof_path_node_36() const;
208  char * path_node_37() const;
209  void set_path_node_37(const char * new_path_node_37);
210  size_t maxlenof_path_node_37() const;
211  char * path_node_38() const;
212  void set_path_node_38(const char * new_path_node_38);
213  size_t maxlenof_path_node_38() const;
214  char * path_node_39() const;
215  void set_path_node_39(const char * new_path_node_39);
216  size_t maxlenof_path_node_39() const;
217  char * path_node_40() const;
218  void set_path_node_40(const char * new_path_node_40);
219  size_t maxlenof_path_node_40() const;
220  uint32_t path_length() const;
221  void set_path_length(const uint32_t new_path_length);
222  size_t maxlenof_path_length() const;
223  virtual Message * create_message(const char *type) const;
224 
225  virtual void copy_values(const Interface *other);
226  virtual const char * enum_tostring(const char *enumtype, int val) const;
227 
228 };
229 
230 } // end namespace fawkes
231 
232 #endif
size_t maxlenof_path_node_12() const
Get maximum length of path_node_12 value.
char * path_node_16() const
Get path_node_16 value.
virtual Message * create_message(const char *type) const
Create message based on type name.
size_t maxlenof_path_node_3() const
Get maximum length of path_node_3 value.
void set_path_node_37(const char *new_path_node_37)
Set path_node_37 value.
size_t maxlenof_path_node_9() const
Get maximum length of path_node_9 value.
char * path_node_22() const
Get path_node_22 value.
void set_path_node_29(const char *new_path_node_29)
Set path_node_29 value.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
size_t maxlenof_path_node_34() const
Get maximum length of path_node_34 value.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
Definition: message.h:44
void set_path_node_26(const char *new_path_node_26)
Set path_node_26 value.
void set_path_node_14(const char *new_path_node_14)
Set path_node_14 value.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
size_t maxlenof_path_node_17() const
Get maximum length of path_node_17 value.
void set_path_node_16(const char *new_path_node_16)
Set path_node_16 value.
char * path_node_38() const
Get path_node_38 value.
void set_path_node_1(const char *new_path_node_1)
Set path_node_1 value.
void set_path_node_15(const char *new_path_node_15)
Set path_node_15 value.
char * path_node_12() const
Get path_node_12 value.
void set_path_node_27(const char *new_path_node_27)
Set path_node_27 value.
void set_path_node_19(const char *new_path_node_19)
Set path_node_19 value.
size_t maxlenof_path_node_27() const
Get maximum length of path_node_27 value.
char * path_node_18() const
Get path_node_18 value.
Fawkes library namespace.
char * path_node_15() const
Get path_node_15 value.
char * path_node_28() const
Get path_node_28 value.
void set_path_node_6(const char *new_path_node_6)
Set path_node_6 value.
size_t maxlenof_path_length() const
Get maximum length of path_length value.
size_t maxlenof_path_node_16() const
Get maximum length of path_node_16 value.
size_t maxlenof_path_node_7() const
Get maximum length of path_node_7 value.
char * path_node_2() const
Get path_node_2 value.
char * path_node_10() const
Get path_node_10 value.
void set_path_node_18(const char *new_path_node_18)
Set path_node_18 value.
size_t maxlenof_path_node_38() const
Get maximum length of path_node_38 value.
void set_path_node_30(const char *new_path_node_30)
Set path_node_30 value.
char * path_node_5() const
Get path_node_5 value.
void set_path_node_25(const char *new_path_node_25)
Set path_node_25 value.
char * path_node_25() const
Get path_node_25 value.
size_t maxlenof_path_node_15() const
Get maximum length of path_node_15 value.
void set_path_node_36(const char *new_path_node_36)
Set path_node_36 value.
Base class for all Fawkes BlackBoard interfaces.
Definition: interface.h:79
void set_path_node_11(const char *new_path_node_11)
Set path_node_11 value.
char * path_node_35() const
Get path_node_35 value.
char * path_node_29() const
Get path_node_29 value.
char * path_node_14() const
Get path_node_14 value.
void set_path_node_24(const char *new_path_node_24)
Set path_node_24 value.
void set_path_node_28(const char *new_path_node_28)
Set path_node_28 value.
void set_path_node_22(const char *new_path_node_22)
Set path_node_22 value.
size_t maxlenof_path_node_1() const
Get maximum length of path_node_1 value.
void set_path_node_35(const char *new_path_node_35)
Set path_node_35 value.
char * path_node_8() const
Get path_node_8 value.
size_t maxlenof_path_node_28() const
Get maximum length of path_node_28 value.
char * path_node_39() const
Get path_node_39 value.
char * path_node_4() const
Get path_node_4 value.
void set_path_node_32(const char *new_path_node_32)
Set path_node_32 value.
char * path_node_30() const
Get path_node_30 value.
char * path_node_24() const
Get path_node_24 value.
void set_path_node_31(const char *new_path_node_31)
Set path_node_31 value.
void set_path_node_13(const char *new_path_node_13)
Set path_node_13 value.
size_t maxlenof_path_node_25() const
Get maximum length of path_node_25 value.
size_t maxlenof_path_node_24() const
Get maximum length of path_node_24 value.
const char * type() const
Get type of interface.
Definition: interface.cpp:651
char * path_node_1() const
Get path_node_1 value.
void set_path_node_17(const char *new_path_node_17)
Set path_node_17 value.
size_t maxlenof_path_node_6() const
Get maximum length of path_node_6 value.
void set_path_node_40(const char *new_path_node_40)
Set path_node_40 value.
void set_path_node_38(const char *new_path_node_38)
Set path_node_38 value.
char * path_node_23() const
Get path_node_23 value.
char * path_node_17() const
Get path_node_17 value.
void set_path_node_12(const char *new_path_node_12)
Set path_node_12 value.
char * path_node_26() const
Get path_node_26 value.
char * path_node_37() const
Get path_node_37 value.
size_t maxlenof_path_node_29() const
Get maximum length of path_node_29 value.
char * path_node_34() const
Get path_node_34 value.
char * path_node_7() const
Get path_node_7 value.
char * path_node_20() const
Get path_node_20 value.
void set_path_node_2(const char *new_path_node_2)
Set path_node_2 value.
size_t maxlenof_path_node_21() const
Get maximum length of path_node_21 value.
void set_path_length(const uint32_t new_path_length)
Set path_length value.
size_t maxlenof_path_node_23() const
Get maximum length of path_node_23 value.
size_t maxlenof_path_node_14() const
Get maximum length of path_node_14 value.
char * path_node_21() const
Get path_node_21 value.
char * path_node_33() const
Get path_node_33 value.
char * path_node_3() const
Get path_node_3 value.
char * path_node_13() const
Get path_node_13 value.
void set_path_node_10(const char *new_path_node_10)
Set path_node_10 value.
char * path_node_32() const
Get path_node_32 value.
size_t maxlenof_path_node_10() const
Get maximum length of path_node_10 value.
void set_path_node_4(const char *new_path_node_4)
Set path_node_4 value.
size_t maxlenof_path_node_20() const
Get maximum length of path_node_20 value.
size_t maxlenof_path_node_31() const
Get maximum length of path_node_31 value.
size_t maxlenof_path_node_35() const
Get maximum length of path_node_35 value.
size_t maxlenof_path_node_18() const
Get maximum length of path_node_18 value.
void set_path_node_9(const char *new_path_node_9)
Set path_node_9 value.
size_t maxlenof_path_node_30() const
Get maximum length of path_node_30 value.
char * path_node_31() const
Get path_node_31 value.
char * path_node_9() const
Get path_node_9 value.
size_t maxlenof_path_node_8() const
Get maximum length of path_node_8 value.
char * path_node_27() const
Get path_node_27 value.
size_t maxlenof_path_node_19() const
Get maximum length of path_node_19 value.
size_t maxlenof_path_node_13() const
Get maximum length of path_node_13 value.
char * path_node_11() const
Get path_node_11 value.
size_t maxlenof_path_node_4() const
Get maximum length of path_node_4 value.
size_t maxlenof_path_node_33() const
Get maximum length of path_node_33 value.
char * path_node_40() const
Get path_node_40 value.
void set_path_node_34(const char *new_path_node_34)
Set path_node_34 value.
size_t maxlenof_path_node_32() const
Get maximum length of path_node_32 value.
void set_path_node_33(const char *new_path_node_33)
Set path_node_33 value.
void set_path_node_20(const char *new_path_node_20)
Set path_node_20 value.
void set_path_node_21(const char *new_path_node_21)
Set path_node_21 value.
uint32_t path_length() const
Get path_length value.
void set_path_node_8(const char *new_path_node_8)
Set path_node_8 value.
void set_path_node_7(const char *new_path_node_7)
Set path_node_7 value.
size_t maxlenof_path_node_39() const
Get maximum length of path_node_39 value.
void set_path_node_23(const char *new_path_node_23)
Set path_node_23 value.
NavPathInterface Fawkes BlackBoard Interface.
void set_path_node_5(const char *new_path_node_5)
Set path_node_5 value.
void set_path_node_39(const char *new_path_node_39)
Set path_node_39 value.
size_t maxlenof_path_node_5() const
Get maximum length of path_node_5 value.
void set_path_node_3(const char *new_path_node_3)
Set path_node_3 value.
char * path_node_36() const
Get path_node_36 value.
char * path_node_19() const
Get path_node_19 value.
char * path_node_6() const
Get path_node_6 value.
size_t maxlenof_path_node_40() const
Get maximum length of path_node_40 value.
size_t maxlenof_path_node_36() const
Get maximum length of path_node_36 value.
virtual void copy_values(const Interface *other)
Copy values from other interface.
size_t maxlenof_path_node_22() const
Get maximum length of path_node_22 value.
size_t maxlenof_path_node_2() const
Get maximum length of path_node_2 value.
size_t maxlenof_path_node_26() const
Get maximum length of path_node_26 value.
size_t maxlenof_path_node_37() const
Get maximum length of path_node_37 value.
size_t maxlenof_path_node_11() const
Get maximum length of path_node_11 value.