Commit 6078ac2d authored by Vitaly Lipatov's avatar Vitaly Lipatov

add string support for getIdByName

parent 32b858cc
...@@ -232,6 +232,10 @@ class UniversalInterface ...@@ -232,6 +232,10 @@ class UniversalInterface
{ {
return oind->getIdByName(name); return oind->getIdByName(name);
} }
inline UniSetTypes::ObjectId getIdByName(const string name)
{
return getIdByName(name.c_str());
}
/*! */ /*! */
inline std::string getNameById( UniSetTypes::ObjectId id ) inline std::string getNameById( UniSetTypes::ObjectId id )
......
...@@ -140,8 +140,8 @@ stCountOfQueueFull(0) ...@@ -140,8 +140,8 @@ stCountOfQueueFull(0)
{ {
/*! \warning UniverslalInterface */ /*! \warning UniverslalInterface */
tmr = CREATE_TIMER; tmr = CREATE_TIMER;
myname = section+"/"+name; myname = section + "/" + name;
myid = ui.getIdByName(myname.c_str()); myid = ui.getIdByName(myname);
if( myid == DefaultObjectId ) if( myid == DefaultObjectId )
{ {
unideb[Debug::WARN] << "name: ObjectsMap!!!" << endl; unideb[Debug::WARN] << "name: ObjectsMap!!!" << endl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment