Classes | Functions | Variables
testReadStream.cc File Reference
#include <utl/Test.h>
#include <utl/Math.h>
#include <tst/Verify.h>
#include <utl/ReadStream.h>
#include <cppunit/extensions/HelperMacros.h>
#include <cstdio>

Go to the source code of this file.

Classes

struct  Data
 
class  testReadStream
 

Functions

 CPPUNIT_TEST_SUITE_REGISTRATION (testReadStream)
 
istream & operator>> (istream &is, Data &d)
 

Variables

const string file
 
const Data result []
 
const string stringResult []
 
const string stringResultNoStripping []
 

Detailed Description

Test ReadStream class

Author
Darko Veberic
Date
23 Sep 2012

Definition in file testReadStream.cc.

Function Documentation

CPPUNIT_TEST_SUITE_REGISTRATION ( testReadStream  )
istream& operator>> ( istream &  is,
Data d 
)
inline

Definition at line 32 of file testReadStream.cc.

References Data::fFlag, Data::fPressure, and Data::fTime.

Variable Documentation

const string file
Initial value:
=
"1 13.9 0\n"
" 2 18 1 \t\n"
"#2 19 1\n"
"3 123/* foo */ 0\n"
"4 3 1 //comment \n"
" \t \t \n"
"5 22 0 # another\n"
"6 11 \r 1 # /* bar \n"
"7 12 0 // what # fool\n"
"\n"
"8 14 1 # baz // some \n"
"/* cc */ 9 15 1 /**//**/ \n"
"/* crap *//* more crap */ \n"
"///* an abundance of crap \n"
"\t 10 /*foo*/16 /* *//**/ 0 \n"

Definition at line 38 of file testReadStream.cc.

Referenced by RdAirplane::Ads_bDataBase::_addAirplanesFromLogFile(), RdAirplane::RdAirplaneArrivalDirectionSetter::_readInEventAirplaneAssociations(), UnivTimeKG::TimeModel::addInterpolationTable(), aeraWriteLogfile(), fwk::CentralConfig::CheckFingerprints(), corsika_fopen(), DumpKeys(), LightAtDiaphragmSimulatorKG::LightAtDiaphragmSimulator::EvaluateDirectCherenkovHits(), io::FDasEventFile::FindEvent(), RdChannelGalacticConstantsGenerator::RdChannelGalacticConstantsGenerator::Finish(), SdSimpleSimKG::SdSimpleSim::Finish(), SpotPhotonGeneratorOG::SpotPhotonGenerator::FinishTelescope(), fwk::CentralConfig::GetConfig(), EventGeneratorOG::EventGenerator::Init(), sdet::T2StatFileManager::Init(), CachedDirectInjectorOG::CachedDirectInjector::Init(), sdet::T2LifeROOTFileManager::Init(), main(), io::CorsikaShowerFile::Read(), RdREASSimPreparatorNG::RdREASSimPreparatorNG::RecordFile(), EventFileReaderOG::EventFileReader::Run(), AtmosphericProfileNS::AtmosphericProfile::Run(), TimeModelTestKG::TimeModelTest::Run(), sdet::T2Life::SetFile(), testZHAireSFile::testConstruct(), testEVAFile::testConstruct(), testCONEXFile::testConstruct(), testREASFile::testConstruct(), testArtificialShowerFile::testConstruct(), testSenecaShowerFile::testConstruct(), testCorsikaShowerFile::testConstruct(), testAiresShowerFile::testConstruct(), testMd5Sum::testMd5OnFile(), testReadStream::TestVectorData(), testReadStream::TestVectorString(), testReadStream::TestVectorStringNoStripping(), testOfflineEvent::testWriteEvent(), UpTimePeriod::UpTimePeriod(), and anal::WeatherStore< Data, RawRow >::WeatherStore().

const Data result[]
Initial value:
= {
{ 1, 13.9, false },
{ 2, 18, true },
{ 3, 123, false },
{ 4, 3, true },
{ 5, 22, false },
{ 6, 11, true },
{ 7, 12, false },
{ 8, 14, true },
{ 9, 15, true },
{ 10, 16, false }
}

Definition at line 56 of file testReadStream.cc.

Referenced by RdPolarizationReconstructor::StokesParameters::AnalyticMethodOneChannelVarianceHelper(), SdEventPosteriorSelectorOG::SdEventPosteriorSelector::CalculateT5PosteriorTrigger(), RdWaveFit::RdWaveFit::CallConicalWaveFit(), RdPreWaveFitter::RdPreWaveFitter::CallPlaneWaveFit(), RdWaveFit::RdWaveFit::CallPlaneWaveFit(), RdWaveFit::RdWaveFit::CallSphericalWaveFit(), RdWaveFit::RdWaveFit::CallSphericalWaveFitVarC(), utl::CoordinateTransformer::CollectTransformationFrom(), ParametricMuonProfileNS::ParametricMuonProfile::EvaluateLocalProfile(), ParametricMuonProfileNS::ParametricMuonProfile::EvaluateProfile(), det::XXMLManager< Info >::FindRoot(), ScintillatorLDFFinderKG::ScintillatorLDFFinder::FitLDFSimplified(), LDFFinderKG::LDFFinder::FitLDFSimplified(), RdGeoCeLDFFitter::getAtmosphere(), rdet::RBadStationSQLManager::GetBadPeriod(), Sd5T5Tester::Sd5T5Tester::GetCrown(), RdGeoCeLDFFitter::getDensity(), rdet::RStationListXMLManager::GetListOfChannelIds(), rdet::RSimulationStationListManager::GetListOfChannelIds(), fdet::FCalibSQLManager::GetPixelTOffsetId(), utl::Deprecator::GetReport(), fwk::ParametricGeoMagneticField::GetXYZ(), rdet::AntennaType::InterpolateLinear(), FdSimEventCheckerOG::FdSimEventChecker::InterpolatePCGFAcceptanceMap(), cic::AttenuationFit::CICFitter< CIC >::Minimize(), EventGeneratorOG::MyPow10(), otoa::err::CalculateFdCorePosition::operator()(), otoa::err::CalculateFdArrivalDirection::operator()(), Spline::Function< 3, KnotVector, BasisFunction >::operator()(), SdHorizontalReconstructionNS::ShowerFrontFunction::operator()(), SdHorizontalReconstructionNS::ShowerSizeFunction::operator()(), otoa::err::CalculateEquatorialCoordinates::operator()(), otoa::err::CalculateGalacticCoordinates::operator()(), utl::Spline::Interpolator1D::operator()(), Spline::Function< 1, AKnotVector, ABasisFunction >::operator()(), utl::Spline::Interpolator2D::operator()(), utl::Spline::Interpolator3D::operator()(), utl::operator*(), utl::SVector< 3, double >::operator-(), utl::Trace< std::complex< double > >::operator-(), TabularTankResponseNS::TankResponse::PDF(), FdProfileReconstructorKG::FdProfileReconstructor::ReFitProfile(), EventFileReaderOG::EventFileReader::Run(), MyPyModuleNS::MyPyModule::Run(), RdChannelBeaconSimulator::RdChannelBeaconSimulator::Run(), Rd2dLDFFitter::Rd2dLDFFitter::Run(), RdStationAssociator::RdStationAssociator::Run(), FdProfileConstrainedGeometryFit::PCGFitter::Run(), FdProfileConstrainedGeometryFitPG::PCGFitter::Run(), ScintillatorLDFFinderKG::ScintillatorLDFFinder::Run(), RdPreWaveFitter::RdPreWaveFitter::Run(), RdHyperbolicWavefrontFit::RdHyperbolicWavefrontFit::Run(), LDFFinderKG::LDFFinder::Run(), RdLDFFitter::RdLDFFitter::Run(), RdWaveFit::RdWaveFit::Run(), Spline::Uniform::BasisFunction::switch(), Spline::General::BasisFunction::switch(), testErrorPropagation::TestErrorPropagation(), testReadStream::TestVectorData(), FdTriggerSimulatorOG::FdTriggerSimulator::TLTSim(), io::VROOTFile::VROOTFile(), RdBeamTimeOptimizer::RdBeamTimeOptimizer::xtrace(), and RdBeamFormer::RdBeamFormer::xtrace().

const string stringResult[]
Initial value:
= {
"1 13.9 0",
"2 18 1",
"3 123 0",
"4 3 1",
"5 22 0",
"6 11 1",
"7 12 0",
"8 14 1",
"9 15 1",
"10 16 0"
}

Definition at line 70 of file testReadStream.cc.

Referenced by testReadStream::TestVectorString().

const string stringResultNoStripping[]
Initial value:
= {
"1 13.9 0",
" 2 18 1 \t",
"#2 19 1",
"3 123/* foo */ 0",
"4 3 1 //comment ",
" \t \t ",
"5 22 0 # another",
"6 11 \r 1 # /* bar ",
"7 12 0 // what # fool",
"8 14 1 # baz // some ",
"/* cc */ 9 15 1 /**//**/ ",
"/* crap *//* more crap */ ",
"///* an abundance of crap ",
"\t 10 /*foo*/16 /* *//**/ 0 "
}

Definition at line 84 of file testReadStream.cc.

Referenced by testReadStream::TestVectorStringNoStripping().


, generated on Tue Sep 26 2023.