Commit 837d1e6a authored by Pavel Vainerman's avatar Pavel Vainerman

(Configuration): Исправил баг. Обращение через "conf->"

parent e482a922
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
Name: libuniset Name: libuniset
Version: 1.3 Version: 1.3
Release: alt1 Release: alt2
Summary: UniSet - library for building distributed industrial control systems Summary: UniSet - library for building distributed industrial control systems
License: GPL License: GPL
Group: Development/C++ Group: Development/C++
...@@ -213,6 +213,9 @@ rm -f %buildroot%_libdir/*.la ...@@ -213,6 +213,9 @@ rm -f %buildroot%_libdir/*.la
%changelog %changelog
* Mon Dec 26 2011 Pavel Vainerman <pv@altlinux.ru> 1.3-alt2
- fixed buf in Configuration
* Mon Dec 26 2011 Pavel Vainerman <pv@altlinux.ru> 1.3-alt1 * Mon Dec 26 2011 Pavel Vainerman <pv@altlinux.ru> 1.3-alt1
- Added support for multiple profiles(Configuration) simultaneously - Added support for multiple profiles(Configuration) simultaneously
......
...@@ -782,7 +782,7 @@ void Configuration::createNodesList() ...@@ -782,7 +782,7 @@ void Configuration::createNodesList()
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
void Configuration::initNode( UniSetTypes::NodeInfo& ninfo, UniXML_iterator& it ) void Configuration::initNode( UniSetTypes::NodeInfo& ninfo, UniXML_iterator& it )
{ {
if( ninfo.id == conf->getLocalNode() ) if( ninfo.id == getLocalNode() )
ninfo.connected = true; ninfo.connected = true;
else else
ninfo.connected = false; ninfo.connected = false;
...@@ -807,7 +807,7 @@ xmlNode* Configuration::initDebug( DebugStream& deb, const string& _debname ) ...@@ -807,7 +807,7 @@ xmlNode* Configuration::initDebug( DebugStream& deb, const string& _debname )
string debname(_debname); string debname(_debname);
xmlNode* dnode = conf->getNode(_debname); xmlNode* dnode = getNode(_debname);
if( dnode == NULL ) if( dnode == NULL )
deb << "(Configuration)(initDebug): WARNING! Not found conf. section for log '" << _debname << "'" << endl; deb << "(Configuration)(initDebug): WARNING! Not found conf. section for log '" << _debname << "'" << endl;
else else
...@@ -963,7 +963,7 @@ ObjectId Configuration::getSensorID( const std::string name ) ...@@ -963,7 +963,7 @@ ObjectId Configuration::getSensorID( const std::string name )
if( name.empty() ) if( name.empty() )
return DefaultObjectId; return DefaultObjectId;
return oind->getIdByName(conf->getSensorsSection()+"/"+name); return oind->getIdByName(getSensorsSection()+"/"+name);
} }
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
ObjectId Configuration::getControllerID( const std::string name ) ObjectId Configuration::getControllerID( const std::string name )
...@@ -971,7 +971,7 @@ ObjectId Configuration::getControllerID( const std::string name ) ...@@ -971,7 +971,7 @@ ObjectId Configuration::getControllerID( const std::string name )
if( name.empty() ) if( name.empty() )
return DefaultObjectId; return DefaultObjectId;
return oind->getIdByName(conf->getControllersSection()+"/"+name); return oind->getIdByName(getControllersSection()+"/"+name);
} }
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
ObjectId Configuration::getObjectID( const std::string name ) ObjectId Configuration::getObjectID( const std::string name )
...@@ -979,7 +979,7 @@ ObjectId Configuration::getObjectID( const std::string name ) ...@@ -979,7 +979,7 @@ ObjectId Configuration::getObjectID( const std::string name )
if( name.empty() ) if( name.empty() )
return DefaultObjectId; return DefaultObjectId;
return oind->getIdByName(conf->getObjectsSection()+"/"+name); return oind->getIdByName(getObjectsSection()+"/"+name);
} }
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
ObjectId Configuration::getServiceID( const std::string name ) ObjectId Configuration::getServiceID( const std::string name )
...@@ -987,7 +987,7 @@ ObjectId Configuration::getServiceID( const std::string name ) ...@@ -987,7 +987,7 @@ ObjectId Configuration::getServiceID( const std::string name )
if( name.empty() ) if( name.empty() )
return DefaultObjectId; return DefaultObjectId;
return oind->getIdByName(conf->getServicesSection()+"/"+name); return oind->getIdByName(getServicesSection()+"/"+name);
} }
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
UniSetTypes::ObjectId Configuration::getNodeID( const std::string name, std::string alias ) UniSetTypes::ObjectId Configuration::getNodeID( const std::string name, std::string alias )
......
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