Dripline-Cpp  v2.10.11
Dripline Implementation in C++
Namespaces | Macros | Enumerations | Functions
dripline_constants.hh File Reference
#include "dripline_api.hh"
#include "macros.hh"
#include <cstdint>
#include <limits>
#include <climits>
#include <ostream>
Include dependency graph for dripline_constants.hh:

Go to the source code of this file.

Namespaces

 dripline
 

Macros

#define DL_MAX_PAYLOAD_SIZE   10000
 

Enumerations

enum class  op_t : unsigned { set = 0 , get = 1 , cmd = 9 , unknown = UINT_MAX }
 
enum class  msg_t : unsigned { reply = 2 , request = 3 , alert = 4 , unknown = UINT_MAX }
 

Functions

unsigned to_uint (op_t an_op)
 Convert a message-operation enum to an integer. More...
 
op_t to_op_t (unsigned an_op_uint)
 
std::ostream & operator<< (std::ostream &a_os, op_t an_op)
 Pass the integer-equivalent of a message-operation enum to an ostream. More...
 
std::string to_string (op_t an_op)
 Gives the human-readable version of a message operation. More...
 
op_t to_op_t (std::string an_op_str)
 
unsigned to_uint (msg_t a_msg)
 Convert a message-type enum to an integer. More...
 
msg_t to_msg_t (unsigned a_msg_uint)
 
std::ostream & operator<< (std::ostream &a_os, msg_t a_msg)
 Pass the integer-equivalent of a message-type enum to an ostream. More...
 
std::string to_string (msg_t a_msg)
 Gives the human-readable version of the message type. More...
 
msg_t to_msg_t (std::string a_msg_str)
 

Macro Definition Documentation

◆ DL_MAX_PAYLOAD_SIZE

#define DL_MAX_PAYLOAD_SIZE   10000

Definition at line 23 of file dripline_constants.hh.