defines a DCCL value  
 More...
#include <goby/moos/transitional/message_val.h>
defines a DCCL value 
Definition at line 41 of file message_val.h.
 
◆ anonymous enum
◆ DCCLMessageVal() [1/9]
      
        
          | goby::moos::transitional::DCCLMessageVal::DCCLMessageVal  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ DCCLMessageVal() [2/9]
      
        
          | goby::moos::transitional::DCCLMessageVal::DCCLMessageVal  | 
          ( | 
          const std::string &  | 
          s | ) | 
           | 
        
      
 
construct with string value 
 
 
◆ DCCLMessageVal() [3/9]
      
        
          | goby::moos::transitional::DCCLMessageVal::DCCLMessageVal  | 
          ( | 
          const char *  | 
          s | ) | 
           | 
        
      
 
construct with char* value 
 
 
◆ DCCLMessageVal() [4/9]
      
        
          | goby::moos::transitional::DCCLMessageVal::DCCLMessageVal  | 
          ( | 
          double  | 
          d,  | 
        
        
           | 
           | 
          int  | 
          p = MAX_DBL_PRECISION  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
construct with double value, optionally givig the precision of the double (number of decimal places) which is used if a cast to std::string is required in the future. 
 
 
◆ DCCLMessageVal() [5/9]
      
        
          | goby::moos::transitional::DCCLMessageVal::DCCLMessageVal  | 
          ( | 
          long  | 
          l | ) | 
           | 
        
      
 
construct with long value 
 
 
◆ DCCLMessageVal() [6/9]
      
        
          | goby::moos::transitional::DCCLMessageVal::DCCLMessageVal  | 
          ( | 
          int  | 
          i | ) | 
           | 
        
      
 
 
◆ DCCLMessageVal() [7/9]
      
        
          | goby::moos::transitional::DCCLMessageVal::DCCLMessageVal  | 
          ( | 
          float  | 
          f | ) | 
           | 
        
      
 
construct with float value 
 
 
◆ DCCLMessageVal() [8/9]
      
        
          | goby::moos::transitional::DCCLMessageVal::DCCLMessageVal  | 
          ( | 
          bool  | 
          b | ) | 
           | 
        
      
 
construct with bool value 
 
 
◆ DCCLMessageVal() [9/9]
      
        
          | goby::moos::transitional::DCCLMessageVal::DCCLMessageVal  | 
          ( | 
          const std::vector< DCCLMessageVal > &  | 
          vm | ) | 
           | 
        
      
 
 
◆ empty()
  
  
      
        
          | bool goby::moos::transitional::DCCLMessageVal::empty  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ get() [1/4]
      
        
          | bool goby::moos::transitional::DCCLMessageVal::get  | 
          ( | 
          bool &  | 
          b | ) | 
           const | 
        
      
 
extract as bool (all reasonable casts are done) 
- Parameters
 - 
  
  
 
- Returns
 - successfully extracted (and if necessary successfully cast to this type) 
 
 
 
◆ get() [2/4]
      
        
          | bool goby::moos::transitional::DCCLMessageVal::get  | 
          ( | 
          double &  | 
          d | ) | 
           const | 
        
      
 
extract as double (all reasonable casts are done) 
- Parameters
 - 
  
    | d | double to store value in  | 
  
   
- Returns
 - successfully extracted (and if necessary successfully cast to this type) 
 
 
 
◆ get() [3/4]
      
        
          | bool goby::moos::transitional::DCCLMessageVal::get  | 
          ( | 
          long &  | 
          t | ) | 
           const | 
        
      
 
extract as long (all reasonable casts are done) 
- Parameters
 - 
  
  
 
- Returns
 - successfully extracted (and if necessary successfully cast to this type) 
 
 
 
◆ get() [4/4]
      
        
          | bool goby::moos::transitional::DCCLMessageVal::get  | 
          ( | 
          std::string &  | 
          s | ) | 
           const | 
        
      
 
extract as std::string (all reasonable casts are done) 
- Parameters
 - 
  
    | s | std::string to store value in  | 
  
   
- Returns
 - successfully extracted (and if necessary successfully cast to this type) 
 
 
 
◆ operator bool()
      
        
          | goby::moos::transitional::DCCLMessageVal::operator bool  | 
          ( | 
           | ) | 
           const | 
        
      
 
allows statements of the form 
 
 
 
◆ operator double()
      
        
          | goby::moos::transitional::DCCLMessageVal::operator double  | 
          ( | 
           | ) | 
           const | 
        
      
 
allows statements of the form 
 
 
 
◆ operator float()
      
        
          | goby::moos::transitional::DCCLMessageVal::operator float  | 
          ( | 
           | ) | 
           const | 
        
      
 
allows statements of the form 
 
 
 
◆ operator int()
      
        
          | goby::moos::transitional::DCCLMessageVal::operator int  | 
          ( | 
           | ) | 
           const | 
        
      
 
allows statements of the form 
 
 
 
◆ operator long()
      
        
          | goby::moos::transitional::DCCLMessageVal::operator long  | 
          ( | 
           | ) | 
           const | 
        
      
 
allows statements of the form 
 
 
 
◆ operator std::string()
      
        
          | goby::moos::transitional::DCCLMessageVal::operator std::string  | 
          ( | 
           | ) | 
           const | 
        
      
 
allows statements of the form 
 
 
 
◆ operator std::vector< DCCLMessageVal >()
      
        
          | goby::moos::transitional::DCCLMessageVal::operator std::vector< DCCLMessageVal >  | 
          ( | 
           | ) | 
           const | 
        
      
 
 
◆ operator unsigned()
      
        
          | goby::moos::transitional::DCCLMessageVal::operator unsigned  | 
          ( | 
           | ) | 
           const | 
        
      
 
allows statements of the form 
 
 
 
◆ operator==() [1/5]
      
        
          | bool goby::moos::transitional::DCCLMessageVal::operator==  | 
          ( | 
          bool  | 
          b | ) | 
           const | 
        
      
 
 
◆ operator==() [2/5]
      
        
          | bool goby::moos::transitional::DCCLMessageVal::operator==  | 
          ( | 
          const DCCLMessageVal &  | 
          mv | ) | 
           const | 
        
      
 
 
◆ operator==() [3/5]
      
        
          | bool goby::moos::transitional::DCCLMessageVal::operator==  | 
          ( | 
          const std::string &  | 
          s | ) | 
           const | 
        
      
 
 
◆ operator==() [4/5]
      
        
          | bool goby::moos::transitional::DCCLMessageVal::operator==  | 
          ( | 
          double  | 
          d | ) | 
           const | 
        
      
 
 
◆ operator==() [5/5]
      
        
          | bool goby::moos::transitional::DCCLMessageVal::operator==  | 
          ( | 
          long  | 
          l | ) | 
           const | 
        
      
 
 
◆ precision()
  
  
      
        
          | unsigned goby::moos::transitional::DCCLMessageVal::precision  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ set() [1/4]
      
        
          | void goby::moos::transitional::DCCLMessageVal::set  | 
          ( | 
          bool  | 
          bval | ) | 
           | 
        
      
 
set the value with a bool (overwrites previous value regardless of type) 
 
 
◆ set() [2/4]
      
        
          | void goby::moos::transitional::DCCLMessageVal::set  | 
          ( | 
          double  | 
          dval,  | 
        
        
           | 
           | 
          int  | 
          precision = MAX_DBL_PRECISION  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
set the value with a double (overwrites previous value regardless of type) 
- Parameters
 - 
  
    | dval | values to set  | 
    | precision | decimal places of precision to preserve if this is cast to a string  | 
  
   
 
 
◆ set() [3/4]
      
        
          | void goby::moos::transitional::DCCLMessageVal::set  | 
          ( | 
          long  | 
          lval | ) | 
           | 
        
      
 
set the value with a long (overwrites previous value regardless of type) 
 
 
◆ set() [4/4]
      
        
          | void goby::moos::transitional::DCCLMessageVal::set  | 
          ( | 
          std::string  | 
          sval | ) | 
           | 
        
      
 
set the value with a string (overwrites previous value regardless of type) 
 
 
◆ type()
  
  
      
        
          | DCCLCppType goby::moos::transitional::DCCLMessageVal::type  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator<<
  
  
      
        
          | std::ostream & operator<<  | 
          ( | 
          std::ostream &  | 
          os,  | 
         
        
           | 
           | 
          const DCCLMessageVal &  | 
          mv  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
friend   | 
  
 
 
The documentation for this class was generated from the following file: