Goby v2
Namespaces | Classes | Enumerations | Functions | Variables
goby::common Namespace Reference

Utility objects for performing functions such as logging, non-acoustic communication (ethernet / serial), time, scientific, string manipulation, etc. More...

Namespaces

 tcolor
 Contains functions for adding color to Terminal window streams.
 

Classes

class  ApplicationBase
 
struct  Colors
 Represents the eight available terminal colors (and bold variants) More...
 
struct  CommandEntry
 
class  ConfigException
 indicates a problem with the runtime command line or .cfg file configuration (or –help was given) More...
 
class  ConfigReader
 
class  FlexNCurses
 Enables the Verbosity == gui mode of the Goby logger and displays an NCurses gui for the logger content. More...
 
class  FlexOstream
 Forms the basis of the Goby logger: std::ostream derived class for holding the FlexOStreamBuf. More...
 
class  FlexOStreamBuf
 
struct  GobyTime
 
class  HDF5Plugin
 
struct  HDF5ProtobufEntry
 
class  LiaisonAcomms
 
class  LiaisonCommander
 
class  LiaisonContainer
 
class  LiaisonGeodesy
 
class  LiaisonScope
 
class  LiaisonScopeMOOSModel
 
class  LiaisonScopeMOOSTreeView
 
class  LiaisonTreeTableNode
 
class  MACBar
 
class  NodeInterface
 
class  PubSubNodeWrapper
 
class  PubSubNodeWrapperBase
 
class  QueueBar
 
class  TermColor
 Converts between string, escape code, and enumeration representations of the terminal colors. More...
 
class  ZeroMQApplicationBase
 
class  ZeroMQService
 
class  ZeroMQSocket
 

Enumerations

enum  MarshallingScheme {
  MARSHALLING_UNKNOWN = 0, MARSHALLING_CSTR = 1, MARSHALLING_PROTOBUF = 2, MARSHALLING_CCL = 3,
  MARSHALLING_MOOS = 4, MARSHALLING_DCCL = 5, MARSHALLING_LCM = 6, MARSHALLING_MAX = 6
}
 
enum  { LIAISON_INTERNAL_PUBLISH_SOCKET = 1, LIAISON_INTERNAL_SUBSCRIBE_SOCKET = 2 }
 

Functions

std::ostream & operator<< (std::ostream &out, const google::protobuf::Message &msg)
 provides stream output operator for Google Protocol Buffers Message
 
void merge_app_base_cfg (AppBaseConfig *base_cfg, const boost::program_options::variables_map &var_map)
 
std::ostream & operator<< (std::ostream &os, const HDF5ProtobufEntry &entry)
 
const Wt::WColor goby_blue (28, 159, 203)
 
const Wt::WColor goby_orange (227, 96, 52)
 
std::string liaison_internal_publish_socket_name ()
 
std::string liaison_internal_subscribe_socket_name ()
 
std::ostream & operator<< (FlexOstream &out, char c)
 
std::ostream & operator<< (FlexOstream &out, signed char c)
 
std::ostream & operator<< (FlexOstream &out, unsigned char c)
 
std::ostream & operator<< (FlexOstream &out, const char *s)
 
std::ostream & operator<< (FlexOstream &out, const signed char *s)
 
std::ostream & operator<< (FlexOstream &out, const unsigned char *s)
 
template<typename _CharT , typename _Traits , typename _Alloc >
std::ostream & operator<< (FlexOstream &out, const std::basic_string< _CharT, _Traits, _Alloc > &s)
 
double ptime2unix_double (boost::posix_time::ptime given_time)
 convert from boost date_time ptime to the number of seconds (including fractional) since 1/1/1970 0:00 UTC ("UNIX Time")
 
boost::posix_time::ptime unix_double2ptime (double given_time)
 convert to boost date_time ptime from the number of seconds (including fractional) since 1/1/1970 0:00 UTC ("UNIX Time"): good to the microsecond
 
uint64 ptime2unix_microsec (boost::posix_time::ptime given_time)
 convert from boost date_time ptime to the number of microseconds since 1/1/1970 0:00 UTC ("UNIX Time")
 
boost::posix_time::ptime unix_microsec2ptime (uint64 given_time)
 convert to boost date_time ptime from the number of microseconds since 1/1/1970 0:00 UTC ("UNIX Time"): good to the microsecond
 
boost::posix_time::ptime nmea_time2ptime (const std::string &mt)
 
std::string zeromq_packet_make_header (MarshallingScheme marshalling_scheme, const std::string &identifier)
 
void zeromq_packet_encode (std::string *raw, MarshallingScheme marshalling_scheme, const std::string &identifier, const std::string &body)
 Encodes a packet for Goby over ZeroMQ.
 
void zeromq_packet_decode (const std::string &raw, MarshallingScheme *marshalling_scheme, std::string *identifier, std::string *body)
 Decodes a packet for Goby over ZeroMQ.
 

Variables

const int BITS_IN_UINT32 = 32
 
const int BITS_IN_BYTE = 8
 
const std::string esc_red = "\33[31m"
 
const std::string esc_lt_red = "\33[91m"
 
const std::string esc_green = "\33[32m"
 
const std::string esc_lt_green = "\33[92m"
 
const std::string esc_yellow = "\33[33m"
 
const std::string esc_lt_yellow = "\33[93m"
 
const std::string esc_blue = "\33[34m"
 
const std::string esc_lt_blue = "\33[94m"
 
const std::string esc_magenta = "\33[35m"
 
const std::string esc_lt_magenta = "\33[95m"
 
const std::string esc_cyan = "\33[36m"
 
const std::string esc_lt_cyan = "\33[96m"
 
const std::string esc_white = "\33[37m"
 
const std::string esc_lt_white = "\33[97m"
 
const std::string esc_nocolor = "\33[0m"
 

Time

boost::function0< uint64goby_time_function
 
int goby_time_warp_factor = 1
 
template<typename ReturnType >
ReturnType goby_time ()
 Returns current UTC time as a boost::posix_time::ptime.
 
template<>
uint64 goby_time< uint64 > ()
 Returns current UTC time as integer microseconds since 1970-01-01 00:00:00.
 
template<>
double goby_time< double > ()
 Returns current UTC time as seconds and fractional seconds since 1970-01-01 00:00:00.
 
template<>
boost::posix_time::ptime goby_time< boost::posix_time::ptime > ()
 
template<>
std::string goby_time< std::string > ()
 Returns current UTC time as a human-readable string.
 
std::string goby_time_as_string (const boost::posix_time::ptime &t=goby_time())
 Simple string representation of goby_time()
 
std::string goby_file_timestamp ()
 ISO string representation of goby_time()
 
boost::posix_time::ptime time_t2ptime (std::time_t t)
 convert to ptime from time_t from time.h (whole seconds since UNIX)
 
std::time_t ptime2time_t (boost::posix_time::ptime t)
 convert from ptime to time_t from time.h (whole seconds since UNIX)
 
double time_duration2double (boost::posix_time::time_duration time_of_day)
 time duration to double number of seconds: good to the microsecond
 

Detailed Description

Utility objects for performing functions such as logging, non-acoustic communication (ethernet / serial), time, scientific, string manipulation, etc.