22 #include "goby/acomms/dccl/dccl.h" 23 #include "goby/moos/transitional/dccl_transitional.h" 29 using goby::acomms::operator<<;
30 using goby::transitional::operator<<;
32 int main(
int argc,
char* argv[])
37 std::cout <<
"loading xml file: " << DCCL_EXAMPLES_DIR
"transitional1/test.xml" << std::endl;
42 cfg.mutable_transitional_cfg()->add_message_file()->set_path(DCCL_EXAMPLES_DIR
43 "/transitional1/test.xml");
45 transitional_dccl.convert_to_v2_representation(&cfg);
47 std::cout << cfg.DebugString() << std::endl;
49 std::cout <<
"all tests passed" << std::endl;
provides an API to the Transitional Dynamic CCL Codec (looks like DCCLv1, but calls DCCLv2)...
void set_name(const std::string &s)
Set the name of the application that the logger is serving.
common::FlexOstream glog
Access the Goby logger through this object.
The global namespace for the Goby project.
void add_stream(logger::Verbosity verbosity=logger::VERBOSE, std::ostream *os=0)
Attach a stream object (e.g. std::cout, std::ofstream, ...) to the logger with desired verbosity...