ldas-tools-framecpp 3.0.4
Loading...
Searching...
No Matches
FrSample.cc File Reference
#include <algorithm>
#include <iostream>
#include <set>
#include <sstream>
#include <stdexcept>
#include <string>
#include <type_traits>
#include <vector>
#include <boost/algorithm/string.hpp>
#include <boost/program_options.hpp>
#include <boost/shared_array.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/serialization/strong_typedef.hpp>
#include "ldastoolsal/MemChecker.hh"
#include "ldastoolsal/CommandLineOptions.hh"
#include "ldastoolsal/fstream.hh"
#include "ldastoolsal/gpstime.hh"
#include "ldastoolsal/types.hh"
#include "framecpp/Common/FrameSpec.hh"
#include "framecpp/Common/CheckSum.hh"
#include "framecpp/Common/IOStream.hh"
#include "framecpp/Common/FrameBuffer.hh"
#include "framecpp/Common/FrameStream.hh"
#include "framecpp/FrameCPP.hh"
#include "framecpp/FrameH.hh"
#include "framecpp/FrAdcData.hh"
#include "framecpp/FrDetector.hh"
#include "framecpp/FrEvent.hh"
#include "framecpp/FrHistory.hh"
#include "framecpp/FrMsg.hh"
#include "framecpp/FrProcData.hh"
#include "framecpp/FrRawData.hh"
#include "framecpp/FrSerData.hh"
#include "framecpp/FrSimData.hh"
#include "framecpp/FrSimEvent.hh"
#include "framecpp/FrSummary.hh"
#include "framecpp/FrTable.hh"
#include "framecpp/FrVect.hh"
#include "framecpp/Dimension.hh"
#include "FrSample.hh"
#include "FrSample3.tcc"
#include "FrSample4.tcc"
#include "FrSample6.tcc"
#include "FrSample7.tcc"
#include "FrSample8.tcc"
#include "FrSample9.tcc"
Include dependency graph for FrSample.cc:

Classes

class  CommandLine
 Class to handle command line options for this application. More...
 

Namespaces

namespace  std
 

Macros

#define BOOST_TEST_NO_MAIN
 
#define DATA_TYPE(A)
 

Typedefs

typedef LDASTools::AL::CommandLineOptions CommandLineOptions
 
typedef CommandLineOptions::Option Option
 
typedef CommandLineOptions::OptionSet OptionSet
 
typedef std::set< std::string > channel_set_type
 
typedef boost::shared_ptr< FrameHframe_h_type
 
typedef boost::shared_ptr< FrAdcDatafr_adc_data_type
 
typedef boost::shared_ptr< FrRawDatafr_raw_data_type
 
typedef boost::shared_ptr< FrProcDatafr_proc_data_type
 
typedef boost::shared_ptr< FrSerDatafr_ser_data_type
 
typedef boost::shared_ptr< FrSimDatafr_sim_data_type
 
typedef boost::shared_ptr< FrVectfr_vect_type
 
typedef std::string detector_type
 

Functions

 BOOST_STRONG_TYPEDEF (INT_4U, version_type)
 
std::istream & std::operator>> (std::istream &InputStream, LDASTools::AL::GPSTime &StartTime)
 
std::istream & std::operator>> (std::istream &InputStream, channel_set_type &ChannelSet)
 
static void all_type_frame (const string &Type, const channel_set_type &ChannelSet, const GPSTime &Start, const INT_4U DeltaT, const INT_4U Iterations, const version_type Version, const CommandLine &CommandLineArgs)
 
template<class ChannelType >
static void all_type_iteration (const INT_4U DeltaT, const channel_set_type &ListOfChannels, frame_h_type Frame, INT_4U *Channel, INT_4U Iteration, const CommandLine &CommandLineArgs)
 
template<class T >
static std::string data_type ()
 
template<class T , class ChannelType >
static boost::shared_ptr< ChannelType > ramped_channel (INT_4U DeltaT, INT_4U *Channel, INT_4U Iteration, T Start, T Stop, T Inc, INT_4U SampleRate, const CommandLine &CommandLineArgs, const char *IFO="Z0")
 
template<class T >
static boost::shared_array< T > ramp_data_create (INT_4U Samples, T Start, T Stop, T Inc)
 
template<class T >
static string ramped_name (INT_4U Iteration, const char *IFO)
 
template<class T >
static fr_vect_type ramped_vector (INT_4U DeltaT, INT_4U SampleRate, INT_4U Iteration, T Start, T Stop, T Inc, const char *IFO)
 
void test_frame (version_type Version)
 
void depart (int ExitCode)
 
int main (int ArgC, char *ArgV[])
 
template<class ChannelType >
auto get_channel_ifo ()
 
template<class ChannelType >
auto & get_channel_reference (frame_h_type Frame)
 
template<class ChannelType >
boost::shared_ptr< ChannelType > create_channel (const std::string &ChannelName, INT_4U *Channel, INT_4U SampleRate, const CommandLine &CommandLineArgs)
 

Macro Definition Documentation

◆ BOOST_TEST_NO_MAIN

#define BOOST_TEST_NO_MAIN

◆ DATA_TYPE

#define DATA_TYPE ( A)
Value:
template <> \
std::string data_type< A >( ) \
{ \
return #A; \
}
static std::string data_type()
Definition FrSample.cc:187

Typedef Documentation

◆ channel_set_type

typedef std::set< std::string > channel_set_type

◆ CommandLineOptions

typedef LDASTools::AL::CommandLineOptions CommandLineOptions

◆ detector_type

typedef std::string detector_type

◆ fr_adc_data_type

typedef boost::shared_ptr< FrAdcData > fr_adc_data_type

◆ fr_proc_data_type

typedef boost::shared_ptr< FrProcData > fr_proc_data_type

◆ fr_raw_data_type

typedef boost::shared_ptr< FrRawData > fr_raw_data_type

◆ fr_ser_data_type

typedef boost::shared_ptr< FrSerData > fr_ser_data_type

◆ fr_sim_data_type

typedef boost::shared_ptr< FrSimData > fr_sim_data_type

◆ fr_vect_type

typedef boost::shared_ptr< FrVect > fr_vect_type

◆ frame_h_type

typedef boost::shared_ptr< FrameH > frame_h_type

◆ Option

typedef CommandLineOptions::Option Option

◆ OptionSet

typedef CommandLineOptions::OptionSet OptionSet

Function Documentation

◆ all_type_frame()

static void all_type_frame ( const string & Type,
const channel_set_type & ChannelSet,
const GPSTime & Start,
const INT_4U DeltaT,
const INT_4U Iterations,
const version_type Version,
const CommandLine & CommandLineArgs )
static

◆ all_type_iteration()

template<class ChannelType >
static void all_type_iteration ( const INT_4U DeltaT,
const channel_set_type & ListOfChannels,
frame_h_type Frame,
INT_4U * Channel,
INT_4U Iteration,
const CommandLine & CommandLineArgs )
static

◆ BOOST_STRONG_TYPEDEF()

BOOST_STRONG_TYPEDEF ( INT_4U ,
version_type  )

◆ create_channel()

template<class ChannelType >
boost::shared_ptr< ChannelType > create_channel ( const std::string & ChannelName,
INT_4U * Channel,
INT_4U SampleRate,
const CommandLine & CommandLineArgs )

◆ data_type()

template<class T >
static std::string data_type ( )
static

◆ depart()

static void depart ( int ExitCode)
inline

◆ get_channel_ifo()

template<class ChannelType >
auto get_channel_ifo ( )

◆ get_channel_reference()

template<class ChannelType >
auto & get_channel_reference ( frame_h_type Frame)

◆ main()

int main ( int ArgC,
char * ArgV[] )

◆ ramp_data_create()

template<class T >
static boost::shared_array< T > ramp_data_create ( INT_4U Samples,
T Start,
T Stop,
T Inc )
static

◆ ramped_channel()

template<class T , class ChannelType >
static boost::shared_ptr< ChannelType > ramped_channel ( INT_4U DeltaT,
INT_4U * Channel,
INT_4U Iteration,
T Start,
T Stop,
T Inc,
INT_4U SampleRate,
const CommandLine & CommandLineArgs,
const char * IFO = "Z0" )
static

◆ ramped_name()

template<class T >
static string ramped_name ( INT_4U Iteration,
const char * IFO )
static

◆ ramped_vector()

template<class T >
static fr_vect_type ramped_vector ( INT_4U DeltaT,
INT_4U SampleRate,
INT_4U Iteration,
T Start,
T Stop,
T Inc,
const char * IFO )
static

◆ test_frame()

void test_frame ( version_type Version)