Dripline-Cpp  v2.4.2
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 <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  op_t : uint32_t { set = 0, get = 1, cmd = 9, unknown = UINT32_MAX }
 
enum  msg_t : uint32_t { reply = 2, request = 3, alert = 4, unknown = UINT32_MAX }
 

Functions

uint32_t to_uint (op_t an_op)
 Convert a message-operation enum to an integer. More...
 
op_t to_op_t (uint32_t 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)
 
uint32_t to_uint (msg_t a_msg)
 Convert a message-type enum to an integer. More...
 
msg_t to_msg_t (uint32_t 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 22 of file dripline_constants.hh.