ADTF  3.18.2
macroresolver.h
Go to the documentation of this file.
1 
7 #ifndef _MACRO_RESOLVER_HEADER_
8 #define _MACRO_RESOLVER_HEADER_
9 
10 namespace A_UTILS_NS
11 {
12 
29 class DOEXPORT cMacroResolver
30 {
32 
33  protected:
35 
36  public:
43 
49  virtual ~cMacroResolver();
50 
62  tResult SetValues(const cStringMap& mapValues);
63 
76  tResult SetValue(const cString& strKey, const cString& strValue);
77 
87  cString GetValue(const cString& strKey) const;
88 
106  cString Resolve(const cString& strSource) const;
107 
108 };
109 
110 } // namespace A_UTILS_NS
111 
112 #endif // _MACRO_RESOLVER_HEADER_
Class for resolving macros inside a string.
Definition: macroresolver.h:30
cString Resolve(const cString &strSource) const
Resolve macros.
cMacroResolver()
Constructor that initializes an empty cMacroResolver object.
cStringMap m_mapValues
Internally used string map.
Definition: macroresolver.h:34
cString GetValue(const cString &strKey) const
Get specific macro value.
tResult SetValues(const cStringMap &mapValues)
Set string map to be used for macro replacement.
tResult SetValue(const cString &strKey, const cString &strValue)
Set specific macro value.
virtual ~cMacroResolver()
Destructor.
String map class.
Definition: stringmap.h:20
#define A_UTILS_D(__pclassname_)
Helper macro for d-pattern definitions.
Definition: d_ptr.h:270
ADTF A_UTIL Namespace - Within adtf this is used as adtf::util or adtf_util.
Definition: d_ptr.h:11