23 #ifndef XMLTags20091211H 24 #define XMLTags20091211H 26 #include "goby/moos/transitional/xml/xerces_strings.h" 28 #include <boost/assign.hpp> 32 namespace transitional
49 tag_incoming_hex_moos_var,
61 tag_outgoing_hex_moos_var,
84 tag_priority_time_const,
89 static void initialize_tags(std::map<std::string, Tag>& tags_map)
91 boost::assign::insert(tags_map)(
"all", tag_all)(
"array_length", tag_array_length)(
92 "bool", tag_bool)(
"delta_encode", tag_delta_encode)(
"enum", tag_enum)(
93 "max_delta", tag_max_delta)(
"float", tag_float)(
"format", tag_format)(
"hex", tag_hex)(
94 "id", tag_id)(
"incoming_hex_moos_var", tag_incoming_hex_moos_var)(
"int", tag_int)(
95 "key", tag_key)(
"layout", tag_layout)(
"num_bytes", tag_num_bytes)(
96 "max_length", tag_max_length)(
"max", tag_max)(
"message_var", tag_message_var)(
97 "message", tag_message)(
"min", tag_min)(
"moos_var", tag_moos_var)(
"name", tag_name)(
98 "outgoing_hex_moos_var", tag_outgoing_hex_moos_var)(
"precision", tag_precision)(
99 "publish", tag_publish)(
"publish_var", tag_publish_var)(
"repeat", tag_repeat)(
100 "size", tag_size)(
"source", tag_source)(
"src_var", tag_src_var)(
"static", tag_static)(
101 "string", tag_string)(
"trigger_moos_var", tag_trigger_var)(
"trigger_var", tag_trigger_var)(
102 "trigger_time", tag_trigger_time)(
"trigger", tag_trigger)(
"value", tag_value)(
103 "time", tag_time)(
"src_id", tag_src_id)(
"dest_id", tag_dest_id)(
104 "destination_var", tag_destination_var)(
"destination_moos_var", tag_destination_var)(
105 "ack", tag_ack)(
"blackout_time", tag_blackout_time)(
"max_queue", tag_max_queue)(
106 "newest_first", tag_newest_first)(
"priority_base", tag_priority_base)(
107 "priority_time_const", tag_priority_time_const)(
"ttl", tag_ttl)(
"value_base",
111 inline bool in_message_var(std::set<Tag>& parents)
113 if (parents.count(tag_hex))
115 else if (parents.count(tag_int))
117 else if (parents.count(tag_string))
119 else if (parents.count(tag_float))
121 else if (parents.count(tag_bool))
123 else if (parents.count(tag_static))
125 else if (parents.count(tag_enum))
130 inline bool in_header_var(std::set<Tag>& parents)
132 if (parents.count(tag_time))
134 else if (parents.count(tag_src_id))
136 else if (parents.count(tag_dest_id))
142 inline bool in_publish(std::set<Tag>& parents) {
return parents.count(tag_publish); }
The global namespace for the Goby project.