IData/src/Dataset.cpp File Reference

#include "IData/Dataset.h"
#include <cctype>
#include <boost/lexical_cast.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/filesystem.hpp>
#include <boost/regex.hpp>
#include <boost/format.hpp>
#include "ExpNameDb/ExpNameDatabase.h"
#include "IData/Exceptions.h"
#include "MsgLogger/MsgLogger.h"

Go to the source code of this file.

Namespaces

namespace  IData

Functions

bool parseExpName (const std::string &exp, unsigned &expId, std::string &instrName, std::string &expName)
void parseRuns (const std::string &str, IData::Dataset::Runs &runs)
void parseStreams (const std::string &str, IData::Dataset::Streams &streams)
bool isFileName (const std::string &str)
template<class T>
std::set< unsigned > listOfPairsAsSet (const T &listOfPairs)
boost::regex constructDataFileRegEx (bool hdf5, bool smd, const std::string &experiment, unsigned expID)
template<class T>
std::vector< unsigned > listOfPairsAsVector (const T &listOfPairs)
bool parseExpName (const std::string &exp, unsigned &expId, std::string &instrName, std::string &expName)
void parseRuns (const std::string &str, IData::Dataset::Runs &runs)
void parseStreams (const std::string &str, IData::Dataset::Streams &streams)
bool isFileName (const std::string &str)

Variables

const char * logger = "IData.Dataset"


Function Documentation

boost::regex @0::constructDataFileRegEx ( bool  hdf5,
bool  smd,
const std::string &  experiment,
unsigned  expID 
) [static]

return regular expression for the basename of a datafile, either hdf5 or xtc. For hdf5, match the run. for xtc, match both the run and stream.

Definition at line 77 of file Dataset.cpp.

References PSTime::TimeFormat::format().

Referenced by IData::Dataset::files().

bool @1::isFileName ( const std::string &  str  )  [static]

Definition at line 657 of file Dataset.cpp.

bool @0::isFileName ( const std::string &  str  )  [static]

Referenced by IData::Dataset::Dataset().

template<class T>
std::set<unsigned> @0::listOfPairsAsSet ( const T &  listOfPairs  )  [static]

Definition at line 61 of file Dataset.cpp.

template<class T>
std::vector<unsigned> @0::listOfPairsAsVector ( const T &  listOfPairs  )  [static]

Definition at line 93 of file Dataset.cpp.

Referenced by IData::Dataset::runsAsList(), and IData::Dataset::streamsAsList().

bool @1::parseExpName ( const std::string &  exp,
unsigned &  expId,
std::string &  instrName,
std::string &  expName 
) [static]

Definition at line 509 of file Dataset.cpp.

bool @0::parseExpName ( const std::string &  exp,
unsigned &  expId,
std::string &  instrName,
std::string &  expName 
) [static]

Referenced by IData::Dataset::Dataset(), IData::Dataset::parseHdfFileName(), IData::Dataset::parseXtcFileName(), IData::Dataset::setAppExpName(), and IData::Dataset::setDefOption().

void @1::parseRuns ( const std::string &  str,
IData::Dataset::Runs runs 
) [static]

Definition at line 566 of file Dataset.cpp.

void @0::parseRuns ( const std::string &  str,
IData::Dataset::Runs runs 
) [static]

Referenced by IData::Dataset::Dataset(), IData::Dataset::parseHdfFileName(), and IData::Dataset::parseXtcFileName().

void @1::parseStreams ( const std::string &  str,
IData::Dataset::Streams streams 
) [static]

Definition at line 609 of file Dataset.cpp.

void @0::parseStreams ( const std::string &  str,
IData::Dataset::Streams streams 
) [static]

Referenced by IData::Dataset::Dataset().


Variable Documentation

const char* logger = "IData.Dataset" [static]

Definition at line 43 of file Dataset.cpp.

Referenced by PSXtcInput::IndexXtcReader::add(), PSEvt::DamageMap::addSrcDamage(), psana::EventKeys::beginCalibCycle(), psana::EventKeys::beginJob(), psana::EventKeys::beginRun(), psana::PSAna::dataSource(), MsgLogger::MsgLogStream::emit_content(), psana::EventKeys::endCalibCycle(), psana::EventKeys::endJob(), psana::EventKeys::endRun(), psana::EventKeys::event(), psana::ExpNameFromConfig::ExpNameFromConfig(), psana::ExpNameFromDs::ExpNameFromDs(), IData::Dataset::files(), MsgLogger::MsgLoggerImpl::getLogger(), guessType(), PSXtcInput::Index::Index(), PSXtcInput::IndexXtcReader::jump(), psana::DynLoader::loadPackageLib(), makeLogger(), psana::InputIter::next(), parse(), parseBldInfo(), parseDetInfo(), IData::Dataset::parseHdfFileName(), parseProcInfo(), IData::Dataset::parseXtcFileName(), PSXtcInput::myLevelIter::process(), PSShmemInput::ShmemMonitorClient::processDgram(), PSXtcInput::RunMap::RunMap(), IData::Dataset::setDefOption(), PSXtcInput::Index::setrun(), PSEnv::EpicsStoreImpl::store(), PSEnv::EpicsStoreImpl::storeAlias(), PSXtcInput::IndexRun::times(), and PSXtcInput::XtcIndexInputModule::XtcIndexInputModule().


Generated on 19 Dec 2016 for PSANAclasses by  doxygen 1.4.7