ldas-tools-framecpp 3.0.4
Loading...
Searching...
No Matches
test_frameCPP_cpp.cc File Reference
#include <sys/stat.h>
#include <cstdlib>
#include <fstream>
#include <sstream>
#include <boost/test/included/unit_test.hpp>
#include <boost/pointer_cast.hpp>
#include <boost/scoped_array.hpp>
#include <boost/shared_ptr.hpp>
#include "ldastoolsal/Exec.hh"
#include "ldastoolsal/fstream.hh"
#include "framecpp/Common/BaseMemoryBuffer.hh"
#include "framecpp/Common/DynamicMemoryBuffer.hh"
#include "framecpp/Common/MemoryBuffer.hh"
#include "framecpp/Common/FrameBuffer.hh"
#include "framecpp/Types.hh"
#include "framecpp/Dimension.hh"
#include "framecpp/IFrameStream.hh"
#include "framecpp/OFrameStream.hh"
#include "framecpp/FrameH.hh"
#include "framecpp/FrRawData.hh"
#include "framecpp/FrTOC.hh"
#include "framecpp/FrVect.hh"
Include dependency graph for test_frameCPP_cpp.cc:

Macros

#define BOOST_TEST_MAIN
 
#define SMALL_FRAMES_TYPE   1
 

Typedefs

typedef FrameCPP::Common::FrameBufferInterface::Scanner Scanner
 
typedef FrameBuffer< LDASTools::AL::filebuf > frame_buffer_type
 
typedef boost::shared_ptr< FrameCPP::Common::FrameHbuild_frame_type
 
typedef FrameCPP::Common::FrameSpec::version_type frame_version_type
 
typedef GPSTime start_time_type
 
typedef REAL_8 dt_type
 

Functions

static build_frame_type create_frame (frame_version_type Version, start_time_type Start, dt_type Dt)
 
bool do_init ()
 
const std::string & TEST_DIR ()
 
bool verify_fileBaseName (const std::string Source)
 
bool verify_fileBaseName (IFrameStream &Source, const std::string &fileBaseName_expected)
 
const std::string & filename_source (int Spec=FRAME_SPEC_CURRENT)
 
void test_dynamic_memory_buffer ()
 
void test_memory_buffer ()
 
 BOOST_AUTO_TEST_CASE (test_memory_buffer_ro)
 
 BOOST_AUTO_TEST_CASE (test_scanner)
 
 BOOST_AUTO_TEST_CASE (test_standard)
 
 BOOST_AUTO_TEST_CASE (test_small_frames)
 
 BOOST_AUTO_TEST_CASE (test_read_events)
 
template<frame_version_type >
build_frame_type frameh (start_time_type StartTime, dt_type Dt)
 
template<>
build_frame_type frameh< 9 > (start_time_type StartTime, dt_type Dt)
 
template<>
build_frame_type frameh< 8 > (start_time_type StartTime, dt_type Dt)
 

Variables

static const bool HAS_BEEN_INITIALIZED = do_init( )
 

Macro Definition Documentation

◆ BOOST_TEST_MAIN

#define BOOST_TEST_MAIN

◆ SMALL_FRAMES_TYPE

#define SMALL_FRAMES_TYPE   1

Typedef Documentation

◆ build_frame_type

typedef boost::shared_ptr< FrameCPP::Common::FrameH > build_frame_type

◆ dt_type

typedef REAL_8 dt_type

◆ frame_buffer_type

typedef FrameBuffer< LDASTools::AL::filebuf > frame_buffer_type

◆ frame_version_type

◆ Scanner

◆ start_time_type

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/5]

BOOST_AUTO_TEST_CASE ( test_memory_buffer_ro )

◆ BOOST_AUTO_TEST_CASE() [2/5]

BOOST_AUTO_TEST_CASE ( test_read_events )

◆ BOOST_AUTO_TEST_CASE() [3/5]

BOOST_AUTO_TEST_CASE ( test_scanner )

◆ BOOST_AUTO_TEST_CASE() [4/5]

BOOST_AUTO_TEST_CASE ( test_small_frames )

◆ BOOST_AUTO_TEST_CASE() [5/5]

BOOST_AUTO_TEST_CASE ( test_standard )

◆ create_frame()

static build_frame_type create_frame ( frame_version_type Version,
start_time_type Start,
dt_type Dt )
static

◆ do_init()

bool do_init ( )

◆ filename_source()

const std::string & filename_source ( int Spec = FRAME_SPEC_CURRENT)
inline

◆ frameh()

template<frame_version_type >
build_frame_type frameh ( start_time_type StartTime,
dt_type Dt )

◆ frameh< 8 >()

template<>
build_frame_type frameh< 8 > ( start_time_type StartTime,
dt_type Dt )

◆ frameh< 9 >()

template<>
build_frame_type frameh< 9 > ( start_time_type StartTime,
dt_type Dt )

◆ TEST_DIR()

const std::string & TEST_DIR ( )
inline

◆ test_dynamic_memory_buffer()

void test_dynamic_memory_buffer ( )

◆ test_memory_buffer()

void test_memory_buffer ( )

◆ verify_fileBaseName() [1/2]

bool verify_fileBaseName ( const std::string Source)
inline

◆ verify_fileBaseName() [2/2]

bool verify_fileBaseName ( IFrameStream & Source,
const std::string & fileBaseName_expected )
inline

Variable Documentation

◆ HAS_BEEN_INITIALIZED

const bool HAS_BEEN_INITIALIZED = do_init( )
static