ldas-tools-framecpp  2.8.1
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions | Variables
FrStructs.cc File Reference
#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 "FrStruct.hh"
#include "FrStruct3.tcc"
#include "FrStruct4.tcc"
#include "FrStruct6.tcc"
#include "FrStruct7.tcc"
#include "FrStruct8.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"
Include dependency graph for FrStructs.cc:

Classes

struct  testing::fr_object_impl< T_FRAME_SPEC_VERSION, T_FR_OBJECT >
 
struct  testing::fr_object_previous_impl< T_FRAME_SPEC_VERSION, T_FR_OBJECT >
 
class  anonymous_namespace{FrStructs.cc}::Riser< T >
 

Namespaces

 testing
 
 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 = typename fr_object_impl< T_FRAME_SPEC_VERSION, DIMENSION_TYPE >::type
 
template<int T_FRAME_SPEC_VERSION>
using testing::gpstime_type = typename fr_object_impl< T_FRAME_SPEC_VERSION, GPSTIME_TYPE >::type
 
template<int T_FRAME_SPEC_VERSION>
using testing::string_type = typename fr_object_impl< T_FRAME_SPEC_VERSION, STRING_TYPE >::type
 
template<int T_FRAME_SPEC_VERSION>
using testing::object_type = FrameCPP::Common::FrameSpec::ObjectInterface::object_type
 
typedef FrameCPP::Common::FrameSpec::Info::frame_object_types class_id_type
 

Enumerations

enum class  CONVERT {
  ROOT , SAME , V4 , V5 ,
  V6 , V7 , V8
}
 Markers for transitions. More...
 
enum class  VERSION {
  V3 , V4 , V5 , V6 ,
  V7 , V8
}
 Markers for where object is defined. More...
 

Functions

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 INT_2U SAMPLES = 256
 

Macro Definition Documentation

◆ BOOST_TEST_MAIN

#define BOOST_TEST_MAIN

◆ DECLARE_STRUCT

#define DECLARE_STRUCT (   STRUCT)
Value:
template < int T_FRAME_SPEC_VERSION > \
struct STRUCT

◆ INSTANTIATE_STRUCT

#define INSTANTIATE_STRUCT (   VER,
  FR_OBJECT,
  STRUCT 
)
Value:
template <> \
struct STRUCT< VER > \
{ \
typedef FrameCPP::Version_##VER ::FR_OBJECT type; \
}

◆ INSTANTIATE_STRUCT_ALL

#define INSTANTIATE_STRUCT_ALL (   FR_OBJECT,
  STRUCT 
)
Value:
DECLARE_STRUCT( STRUCT ); \
INSTANTIATE_STRUCT( 3, FR_OBJECT, STRUCT ); \
INSTANTIATE_STRUCT( 4, FR_OBJECT, STRUCT ); \
INSTANTIATE_STRUCT( 6, FR_OBJECT, STRUCT ); \
INSTANTIATE_STRUCT( 7, FR_OBJECT, STRUCT ); \
INSTANTIATE_STRUCT( 8, FR_OBJECT, STRUCT )
#define DECLARE_STRUCT(STRUCT)
Definition: FrStructs.cc:225

Typedef Documentation

◆ base_version_constant

template<int T_VALUE>
using base_version_constant = std::integral_constant< int, T_VALUE >

◆ class_id_type

◆ convert_constant

template<CONVERT T_CONVERT>
using convert_constant = std::integral_constant< CONVERT, T_CONVERT >

◆ frame_spec_constant

template<int T_FRAME_SPEC_VERSION>
using frame_spec_constant = std::integral_constant< int, T_FRAME_SPEC_VERSION >

◆ version_constant

template<VERSION T_VERSION>
using version_constant = std::integral_constant< VERSION, T_VERSION >

Enumeration Type Documentation

◆ CONVERT

enum CONVERT
strong

Markers for transitions.

Enumerator
ROOT 

Representation of when the class was introduced.

SAME 

No difference from the previous version of the frame specification

V4 

Differs from the previous version of the frame specication.

V5 

Differs from the previous version of the frame specication.

V6 

Differs from the previous version of the frame specication.

V7 

Differs from the previous version of the frame specication.

V8 

Differs from the previous version of the frame specication.

◆ VERSION

enum VERSION
strong

Markers for where object is defined.

Enumerator
V3 

Version 3 of the frame specification.

V4 

Version 4 of the frame specification.

V5 

Version 5 of the frame specification.

V6 

Version 6 of the frame specification.

V7 

Version 7 of the frame specification.

V8 

Version 8 of the frame specification.

Function Documentation

◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE ( FrStructs  )

◆ convert_to_frame_spec_mapper()

template<CONVERT T_CONVERT>
constexpr int convert_to_frame_spec_mapper ( )
constexpr

◆ fr_adc_data()

void fr_adc_data ( )

◆ fr_vect()

void fr_vect ( )

◆ frame_spec_to_convert_mapper()

template<int T_FRAME_SPEC_VERSION>
constexpr CONVERT frame_spec_to_convert_mapper ( )
constexpr

◆ frame_spec_to_version_mapper()

template<int T_FRAME_SPEC_VERSION>
constexpr VERSION frame_spec_to_version_mapper ( )
constexpr

◆ mk_frame_object()

mk_frame_object_ret_type mk_frame_object ( int  SpecVersion,
FrameSpec::Info::frame_object_types  Type 
)

◆ previous_version()

constexpr INT_4U previous_version ( const INT_4U  Current)
inlineconstexpr

◆ string_type_compare()

template<typename STRING_TYPE , typename A_TYPE >
bool string_type_compare ( const A_TYPE &  a)

◆ verify_convert()

static void verify_convert ( std::ostringstream &  Leader,
const int  Version,
frame_object_type  FrameObj,
const std::string &  FrameObjName 
)
inlinestatic

◆ verify_downconvert()

static void verify_downconvert ( std::ostringstream &  Leader,
const int  Version,
frame_object_type  FrameObj,
const std::string &  FrameObjName 
)
static

◆ verify_upconvert()

static void verify_upconvert ( std::ostringstream &  Leader,
const int  Version,
frame_object_type  FrameObj,
const std::string &  FrameObjName 
)
static

◆ version_to_frame_spec_to_version_mapper()

template<VERSION T_VERSION>
constexpr int version_to_frame_spec_to_version_mapper ( )
constexpr

Variable Documentation

◆ SAMPLES

const INT_2U SAMPLES = 256
static