Go to the documentation of this file.
25 #ifndef GOBY_MOOS_TRANSITIONAL_MESSAGE_H
26 #define GOBY_MOOS_TRANSITIONAL_MESSAGE_H
58 namespace transitional
73 template <
typename T>
void set_id(
const T& t) {
set_id(util::as<unsigned>(t)); }
113 std::string
name()
const {
return name_; }
114 unsigned id()
const {
return id_; }
115 unsigned size()
const {
return size_; }
121 std::string
in_var()
const {
return in_var_; }
122 std::string
out_var()
const {
return out_var_; }
124 unsigned repeat()
const {
return repeat_; }
130 std::vector<std::shared_ptr<DCCLMessageVar> >&
layout() {
return layout_; }
131 std::vector<std::shared_ptr<DCCLMessageVar> >&
header() {
return header_; }
133 const std::vector<std::shared_ptr<DCCLMessageVar> >&
layout_const()
const {
return layout_; }
134 const std::vector<std::shared_ptr<DCCLMessageVar> >&
header_const()
const {
return header_; }
136 std::vector<DCCLPublish>&
publishes() {
return publishes_; }
141 const google::protobuf::Descriptor*
descriptor() {
return descriptor_; }
174 unsigned trigger_number_;
180 double trigger_time_;
182 bool repeat_enabled_;
186 std::string trigger_type_;
187 std::string trigger_var_;
188 std::string trigger_mandatory_;
190 std::string out_var_;
192 std::vector<std::shared_ptr<DCCLMessageVar> > layout_;
193 std::vector<std::shared_ptr<DCCLMessageVar> > header_;
195 std::vector<DCCLPublish> publishes_;
197 const google::protobuf::Descriptor* descriptor_;
void set_trigger_time(double trigger_time)
void set_repeat_enabled(unsigned repeat_enabled)
std::map< std::string, std::string > message_var_names() const
DCCLMessage & operator++()
void set_trigger(const std::string &trigger_type)
The global namespace for the Goby project.
void add_message_var(const std::string &type)
void set_name(const std::string &name)
std::vector< DCCLPublish > & publishes()
const DCCLMessage operator++(int)
std::string trigger_var() const
void write_schema_to_dccl2(std::ofstream *proto_file)
std::string trigger_mandatory() const
unsigned calc_total_size()
const std::vector< std::shared_ptr< DCCLMessageVar > > & header_const() const
std::string trigger_type() const
DCCLMessageVar & header_var(moos::transitional::DCCLHeaderPart p)
void set_trigger_time(const T &t)
void set_head_defaults(std::map< std::string, std::vector< DCCLMessageVal > > &in, unsigned modem_id)
void set_trigger_mandatory(const std::string &trigger_mandatory)
std::string out_var() const
std::vector< std::shared_ptr< DCCLMessageVar > > & header()
DCCLPublish & last_publish()
const std::vector< DCCLPublish > & publishes_const() const
void set_out_var(const std::string &out_var)
DCCLMessageVar & last_message_var()
std::vector< std::shared_ptr< DCCLMessageVar > > & layout()
type
Generic JSON types used in JWTs.
std::string in_var() const
void set_trigger_var(const std::string &trigger_var)
const std::vector< std::shared_ptr< DCCLMessageVar > > & layout_const() const
double trigger_time() const
unsigned trigger_number() const
void set_size(const T &t)
void set_repeat_enabled(const T &t)
void set_in_var(const std::string &in_var)
void set_descriptor(const google::protobuf::Descriptor *descriptor)
void set_size(unsigned size)
const google::protobuf::Descriptor * descriptor()
void set_repeat_array_length()
std::shared_ptr< DCCLMessageVar > name2message_var(const std::string &name) const
bool repeat_enabled() const