24#include <interfaces/NavPathInterface.h>
26#include <core/exceptions/software.h>
56NavPathInterface::NavPathInterface() : Interface()
58 data_size =
sizeof(NavPathInterface_data_t);
59 data_ptr = malloc(data_size);
60 data = (NavPathInterface_data_t *)data_ptr;
61 data_ts = (interface_data_ts_t *)data_ptr;
62 memset(data_ptr, 0, data_size);
63 add_fieldinfo(IFT_STRING,
"path_node_1", 64, data->path_node_1);
64 add_fieldinfo(IFT_STRING,
"path_node_2", 64, data->path_node_2);
65 add_fieldinfo(IFT_STRING,
"path_node_3", 64, data->path_node_3);
66 add_fieldinfo(IFT_STRING,
"path_node_4", 64, data->path_node_4);
67 add_fieldinfo(IFT_STRING,
"path_node_5", 64, data->path_node_5);
68 add_fieldinfo(IFT_STRING,
"path_node_6", 64, data->path_node_6);
69 add_fieldinfo(IFT_STRING,
"path_node_7", 64, data->path_node_7);
70 add_fieldinfo(IFT_STRING,
"path_node_8", 64, data->path_node_8);
71 add_fieldinfo(IFT_STRING,
"path_node_9", 64, data->path_node_9);
72 add_fieldinfo(IFT_STRING,
"path_node_10", 64, data->path_node_10);
73 add_fieldinfo(IFT_STRING,
"path_node_11", 64, data->path_node_11);
74 add_fieldinfo(IFT_STRING,
"path_node_12", 64, data->path_node_12);
75 add_fieldinfo(IFT_STRING,
"path_node_13", 64, data->path_node_13);
76 add_fieldinfo(IFT_STRING,
"path_node_14", 64, data->path_node_14);
77 add_fieldinfo(IFT_STRING,
"path_node_15", 64, data->path_node_15);
78 add_fieldinfo(IFT_STRING,
"path_node_16", 64, data->path_node_16);
79 add_fieldinfo(IFT_STRING,
"path_node_17", 64, data->path_node_17);
80 add_fieldinfo(IFT_STRING,
"path_node_18", 64, data->path_node_18);
81 add_fieldinfo(IFT_STRING,
"path_node_19", 64, data->path_node_19);
82 add_fieldinfo(IFT_STRING,
"path_node_20", 64, data->path_node_20);
83 add_fieldinfo(IFT_STRING,
"path_node_21", 64, data->path_node_21);
84 add_fieldinfo(IFT_STRING,
"path_node_22", 64, data->path_node_22);
85 add_fieldinfo(IFT_STRING,
"path_node_23", 64, data->path_node_23);
86 add_fieldinfo(IFT_STRING,
"path_node_24", 64, data->path_node_24);
87 add_fieldinfo(IFT_STRING,
"path_node_25", 64, data->path_node_25);
88 add_fieldinfo(IFT_STRING,
"path_node_26", 64, data->path_node_26);
89 add_fieldinfo(IFT_STRING,
"path_node_27", 64, data->path_node_27);
90 add_fieldinfo(IFT_STRING,
"path_node_28", 64, data->path_node_28);
91 add_fieldinfo(IFT_STRING,
"path_node_29", 64, data->path_node_29);
92 add_fieldinfo(IFT_STRING,
"path_node_30", 64, data->path_node_30);
93 add_fieldinfo(IFT_STRING,
"path_node_31", 64, data->path_node_31);
94 add_fieldinfo(IFT_STRING,
"path_node_32", 64, data->path_node_32);
95 add_fieldinfo(IFT_STRING,
"path_node_33", 64, data->path_node_33);
96 add_fieldinfo(IFT_STRING,
"path_node_34", 64, data->path_node_34);
97 add_fieldinfo(IFT_STRING,
"path_node_35", 64, data->path_node_35);
98 add_fieldinfo(IFT_STRING,
"path_node_36", 64, data->path_node_36);
99 add_fieldinfo(IFT_STRING,
"path_node_37", 64, data->path_node_37);
100 add_fieldinfo(IFT_STRING,
"path_node_38", 64, data->path_node_38);
101 add_fieldinfo(IFT_STRING,
"path_node_39", 64, data->path_node_39);
102 add_fieldinfo(IFT_STRING,
"path_node_40", 64, data->path_node_40);
103 add_fieldinfo(IFT_UINT32,
"path_length", 1, &data->path_length);
104 unsigned char tmp_hash[] = {0x9d, 0xe, 0xdb, 0x61, 0x65, 0x94, 0x3d, 0x7a, 0x87, 0x95, 0x8f, 0x85, 0x87, 0xa4, 0x5f, 0x61};
109NavPathInterface::~NavPathInterface()
119NavPathInterface::path_node_1()
const
121 return data->path_node_1;
129NavPathInterface::maxlenof_path_node_1()
const
139NavPathInterface::set_path_node_1(
const char * new_path_node_1)
141 set_field(data->path_node_1, new_path_node_1);
149NavPathInterface::path_node_2()
const
151 return data->path_node_2;
159NavPathInterface::maxlenof_path_node_2()
const
169NavPathInterface::set_path_node_2(
const char * new_path_node_2)
171 set_field(data->path_node_2, new_path_node_2);
179NavPathInterface::path_node_3()
const
181 return data->path_node_3;
189NavPathInterface::maxlenof_path_node_3()
const
199NavPathInterface::set_path_node_3(
const char * new_path_node_3)
201 set_field(data->path_node_3, new_path_node_3);
209NavPathInterface::path_node_4()
const
211 return data->path_node_4;
219NavPathInterface::maxlenof_path_node_4()
const
229NavPathInterface::set_path_node_4(
const char * new_path_node_4)
231 set_field(data->path_node_4, new_path_node_4);
239NavPathInterface::path_node_5()
const
241 return data->path_node_5;
249NavPathInterface::maxlenof_path_node_5()
const
259NavPathInterface::set_path_node_5(
const char * new_path_node_5)
261 set_field(data->path_node_5, new_path_node_5);
269NavPathInterface::path_node_6()
const
271 return data->path_node_6;
279NavPathInterface::maxlenof_path_node_6()
const
289NavPathInterface::set_path_node_6(
const char * new_path_node_6)
291 set_field(data->path_node_6, new_path_node_6);
299NavPathInterface::path_node_7()
const
301 return data->path_node_7;
309NavPathInterface::maxlenof_path_node_7()
const
319NavPathInterface::set_path_node_7(
const char * new_path_node_7)
321 set_field(data->path_node_7, new_path_node_7);
329NavPathInterface::path_node_8()
const
331 return data->path_node_8;
339NavPathInterface::maxlenof_path_node_8()
const
349NavPathInterface::set_path_node_8(
const char * new_path_node_8)
351 set_field(data->path_node_8, new_path_node_8);
359NavPathInterface::path_node_9()
const
361 return data->path_node_9;
369NavPathInterface::maxlenof_path_node_9()
const
379NavPathInterface::set_path_node_9(
const char * new_path_node_9)
381 set_field(data->path_node_9, new_path_node_9);
389NavPathInterface::path_node_10()
const
391 return data->path_node_10;
399NavPathInterface::maxlenof_path_node_10()
const
409NavPathInterface::set_path_node_10(
const char * new_path_node_10)
411 set_field(data->path_node_10, new_path_node_10);
419NavPathInterface::path_node_11()
const
421 return data->path_node_11;
429NavPathInterface::maxlenof_path_node_11()
const
439NavPathInterface::set_path_node_11(
const char * new_path_node_11)
441 set_field(data->path_node_11, new_path_node_11);
449NavPathInterface::path_node_12()
const
451 return data->path_node_12;
459NavPathInterface::maxlenof_path_node_12()
const
469NavPathInterface::set_path_node_12(
const char * new_path_node_12)
471 set_field(data->path_node_12, new_path_node_12);
479NavPathInterface::path_node_13()
const
481 return data->path_node_13;
489NavPathInterface::maxlenof_path_node_13()
const
499NavPathInterface::set_path_node_13(
const char * new_path_node_13)
501 set_field(data->path_node_13, new_path_node_13);
509NavPathInterface::path_node_14()
const
511 return data->path_node_14;
519NavPathInterface::maxlenof_path_node_14()
const
529NavPathInterface::set_path_node_14(
const char * new_path_node_14)
531 set_field(data->path_node_14, new_path_node_14);
539NavPathInterface::path_node_15()
const
541 return data->path_node_15;
549NavPathInterface::maxlenof_path_node_15()
const
559NavPathInterface::set_path_node_15(
const char * new_path_node_15)
561 set_field(data->path_node_15, new_path_node_15);
569NavPathInterface::path_node_16()
const
571 return data->path_node_16;
579NavPathInterface::maxlenof_path_node_16()
const
589NavPathInterface::set_path_node_16(
const char * new_path_node_16)
591 set_field(data->path_node_16, new_path_node_16);
599NavPathInterface::path_node_17()
const
601 return data->path_node_17;
609NavPathInterface::maxlenof_path_node_17()
const
619NavPathInterface::set_path_node_17(
const char * new_path_node_17)
621 set_field(data->path_node_17, new_path_node_17);
629NavPathInterface::path_node_18()
const
631 return data->path_node_18;
639NavPathInterface::maxlenof_path_node_18()
const
649NavPathInterface::set_path_node_18(
const char * new_path_node_18)
651 set_field(data->path_node_18, new_path_node_18);
659NavPathInterface::path_node_19()
const
661 return data->path_node_19;
669NavPathInterface::maxlenof_path_node_19()
const
679NavPathInterface::set_path_node_19(
const char * new_path_node_19)
681 set_field(data->path_node_19, new_path_node_19);
689NavPathInterface::path_node_20()
const
691 return data->path_node_20;
699NavPathInterface::maxlenof_path_node_20()
const
709NavPathInterface::set_path_node_20(
const char * new_path_node_20)
711 set_field(data->path_node_20, new_path_node_20);
719NavPathInterface::path_node_21()
const
721 return data->path_node_21;
729NavPathInterface::maxlenof_path_node_21()
const
739NavPathInterface::set_path_node_21(
const char * new_path_node_21)
741 set_field(data->path_node_21, new_path_node_21);
749NavPathInterface::path_node_22()
const
751 return data->path_node_22;
759NavPathInterface::maxlenof_path_node_22()
const
769NavPathInterface::set_path_node_22(
const char * new_path_node_22)
771 set_field(data->path_node_22, new_path_node_22);
779NavPathInterface::path_node_23()
const
781 return data->path_node_23;
789NavPathInterface::maxlenof_path_node_23()
const
799NavPathInterface::set_path_node_23(
const char * new_path_node_23)
801 set_field(data->path_node_23, new_path_node_23);
809NavPathInterface::path_node_24()
const
811 return data->path_node_24;
819NavPathInterface::maxlenof_path_node_24()
const
829NavPathInterface::set_path_node_24(
const char * new_path_node_24)
831 set_field(data->path_node_24, new_path_node_24);
839NavPathInterface::path_node_25()
const
841 return data->path_node_25;
849NavPathInterface::maxlenof_path_node_25()
const
859NavPathInterface::set_path_node_25(
const char * new_path_node_25)
861 set_field(data->path_node_25, new_path_node_25);
869NavPathInterface::path_node_26()
const
871 return data->path_node_26;
879NavPathInterface::maxlenof_path_node_26()
const
889NavPathInterface::set_path_node_26(
const char * new_path_node_26)
891 set_field(data->path_node_26, new_path_node_26);
899NavPathInterface::path_node_27()
const
901 return data->path_node_27;
909NavPathInterface::maxlenof_path_node_27()
const
919NavPathInterface::set_path_node_27(
const char * new_path_node_27)
921 set_field(data->path_node_27, new_path_node_27);
929NavPathInterface::path_node_28()
const
931 return data->path_node_28;
939NavPathInterface::maxlenof_path_node_28()
const
949NavPathInterface::set_path_node_28(
const char * new_path_node_28)
951 set_field(data->path_node_28, new_path_node_28);
959NavPathInterface::path_node_29()
const
961 return data->path_node_29;
969NavPathInterface::maxlenof_path_node_29()
const
979NavPathInterface::set_path_node_29(
const char * new_path_node_29)
981 set_field(data->path_node_29, new_path_node_29);
989NavPathInterface::path_node_30()
const
991 return data->path_node_30;
999NavPathInterface::maxlenof_path_node_30()
const
1009NavPathInterface::set_path_node_30(
const char * new_path_node_30)
1011 set_field(data->path_node_30, new_path_node_30);
1019NavPathInterface::path_node_31()
const
1021 return data->path_node_31;
1029NavPathInterface::maxlenof_path_node_31()
const
1039NavPathInterface::set_path_node_31(
const char * new_path_node_31)
1041 set_field(data->path_node_31, new_path_node_31);
1049NavPathInterface::path_node_32()
const
1051 return data->path_node_32;
1059NavPathInterface::maxlenof_path_node_32()
const
1069NavPathInterface::set_path_node_32(
const char * new_path_node_32)
1071 set_field(data->path_node_32, new_path_node_32);
1079NavPathInterface::path_node_33()
const
1081 return data->path_node_33;
1089NavPathInterface::maxlenof_path_node_33()
const
1099NavPathInterface::set_path_node_33(
const char * new_path_node_33)
1101 set_field(data->path_node_33, new_path_node_33);
1109NavPathInterface::path_node_34()
const
1111 return data->path_node_34;
1119NavPathInterface::maxlenof_path_node_34()
const
1129NavPathInterface::set_path_node_34(
const char * new_path_node_34)
1131 set_field(data->path_node_34, new_path_node_34);
1139NavPathInterface::path_node_35()
const
1141 return data->path_node_35;
1149NavPathInterface::maxlenof_path_node_35()
const
1159NavPathInterface::set_path_node_35(
const char * new_path_node_35)
1161 set_field(data->path_node_35, new_path_node_35);
1169NavPathInterface::path_node_36()
const
1171 return data->path_node_36;
1179NavPathInterface::maxlenof_path_node_36()
const
1189NavPathInterface::set_path_node_36(
const char * new_path_node_36)
1191 set_field(data->path_node_36, new_path_node_36);
1199NavPathInterface::path_node_37()
const
1201 return data->path_node_37;
1209NavPathInterface::maxlenof_path_node_37()
const
1219NavPathInterface::set_path_node_37(
const char * new_path_node_37)
1221 set_field(data->path_node_37, new_path_node_37);
1229NavPathInterface::path_node_38()
const
1231 return data->path_node_38;
1239NavPathInterface::maxlenof_path_node_38()
const
1249NavPathInterface::set_path_node_38(
const char * new_path_node_38)
1251 set_field(data->path_node_38, new_path_node_38);
1259NavPathInterface::path_node_39()
const
1261 return data->path_node_39;
1269NavPathInterface::maxlenof_path_node_39()
const
1279NavPathInterface::set_path_node_39(
const char * new_path_node_39)
1281 set_field(data->path_node_39, new_path_node_39);
1289NavPathInterface::path_node_40()
const
1291 return data->path_node_40;
1299NavPathInterface::maxlenof_path_node_40()
const
1309NavPathInterface::set_path_node_40(
const char * new_path_node_40)
1311 set_field(data->path_node_40, new_path_node_40);
1319NavPathInterface::path_length()
const
1321 return data->path_length;
1329NavPathInterface::maxlenof_path_length()
const
1339NavPathInterface::set_path_length(
const uint32_t new_path_length)
1341 set_field(data->path_length, new_path_length);
1346NavPathInterface::create_message(
const char *type)
const
1349 "message type for this interface type.", type);
1362 type(), other->
type());
1364 memcpy(data, oi->data,
sizeof(NavPathInterface_data_t));
1368NavPathInterface::enum_tostring(
const char *enumtype,
int val)
const
1379NavPathInterface::message_valid(
const Message *message)
const
Base class for all Fawkes BlackBoard interfaces.
const char * type() const
Get type of interface.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
NavPathInterface Fawkes BlackBoard Interface.
Fawkes library namespace.