PSEvt/src/Source.cpp File Reference

#include "PSEvt/Source.h"
#include <vector>
#include <cassert>
#include <map>
#include <iostream>
#include <boost/algorithm/string/trim.hpp>
#include <boost/algorithm/string/split.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/lexical_cast.hpp>
#include "MsgLogger/MsgLogger.h"
#include "PSEvt/Exceptions.h"
#include "PSEvt/EventKey.h"

Go to the source code of this file.

Namespaces

namespace  PSEvt

Functions

Pds::Src parse (std::string spec)
std::map< std::string, Pds::DetInfo::Detector > initName2Det ()
std::map< std::string, Pds::DetInfo::Device > initName2Dev ()
std::string stripType (const std::string &spec, int typeLen)
bool parseBldInfo (std::string spec, Pds::Src *src)
std::pair< std::string, unsigned > splitDetId (const std::string &spec, char sep)
bool parseDetInfo (const std::string &spec, Pds::Src *src, char sep1, char sep2)
bool parseDetInfo (std::string spec, Pds::Src *src)
bool parseProcInfo (std::string spec, Pds::Src *src)
Pds::Src parse (std::string spec)
std::map< std::string, Pds::DetInfo::Detector > initName2Det ()
std::map< std::string, Pds::DetInfo::Device > initName2Dev ()

Variables

const char * logger = "PSEvt::Source"
const std::map< std::string,
Pds::DetInfo::Detector > 
name2det = initName2Det()
const std::map< std::string,
Pds::DetInfo::Device > 
name2dev = initName2Dev()


Function Documentation

std::map<std::string, Pds::DetInfo::Detector> @12::initName2Det (  )  [static]

Definition at line 521 of file Source.cpp.

References src::det_interface::Detector(), and name2det.

std::map<std::string, Pds::DetInfo::Detector> @11::initName2Det (  )  [static]

std::map<std::string, Pds::DetInfo::Device> @12::initName2Dev (  )  [static]

Definition at line 555 of file Source.cpp.

References name2dev.

std::map<std::string, Pds::DetInfo::Device> @11::initName2Dev (  )  [static]

Pds::Src @12::parse ( std::string  spec  )  [static]

Definition at line 476 of file Source.cpp.

References logger, MsgLog, parseBldInfo(), parseDetInfo(), parseProcInfo(), and stripType().

Pds::Src @11::parse ( std::string  spec  )  [static]

Referenced by PSEvt::Source::srcMatch().

bool @12::parseBldInfo ( std::string  spec,
Pds::Src *  src 
) [static]

Definition at line 335 of file Source.cpp.

References logger, and MsgLog.

Referenced by parse().

bool @12::parseDetInfo ( std::string  spec,
Pds::Src *  src 
) [static]

Definition at line 424 of file Source.cpp.

References src::det_interface::Detector(), logger, MsgLog, and parseDetInfo().

bool @12::parseDetInfo ( const std::string &  spec,
Pds::Src *  src,
char  sep1,
char  sep2 
) [static]

Definition at line 377 of file Source.cpp.

References src::det_interface::Detector(), name2det, name2dev, and splitDetId().

Referenced by parse(), and parseDetInfo().

bool @12::parseProcInfo ( std::string  spec,
Pds::Src *  src 
) [static]

Definition at line 440 of file Source.cpp.

References logger, and MsgLog.

Referenced by parse().

std::pair<std::string, unsigned> @12::splitDetId ( const std::string &  spec,
char  sep 
) [static]

Definition at line 358 of file Source.cpp.

Referenced by parseDetInfo().

std::string @12::stripType ( const std::string &  spec,
int  typeLen 
) [static]

Definition at line 310 of file Source.cpp.

Referenced by parse().


Variable Documentation

const char* logger = "PSEvt::Source" [static]

Definition at line 43 of file Source.cpp.

const std::map<std::string, Pds::DetInfo::Detector> name2det = initName2Det() [static]

Definition at line 49 of file Source.cpp.

Referenced by initName2Det(), and parseDetInfo().

const std::map<std::string, Pds::DetInfo::Device> name2dev = initName2Dev() [static]

Definition at line 52 of file Source.cpp.

Referenced by initName2Dev(), and parseDetInfo().


Generated on 19 Dec 2016 for PSANAclasses by  doxygen 1.4.7