UniRec
3.3.2
|
Data Structures | |
struct | add_const |
A type trait that adds const to a given type if it is a pointer or a reference. More... | |
struct | add_const< T & > |
struct | add_const< T * > |
class | EoFException |
An exception that is thrown when the end of the input stream is reached. More... | |
class | FormatChangeException |
An exception that is thrown when the record format changes. More... | |
class | HelpException |
This exception is thrown when the libtrap command-line argument contains help flag. More... | |
struct | InputInteraceStats |
Structure to store statistics related to an input interface. More... | |
struct | IpAddress |
A struct representing an IP address with associated operations. More... | |
struct | is_string |
A type trait that checks if a given type is a string type. More... | |
struct | is_string< std::string > |
struct | is_string< std::string_view > |
struct | MacAddress |
class | TrapModuleInfo |
Class representing information about a trap module. More... | |
class | Unirec |
class | UnirecArray |
A wrapper class for a contiguous array of values with the same unirec fieldID. More... | |
class | UnirecBidirectionalInterface |
A class that provides a bidirectional interface for sending and receiving unirec records. More... | |
class | UnirecInputInterface |
A class that provides an interface for receiving data in the Unirec format using the TRAP library. More... | |
class | UnirecOutputInterface |
A class for sending UniRec records through a Trap interface. More... | |
class | UnirecRecord |
A class for working with UniRec records and their fields. More... | |
class | UnirecRecordView |
Provides a view into a UniRec record. More... | |
struct | UrTime |
Typedefs | |
template<typename T > | |
using | add_const_t = typename add_const< T >::type |
Variables | |
static const ip_addr_t | EMPTY_IP_ADDRESS = { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xff, 0xff, 0xff, 0xff } } |
Define a constant for an empty IP address 0.0.0.0 for IPv4, :: for IPv6. More... | |
template<typename T > | |
constexpr bool | is_string_v = is_string<T>::value |
struct Nemea::add_const |
A type trait that adds const
to a given type if it is a pointer or a reference.
If the input type T
is not a pointer or a reference, add_const<T>
is equivalent to T
. Otherwise, add_const<T>
adds const
to the pointed-to or referred-to type.
T | The input type to add const to. |
Definition at line 45 of file unirecTypeTraits.hpp.
Data Fields | ||
---|---|---|
typedef T | type |
struct Nemea::add_const< T & > |
Definition at line 55 of file unirecTypeTraits.hpp.
Data Fields | ||
---|---|---|
typedef const T & | type |
struct Nemea::add_const< T * > |
Definition at line 50 of file unirecTypeTraits.hpp.
Data Fields | ||
---|---|---|
typedef const T * | type |
struct Nemea::InputInteraceStats |
Structure to store statistics related to an input interface.
Definition at line 18 of file interfaceStats.hpp.
Data Fields | ||
---|---|---|
uint64_t | missedRecords |
Total number of missed records. |
uint64_t | receivedBytes |
Total number of bytes received. |
uint64_t | receivedRecords |
Total number of records received. |
struct Nemea::MacAddress |
Definition at line 7 of file macAddress.hpp.
Data Fields | ||
---|---|---|
mac_addr_t | mac |
using Nemea::add_const_t = typedef typename add_const<T>::type |
Definition at line 60 of file unirecTypeTraits.hpp.
constexpr ur_field_type_t Nemea::getExpectedUnirecType | ( | ) |
Determines the expected UniRec field type for a given C++ type T.
T | The C++ type to determine the expected UniRec field type for. |
constexpr ur_field_type_t Nemea::getExpectedUnirecType< char *> | ( | ) |
Definition at line 57 of file unirecTypes.hpp.
constexpr ur_field_type_t Nemea::getExpectedUnirecType< char > | ( | ) |
Definition at line 39 of file unirecTypes.hpp.
constexpr ur_field_type_t Nemea::getExpectedUnirecType< double *> | ( | ) |
Definition at line 177 of file unirecTypes.hpp.
constexpr ur_field_type_t Nemea::getExpectedUnirecType< double > | ( | ) |
Definition at line 171 of file unirecTypes.hpp.
constexpr ur_field_type_t Nemea::getExpectedUnirecType< float *> | ( | ) |
Definition at line 165 of file unirecTypes.hpp.
constexpr ur_field_type_t Nemea::getExpectedUnirecType< float > | ( | ) |
Definition at line 159 of file unirecTypes.hpp.
constexpr ur_field_type_t Nemea::getExpectedUnirecType< int16_t *> | ( | ) |
Definition at line 105 of file unirecTypes.hpp.
constexpr ur_field_type_t Nemea::getExpectedUnirecType< int16_t > | ( | ) |
Definition at line 99 of file unirecTypes.hpp.
constexpr ur_field_type_t Nemea::getExpectedUnirecType< int32_t *> | ( | ) |
Definition at line 129 of file unirecTypes.hpp.
constexpr ur_field_type_t Nemea::getExpectedUnirecType< int32_t > | ( | ) |
Definition at line 123 of file unirecTypes.hpp.
constexpr ur_field_type_t Nemea::getExpectedUnirecType< int64_t *> | ( | ) |
Definition at line 153 of file unirecTypes.hpp.
constexpr ur_field_type_t Nemea::getExpectedUnirecType< int64_t > | ( | ) |
Definition at line 147 of file unirecTypes.hpp.
constexpr ur_field_type_t Nemea::getExpectedUnirecType< int8_t *> | ( | ) |
Definition at line 81 of file unirecTypes.hpp.
constexpr ur_field_type_t Nemea::getExpectedUnirecType< int8_t > | ( | ) |
Definition at line 75 of file unirecTypes.hpp.
constexpr ur_field_type_t Nemea::getExpectedUnirecType< IpAddress *> | ( | ) |
Definition at line 201 of file unirecTypes.hpp.
constexpr ur_field_type_t Nemea::getExpectedUnirecType< IpAddress > | ( | ) |
Definition at line 195 of file unirecTypes.hpp.
constexpr ur_field_type_t Nemea::getExpectedUnirecType< MacAddress *> | ( | ) |
Definition at line 189 of file unirecTypes.hpp.
constexpr ur_field_type_t Nemea::getExpectedUnirecType< MacAddress > | ( | ) |
Definition at line 183 of file unirecTypes.hpp.
constexpr ur_field_type_t Nemea::getExpectedUnirecType< std::byte *> | ( | ) |
Definition at line 33 of file unirecTypes.hpp.
constexpr ur_field_type_t Nemea::getExpectedUnirecType< std::string > | ( | ) |
Definition at line 45 of file unirecTypes.hpp.
constexpr ur_field_type_t Nemea::getExpectedUnirecType< std::string_view > | ( | ) |
Definition at line 51 of file unirecTypes.hpp.
constexpr ur_field_type_t Nemea::getExpectedUnirecType< uint16_t *> | ( | ) |
Definition at line 93 of file unirecTypes.hpp.
constexpr ur_field_type_t Nemea::getExpectedUnirecType< uint16_t > | ( | ) |
Definition at line 87 of file unirecTypes.hpp.
constexpr ur_field_type_t Nemea::getExpectedUnirecType< uint32_t *> | ( | ) |
Definition at line 117 of file unirecTypes.hpp.
constexpr ur_field_type_t Nemea::getExpectedUnirecType< uint32_t > | ( | ) |
Definition at line 111 of file unirecTypes.hpp.
constexpr ur_field_type_t Nemea::getExpectedUnirecType< uint64_t *> | ( | ) |
Definition at line 141 of file unirecTypes.hpp.
constexpr ur_field_type_t Nemea::getExpectedUnirecType< uint64_t > | ( | ) |
Definition at line 135 of file unirecTypes.hpp.
constexpr ur_field_type_t Nemea::getExpectedUnirecType< uint8_t *> | ( | ) |
Definition at line 69 of file unirecTypes.hpp.
constexpr ur_field_type_t Nemea::getExpectedUnirecType< uint8_t > | ( | ) |
Definition at line 63 of file unirecTypes.hpp.
constexpr ur_field_type_t Nemea::getExpectedUnirecType< UrTime *> | ( | ) |
Definition at line 213 of file unirecTypes.hpp.
constexpr ur_field_type_t Nemea::getExpectedUnirecType< UrTime > | ( | ) |
Definition at line 207 of file unirecTypes.hpp.
|
static |
Define a constant for an empty IP address 0.0.0.0 for IPv4, :: for IPv6.
Definition at line 24 of file ipAddress.hpp.
constexpr bool Nemea::is_string_v = is_string<T>::value |
Definition at line 35 of file unirecTypeTraits.hpp.