Go to the documentation of this file.
25 #ifndef GOBY_MOOS_TRANSITIONAL_MESSAGE_VAL_H
26 #define GOBY_MOOS_TRANSITIONAL_MESSAGE_VAL_H
38 namespace transitional
82 void set(std::string sval);
97 bool get(std::string& s)
const;
104 bool get(
bool& b)
const;
108 bool get(
long& t)
const;
112 bool get(
double& d)
const;
120 operator bool()
const;
124 operator std::string()
const;
128 operator long()
const;
132 operator int()
const;
136 operator unsigned()
const;
140 operator float()
const;
142 operator std::vector<DCCLMessageVal>()
const;
180 std::ostream&
operator<<(std::ostream& os,
const DCCLMessageVal& mv);
181 std::ostream&
operator<<(std::ostream& os,
const std::vector<DCCLMessageVal>& vm);
The global namespace for the Goby project.
bool empty() const
was this just constructed with DCCLMessageVal() ?
DCCLCppType type() const
what type is the original type of this DCCLMessageVal?
bool operator==(const DCCLMessageVal &mv) const
unsigned precision() const
void set(std::string sval)
set the value with a string (overwrites previous value regardless of type)
std::ostream & operator<<(std::ostream &os, const DCCLMessageVal &mv)
friend std::ostream & operator<<(std::ostream &os, const DCCLMessageVal &mv)
DCCLCppType
Enumeration of C++ types used in DCCL.
bool get(std::string &s) const
extract as std::string (all reasonable casts are done)