Classes | Functions
utils.h File Reference
#include <iomanip>
#include <sstream>
#include <stdexcept>
#include <algorithm>
#include <array>
Include dependency graph for utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MinFittingType< N >
 
struct  MinFittingType< 1 >
 
struct  MinFittingType< 2 >
 
struct  MinFittingType< 3 >
 
struct  MinFittingType< 4 >
 
struct  MinFittingType< 5 >
 
struct  MinFittingType< 6 >
 
struct  MinFittingType< 7 >
 
struct  MinFittingType< 8 >
 

Functions

template<std::size_t N>
MinFittingType< N >::type byteArrayToInt (const std::array< std::uint8_t, N > &a)
 
std::string ip2string (const uint32_t ip)
 
std::string mac2string (const uint64_t mac)
 
template<uint32_t n>
std::array< std::string, n > split (const std::string &s, const char sep)
 
template<uint32_t n>
std::array< uint8_t, n > string2byte (const std::string &s, const int base, const char sep)
 
std::array< uint8_t, 4 > string2ip (const std::string &ip)
 
std::array< uint8_t, 6 > string2mac (const std::string &mac)
 
bool wildcardMatch (std::string::const_iterator str_first, std::string::const_iterator str_last, std::string::const_iterator p_first, std::string::const_iterator p_last)
 

Function Documentation

template<std::size_t N>
MinFittingType<N>::type byteArrayToInt ( const std::array< std::uint8_t, N > &  a)

Definition at line 145 of file utils.h.

std::string ip2string ( const uint32_t  ip)
inline

Definition at line 57 of file utils.h.

std::string mac2string ( const uint64_t  mac)
inline

Definition at line 45 of file utils.h.

template<uint32_t n>
std::array<std::string, n> split ( const std::string &  s,
const char  sep 
)

Definition at line 68 of file utils.h.

template<uint32_t n>
std::array<uint8_t, n> string2byte ( const std::string &  s,
const int  base,
const char  sep 
)

Definition at line 99 of file utils.h.

std::array<uint8_t, 4> string2ip ( const std::string &  ip)
inline

Definition at line 128 of file utils.h.

std::array<uint8_t, 6> string2mac ( const std::string &  mac)
inline

Definition at line 123 of file utils.h.

bool wildcardMatch ( std::string::const_iterator  str_first,
std::string::const_iterator  str_last,
std::string::const_iterator  p_first,
std::string::const_iterator  p_last 
)
inline

Definition at line 156 of file utils.h.



rcdiscover
Author(s): Heiko Hirschmueller , Raphael Schaller
autogenerated on Sun Apr 18 2021 02:16:32