Skip to content
Snippets Groups Projects
Commit 7a483aa7 authored by Ruud Overeem's avatar Ruud Overeem
Browse files

BugID: 826

Renamed locateKey to locateModule and fixed bug.
parent 30b1d7ec
No related branches found
No related tags found
No related merge requests found
...@@ -156,8 +156,9 @@ public: ...@@ -156,8 +156,9 @@ public:
// Checks if the given Key is defined in the ParameterSet. // Checks if the given Key is defined in the ParameterSet.
bool isDefined (const string& searchKey) const; bool isDefined (const string& searchKey) const;
// Searches for a key whose name end in the given shortKey. // Searches for a module whose short nam is given and returns it position
string locateKey(const string& shortKey) const; // in the parameterSet.
string locateModule(const string& shortName) const;
// Returns the value as a boolean. // Returns the value as a boolean.
bool getBool (const string& aKey) const; bool getBool (const string& aKey) const;
...@@ -299,9 +300,9 @@ inline bool ParameterSet::isDefined (const string& searchKey) const ...@@ -299,9 +300,9 @@ inline bool ParameterSet::isDefined (const string& searchKey) const
return itsSet->isDefined (searchKey); return itsSet->isDefined (searchKey);
} }
inline string ParameterSet::locateKey(const string& shortKey) const inline string ParameterSet::locateModule(const string& shortName) const
{ {
return (itsSet->locateKey(shortKey)); return (itsSet->locateModule(shortName));
} }
//# getBool(key) //# getBool(key)
......
...@@ -160,9 +160,9 @@ public: ...@@ -160,9 +160,9 @@ public:
bool isDefined (const string& searchKey) const bool isDefined (const string& searchKey) const
{ return (find(searchKey) != end()); }; { return (find(searchKey) != end()); };
// Searches for a key whose name end in the given shortKey. // Searches for a module whose name end in the given modulename.
// e.g: a.b.c.d.param=xxx ; locateKey('d') --> 'a.b.c.' // e.g: a.b.c.d.param=xxx ; locateModule('d') --> 'a.b.c.'
string locateKey(const string& shortKey) const; string locateModule(const string& shortName) const;
// Return the 'metadata' from the parameterCollection. // Return the 'metadata' from the parameterCollection.
// string getName () const; // string getName () const;
......
...@@ -885,11 +885,11 @@ int32 indexValue (const string& label, char indexMarker[2]) ...@@ -885,11 +885,11 @@ int32 indexValue (const string& label, char indexMarker[2])
} }
// //
// locateKey(hortKey) // locateModule(shortKey)
// //
// Searches for a key ending in the given 'shortkey' and returns it full name. // Searches for a key ending in the given 'shortkey' and returns it full name.
// e.g: a.b.c.d.param=xxxx --> locateKey(d)-->a.b.c. // e.g: a.b.c.d.param=xxxx --> locateKey(d)-->a.b.c.
string ParameterSetImpl::locateKey(const string& shortKey) const string ParameterSetImpl::locateModule(const string& shortKey) const
{ {
const_iterator iter = begin(); const_iterator iter = begin();
const_iterator eom = end(); const_iterator eom = end();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment