AARE
Data analysis library for PSI hybrid detectors
Loading...
Searching...
No Matches
Namespaces | Functions
ZmqHeader.cpp File Reference
#include "aare/network_io/ZmqHeader.hpp"
#include "simdjson.h"

Namespaces

namespace  aare
 Frame class to represent a single frame of data model class should be able to work with streams coming from files or network.
 

Functions

template<typename T >
void write_digit (std::string &s, const std::string &key, const T &value)
 write a digit to a string takes key and value and outputs->"key": value,
 
void write_str (std::string &s, const std::string &key, const std::string &value)
 
void write_map (std::string &s, const std::string &key, const std::map< std::string, std::string > &value)
 
void write_array (std::string &s, const std::string &key, const std::array< int, 4 > &value)
 

Function Documentation

◆ write_array()

void write_array ( std::string &  s,
const std::string &  key,
const std::array< int, 4 > &  value 
)

◆ write_digit()

template<typename T >
void write_digit ( std::string &  s,
const std::string &  key,
const T &  value 
)

write a digit to a string takes key and value and outputs->"key": value,

Template Parameters
Ttype of value (int, uint32_t, ...)
Parameters
sstring to append to
keykey to write
valuevalue to write
Returns
void
Note
  • can't use concepts here because we are using c++17

◆ write_map()

void write_map ( std::string &  s,
const std::string &  key,
const std::map< std::string, std::string > &  value 
)

◆ write_str()

void write_str ( std::string &  s,
const std::string &  key,
const std::string &  value 
)