SignalLogger
A library for signal logging.
signal_logger_std::traits::sls_traits< ValueType_, ContainerType_, typename std::enable_if< std::is_arithmetic< ValueType_ >::value||std::is_same< std::string, typename std::remove_cv< ValueType_ >::type >::value >::type > Struct Template Reference

#include <signal_logger_std_traits.hpp>

Static Public Member Functions

template<typename V_ = ValueType_>
static unsigned int sizeOf (const signal_logger::Buffer< ContainerType_ > &buffer, const std::function< const V_ *const (const ContainerType_ *const)> &accessor, typename std::enable_if<!std::is_same< std::string, typename std::remove_cv< V_ >::type >::value >::type *=0)
 
template<typename V_ = ValueType_>
static unsigned int sizeOf (const signal_logger::Buffer< ContainerType_ > &buffer, const std::function< const V_ *const (const ContainerType_ *const)> &accessor, typename std::enable_if< std::is_same< std::string, typename std::remove_cv< V_ >::type >::value >::type *=0)
 
template<typename V_ = ValueType_>
static std::enable_if<!std::is_same< std::string, typename std::remove_cv< V_ >::type >::value >::type writeToBinary (const unsigned int noBytes, std::stringstream *binary, const signal_logger::Buffer< ContainerType_ > &buffer, const std::function< const ValueType_ *const (const ContainerType_ *const)> &accessor)
 write arithmetic types to binary More...
 
template<typename V_ = ValueType_>
static std::enable_if< std::is_same< std::string, typename std::remove_cv< V_ >::type >::value >::type writeToBinary (const unsigned int noBytes, std::stringstream *binary, const signal_logger::Buffer< ContainerType_ > &buffer, const std::function< const ValueType_ *const (const ContainerType_ *const)> &accessor)
 write string types to binary More...
 
static void writeLogElementToStreams (std::stringstream *text, std::stringstream *binary, signal_logger::LogFileType fileType, const signal_logger::Buffer< ContainerType_ > &buffer, const std::string &name, const std::size_t divider, const unsigned int startDiff, const unsigned int endDiff, const std::function< const ValueType_ *const (const ContainerType_ *const)> &accessor=[](const ContainerType_ *const v){return v;})
 

Member Function Documentation

template<typename ValueType_ , typename ContainerType_ >
template<typename V_ = ValueType_>
static unsigned int signal_logger_std::traits::sls_traits< ValueType_, ContainerType_, typename std::enable_if< std::is_arithmetic< ValueType_ >::value||std::is_same< std::string, typename std::remove_cv< ValueType_ >::type >::value >::type >::sizeOf ( const signal_logger::Buffer< ContainerType_ > &  buffer,
const std::function< const V_ *const (const ContainerType_ *const)> &  accessor,
typename std::enable_if<!std::is_same< std::string, typename std::remove_cv< V_ >::type >::value >::type *  = 0 
)
inlinestatic
template<typename ValueType_ , typename ContainerType_ >
template<typename V_ = ValueType_>
static unsigned int signal_logger_std::traits::sls_traits< ValueType_, ContainerType_, typename std::enable_if< std::is_arithmetic< ValueType_ >::value||std::is_same< std::string, typename std::remove_cv< ValueType_ >::type >::value >::type >::sizeOf ( const signal_logger::Buffer< ContainerType_ > &  buffer,
const std::function< const V_ *const (const ContainerType_ *const)> &  accessor,
typename std::enable_if< std::is_same< std::string, typename std::remove_cv< V_ >::type >::value >::type *  = 0 
)
inlinestatic
template<typename ValueType_ , typename ContainerType_ >
static void signal_logger_std::traits::sls_traits< ValueType_, ContainerType_, typename std::enable_if< std::is_arithmetic< ValueType_ >::value||std::is_same< std::string, typename std::remove_cv< ValueType_ >::type >::value >::type >::writeLogElementToStreams ( std::stringstream *  text,
std::stringstream *  binary,
signal_logger::LogFileType  fileType,
const signal_logger::Buffer< ContainerType_ > &  buffer,
const std::string &  name,
const std::size_t  divider,
const unsigned int  startDiff,
const unsigned int  endDiff,
const std::function< const ValueType_ *const (const ContainerType_ *const)> &  accessor = [](const ContainerType_ * const v) { return v; } 
)
inlinestatic
template<typename ValueType_ , typename ContainerType_ >
template<typename V_ = ValueType_>
static std::enable_if<!std::is_same<std::string, typename std::remove_cv<V_>::type>::value>::type signal_logger_std::traits::sls_traits< ValueType_, ContainerType_, typename std::enable_if< std::is_arithmetic< ValueType_ >::value||std::is_same< std::string, typename std::remove_cv< ValueType_ >::type >::value >::type >::writeToBinary ( const unsigned int  noBytes,
std::stringstream *  binary,
const signal_logger::Buffer< ContainerType_ > &  buffer,
const std::function< const ValueType_ *const (const ContainerType_ *const)> &  accessor 
)
inlinestatic

write arithmetic types to binary

template<typename ValueType_ , typename ContainerType_ >
template<typename V_ = ValueType_>
static std::enable_if<std::is_same<std::string, typename std::remove_cv<V_>::type>::value>::type signal_logger_std::traits::sls_traits< ValueType_, ContainerType_, typename std::enable_if< std::is_arithmetic< ValueType_ >::value||std::is_same< std::string, typename std::remove_cv< ValueType_ >::type >::value >::type >::writeToBinary ( const unsigned int  noBytes,
std::stringstream *  binary,
const signal_logger::Buffer< ContainerType_ > &  buffer,
const std::function< const ValueType_ *const (const ContainerType_ *const)> &  accessor 
)
inlinestatic

write string types to binary


The documentation for this struct was generated from the following file: