Go to the documentation of this file.
5 #ifndef CCF_COMMON_NAME_MAPPING_HPP_H_
6 #define CCF_COMMON_NAME_MAPPING_HPP_H_
26 virtual void Load(
const std::string& name_mapping);
31 const std::string& secondary_name);
38 const std::string&
GetPrimaryName(
const std::string& secondary_name,
39 const bool tolerant =
true)
const;
44 const bool tolerant =
true)
const;
56 std::string m_mapping_file;
57 std::map<std::string, std::string> m_prim_to_sec_name_map;
58 std::map<std::string, std::string> m_sec_to_prim_name_map;
63 #endif // CCF_COMMON_NAME_MAPPING_HPP_H_
Class to be used as parent all CCF classes.
Definition: base.hpp:152
NameMapping()
Definition: nameMapping.cpp:13
const std::map< std::string, std::string > & GetPrimaryToSecondaryMap() const
Return the reference to the Primary to Secondary name map.
Definition: nameMapping.cpp:101
std::string ToString() const
Generate a sumamry string status of the object.
Definition: nameMapping.cpp:63
const std::map< std::string, std::string > & GetSecondaryToPrimaryMap() const
Return the reference to the Secondary to Primary name map.
Definition: nameMapping.cpp:106
const std::string & GetSecondaryName(const std::string &primary_name, const bool tolerant=true) const
Definition: nameMapping.cpp:73
bool HasNameMapping(const std::string &name) const
Return true if a mapping is defined for the given parameter.
Definition: nameMapping.cpp:53
~NameMapping()
Definition: nameMapping.cpp:17
const std::string & GetPrimaryName(const std::string &secondary_name, const bool tolerant=true) const
Definition: nameMapping.cpp:87
Implements a name mapping service, based on a Name Mapping File to be loaded and installed.
Definition: nameMapping.hpp:20
virtual void Load(const std::string &name_mapping)
Load the given Name Mapping.
Definition: nameMapping.cpp:21
Definition: appBase.cpp:8
void AddNameMapping(const std::string &primary_name, const std::string &secondary_name)
Definition: nameMapping.cpp:40