PSEvt::AliasMap Class Reference
[PSEvt package]

Implementation of the alias map used by proxy dictionaries. More...

#include <AliasMap.h>

List of all members.

Public Member Functions

 AliasMap ()
 Default constructor makes empty alias map.
 ~AliasMap ()
void add (const std::string &alias, const Pds::Src &src)
 Add one more alias to the map.
void clear ()
 remove all aliases
Pds::Src src (const std::string &alias) const
 Find matching Src for given alias name.
std::string alias (const Pds::Src &src) const
 Find matching alias name for given Src.
void addsrc (const Pds::Src &name)
const std::vector< Pds::Src > & srcs ()

Classes

struct  SrcCmp


Detailed Description

Implementation of the alias map used by proxy dictionaries.

Alias map is a bi-directional mapping between alias name and corresponding Pds::Src instance.

Note:
This software was developed for the LCLS project. If you use all or part of it, please give an appropriate acknowledgment.
Version:
Id
AliasMap.h 11492 2016-03-16 04:30:13Z cpo@SLAC.STANFORD.EDU
Author:
Andy Salnikov

Definition at line 57 of file AliasMap.h.


Constructor & Destructor Documentation

PSEvt::AliasMap::AliasMap (  ) 

Default constructor makes empty alias map.

Definition at line 40 of file AliasMap.cpp.

PSEvt::AliasMap::~AliasMap (  ) 

Definition at line 50 of file AliasMap.cpp.


Member Function Documentation

void PSEvt::AliasMap::add ( const std::string &  alias,
const Pds::Src &  src 
)

Add one more alias to the map.

Definition at line 56 of file AliasMap.cpp.

Referenced by BOOST_AUTO_TEST_CASE().

void PSEvt::AliasMap::addsrc ( const Pds::Src &  name  ) 

Definition at line 97 of file AliasMap.cpp.

std::string PSEvt::AliasMap::alias ( const Pds::Src &  src  )  const

Find matching alias name for given Src.

If specified Src does not exist in the map then empty string will be returned.

Parameters:
[in] src Src instance
Returns:
Alias string (possibly empty)

Definition at line 82 of file AliasMap.cpp.

void PSEvt::AliasMap::clear (  ) 

remove all aliases

Definition at line 64 of file AliasMap.cpp.

Pds::Src PSEvt::AliasMap::src ( const std::string &  alias  )  const

Find matching Src for given alias name.

If specified alias name does not exist in the map then default-constructed instance of Src will be returned.

Parameters:
[in] alias Alias name
Returns:
Src instance

Definition at line 72 of file AliasMap.cpp.

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

const std::vector< Pds::Src > & PSEvt::AliasMap::srcs (  ) 

Definition at line 105 of file AliasMap.cpp.


The documentation for this class was generated from the following files:
Generated on 19 Dec 2016 for PSANAclasses by  doxygen 1.4.7