#include <algorithm>
#include <memory>
#include <sstream>
#include <type_traits>
#include <boost/test/included/unit_test.hpp>
#include <boost/scoped_array.hpp>
#include <boost/shared_ptr.hpp>
#include "framecpp/Dimension.hh"
#include "framecpp/FrAdcData.hh"
#include "framecpp/FrVect.hh"
#include "ramp.hh"
#include "FrStruct.hh"
#include "FrStruct3.tcc"
#include "FrStruct4.tcc"
#include "FrStruct6.tcc"
#include "FrStruct7.tcc"
#include "FrStruct8.tcc"
#include "FrStruct9.tcc"
#include "fr_detector.hh"
#include "fr_end_of_file.hh"
#include "fr_end_of_frame.hh"
#include "fr_history.hh"
#include "fr_msg.hh"
#include "fr_vect.hh"
Namespaces | |
namespace | testing |
namespace | anonymous_namespace{FrStructs.cc} |
Macros | |
#define | BOOST_TEST_MAIN |
#define | DECLARE_STRUCT(STRUCT) |
#define | INSTANTIATE_STRUCT(VER, FR_OBJECT, STRUCT) |
#define | INSTANTIATE_STRUCT_ALL(FR_OBJECT, STRUCT) |
Typedefs | |
template<int T_FRAME_SPEC_VERSION> | |
using | frame_spec_constant = std::integral_constant< int, T_FRAME_SPEC_VERSION > |
template<int T_VALUE> | |
using | base_version_constant = std::integral_constant< int, T_VALUE > |
template<CONVERT T_CONVERT> | |
using | convert_constant = std::integral_constant< CONVERT, T_CONVERT > |
template<VERSION T_VERSION> | |
using | version_constant = std::integral_constant< VERSION, T_VERSION > |
template<int T_FRAME_SPEC_VERSION> | |
using | testing::dimension_type |
template<int T_FRAME_SPEC_VERSION> | |
using | testing::gpstime_type |
template<int T_FRAME_SPEC_VERSION> | |
using | testing::string_type |
template<int T_FRAME_SPEC_VERSION> | |
using | testing::object_type |
typedef FrameCPP::Common::FrameSpec::Info::frame_object_types | class_id_type |
Enumerations | |
enum class | CONVERT { ROOT , SAME , V4 , V5 , V6 , V7 , V8 , V9 } |
Markers for transitions. More... | |
enum class | VERSION { V3 , V4 , V5 , V6 , V7 , V8 , V9 } |
Markers for where object is defined. More... | |
Functions | |
bool | do_init () |
template<int T_FRAME_SPEC_VERSION> | |
constexpr CONVERT | frame_spec_to_convert_mapper () |
template<CONVERT T_CONVERT> | |
constexpr int | convert_to_frame_spec_mapper () |
template<int T_FRAME_SPEC_VERSION> | |
constexpr VERSION | frame_spec_to_version_mapper () |
template<VERSION T_VERSION> | |
constexpr int | version_to_frame_spec_to_version_mapper () |
constexpr INT_4U | previous_version (const INT_4U Current) |
template<typename STRING_TYPE, typename A_TYPE> | |
bool | string_type_compare (const A_TYPE &a) |
testing::INSTANTIATE_STRUCT_ALL (GPSTime, GPSTIME_TYPE) | |
testing::INSTANTIATE_STRUCT_ALL (STRING, STRING_TYPE) | |
testing::INSTANTIATE_STRUCT_ALL (Dimension, DIMENSION_TYPE) | |
template<int T_FRAME_SPEC_VERSION, typename T_CURRENT_TYPE> | |
bool | testing::convert_check_root (T_CURRENT_TYPE *(*mk_current)()) |
template<int T_FRAME_SPEC_VERSION, typename T_CURRENT_TYPE, typename T_PREVIOUS_TYPE> | |
bool | testing::convert_check_same (T_CURRENT_TYPE *(*mk_current)(), T_PREVIOUS_TYPE *(*mk_previous)()) |
template<typename T_EXPECTED, typename T_ACTUAL> | |
bool | testing::check_data_type (const T_ACTUAL &actual) |
template<int T_FRAME_SPEC_VERSION, typename T_ACTUAL> | |
bool | testing::check_data_type_string (const T_ACTUAL &actual) |
template<int T_FRAME_SPEC_VERSION, int T_NEAREST_BASE> | |
constexpr bool | testing::is_change_version () |
template<int T_FRAME_SPEC_VERSION, bool T_IS_ROOT, bool T_IS_CHANGE_VERSION> | |
constexpr CONVERT | testing::conversion () |
template<> | |
constexpr CONVERT | testing::conversion< 3, true, true > () |
template<> | |
constexpr CONVERT | testing::conversion< 3, true, false > () |
static void | verify_downconvert (std::ostringstream &Leader, const int Version, frame_object_type FrameObj, const std::string &FrameObjName) |
static void | verify_upconvert (std::ostringstream &Leader, const int Version, frame_object_type FrameObj, const std::string &FrameObjName) |
static void | verify_convert (std::ostringstream &Leader, const int Version, frame_object_type FrameObj, const std::string &FrameObjName) |
template<typename Type, typename Generator> | |
void | anonymous_namespace{FrStructs.cc}::data_generate (FrameCPP::FrVect::data_type &Data, INT_4U Size, Generator Gen) |
void | fr_adc_data () |
void | fr_vect () |
BOOST_AUTO_TEST_CASE (FrStructs) | |
mk_frame_object_ret_type | mk_frame_object (int SpecVersion, FrameSpec::Info::frame_object_types Type) |
Variables | |
static const bool | HAS_BEEN_INITIALIZED = do_init( ) |
static const INT_2U | SAMPLES = 256 |
#define BOOST_TEST_MAIN |
#define DECLARE_STRUCT | ( | STRUCT | ) |
#define INSTANTIATE_STRUCT | ( | VER, | |
FR_OBJECT, | |||
STRUCT ) |
#define INSTANTIATE_STRUCT_ALL | ( | FR_OBJECT, | |
STRUCT ) |
using base_version_constant = std::integral_constant< int, T_VALUE > |
using convert_constant = std::integral_constant< CONVERT, T_CONVERT > |
using frame_spec_constant = std::integral_constant< int, T_FRAME_SPEC_VERSION > |
using version_constant = std::integral_constant< VERSION, T_VERSION > |
|
strong |
Markers for transitions.
|
strong |
Markers for where object is defined.
BOOST_AUTO_TEST_CASE | ( | FrStructs | ) |
|
constexpr |
bool do_init | ( | ) |
void fr_adc_data | ( | ) |
void fr_vect | ( | ) |
|
constexpr |
|
constexpr |
mk_frame_object_ret_type mk_frame_object | ( | int | SpecVersion, |
FrameSpec::Info::frame_object_types | Type ) |
|
inlineconstexpr |
bool string_type_compare | ( | const A_TYPE & | a | ) |
|
inlinestatic |
|
static |
|
static |
|
constexpr |
|
static |
|
static |