Commit fbed94ca authored by Pavel Vainerman's avatar Pavel Vainerman
parent 5a73a16c
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
Name: libuniset Name: libuniset
Version: 0.97 Version: 0.97
Release: eter9 Release: eter11
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++
...@@ -178,6 +178,12 @@ rm -f %buildroot%_libdir/*.la ...@@ -178,6 +178,12 @@ rm -f %buildroot%_libdir/*.la
%exclude %_pkgconfigdir/libUniSet.pc %exclude %_pkgconfigdir/libUniSet.pc
%changelog %changelog
* Wed Sep 23 2009 Pavel Vainerman <pv@altlinux.ru> 0.97-eter10
- new build
* Wed Sep 23 2009 Pavel Vainerman <pv@altlinux.ru> 0.97-eter9
- new mutex
* Tue Sep 22 2009 Pavel Vainerman <pv@etersoft.ru> 0.97-eter8 * Tue Sep 22 2009 Pavel Vainerman <pv@etersoft.ru> 0.97-eter8
- new build - new build
......
...@@ -5,6 +5,8 @@ libUniSetSharedMemory_la_LIBADD = $(SIGC_LIBS) $(top_builddir)/lib/libUniSet.la ...@@ -5,6 +5,8 @@ libUniSetSharedMemory_la_LIBADD = $(SIGC_LIBS) $(top_builddir)/lib/libUniSet.la
$(top_builddir)/extensions/lib/libUniSetExtensions.la $(top_builddir)/extensions/lib/libUniSetExtensions.la
libUniSetSharedMemory_la_CPPFLAGS = $(SIGC_CFLAGS) -I$(top_builddir)/extensions/include libUniSetSharedMemory_la_CPPFLAGS = $(SIGC_CFLAGS) -I$(top_builddir)/extensions/include
libUniSetSharedMemory_la_SOURCES = SharedMemory.cc libUniSetSharedMemory_la_SOURCES = SharedMemory.cc
#libUniSetSharedMemory_la_LDFLAGS = -version-info @LIBVER@
@PACKAGE@_smemory_LDADD = libUniSetSharedMemory.la @PACKAGE@_smemory_LDADD = libUniSetSharedMemory.la
@PACKAGE@_smemory_CPPFLAGS = $(SIGC_CFLAGS) -I$(top_builddir)/extensions/include @PACKAGE@_smemory_CPPFLAGS = $(SIGC_CFLAGS) -I$(top_builddir)/extensions/include
......
...@@ -91,6 +91,7 @@ Configuration::Configuration(): ...@@ -91,6 +91,7 @@ Configuration::Configuration():
localTimerService(UniSetTypes::DefaultObjectId), localTimerService(UniSetTypes::DefaultObjectId),
localDBServer(UniSetTypes::DefaultObjectId), localDBServer(UniSetTypes::DefaultObjectId),
localInfoServer(UniSetTypes::DefaultObjectId), localInfoServer(UniSetTypes::DefaultObjectId),
localNode(UniSetTypes::DefaultObjectId),
fileConfName("") fileConfName("")
{ {
// unideb[Debug::CRIT] << " configuration FAILED!!!!!!!!!!!!!!!!!" << endl; // unideb[Debug::CRIT] << " configuration FAILED!!!!!!!!!!!!!!!!!" << endl;
...@@ -133,6 +134,7 @@ Configuration::Configuration( int argc, const char* const* argv, const string xm ...@@ -133,6 +134,7 @@ Configuration::Configuration( int argc, const char* const* argv, const string xm
localTimerService(UniSetTypes::DefaultObjectId), localTimerService(UniSetTypes::DefaultObjectId),
localDBServer(UniSetTypes::DefaultObjectId), localDBServer(UniSetTypes::DefaultObjectId),
localInfoServer(UniSetTypes::DefaultObjectId), localInfoServer(UniSetTypes::DefaultObjectId),
localNode(UniSetTypes::DefaultObjectId),
fileConfName(xmlfile) fileConfName(xmlfile)
{ {
if( xmlfile.empty() ) if( xmlfile.empty() )
...@@ -152,6 +154,7 @@ Configuration::Configuration( int argc, const char* const* argv, ObjectIndex* _o ...@@ -152,6 +154,7 @@ Configuration::Configuration( int argc, const char* const* argv, ObjectIndex* _o
localTimerService(UniSetTypes::DefaultObjectId), localTimerService(UniSetTypes::DefaultObjectId),
localDBServer(UniSetTypes::DefaultObjectId), localDBServer(UniSetTypes::DefaultObjectId),
localInfoServer(UniSetTypes::DefaultObjectId), localInfoServer(UniSetTypes::DefaultObjectId),
localNode(UniSetTypes::DefaultObjectId),
fileConfName(fileConf) fileConfName(fileConf)
{ {
if( fileConf.empty() ) if( fileConf.empty() )
...@@ -172,6 +175,7 @@ Configuration::Configuration( int argc, const char* const* argv, const string fi ...@@ -172,6 +175,7 @@ Configuration::Configuration( int argc, const char* const* argv, const string fi
localTimerService(UniSetTypes::DefaultObjectId), localTimerService(UniSetTypes::DefaultObjectId),
localDBServer(UniSetTypes::DefaultObjectId), localDBServer(UniSetTypes::DefaultObjectId),
localInfoServer(UniSetTypes::DefaultObjectId), localInfoServer(UniSetTypes::DefaultObjectId),
localNode(UniSetTypes::DefaultObjectId),
fileConfName(fileConf) fileConfName(fileConf)
{ {
if( fileConf.empty() ) if( fileConf.empty() )
...@@ -264,13 +268,12 @@ void Configuration::initConfiguration( int argc, const char* const* argv ) ...@@ -264,13 +268,12 @@ void Configuration::initConfiguration( int argc, const char* const* argv )
transientIOR = false; transientIOR = false;
localIOR = false; localIOR = false;
initParameters();
string lnode( getArgParam("--localNode") ); string lnode( getArgParam("--localNode") );
if( !lnode.empty() ) if( !lnode.empty() )
setLocalNode(lnode); setLocalNode(lnode);
initParameters();
// help // help
// if( !getArgParam("--help").empty() ) // if( !getArgParam("--help").empty() )
// help(cout); // help(cout);
...@@ -455,8 +458,11 @@ void Configuration::initParameters() ...@@ -455,8 +458,11 @@ void Configuration::initParameters()
if( name == "LocalNode" ) if( name == "LocalNode" )
{ {
string nodename( it.getProp("name") ); if( localNode == UniSetTypes::DefaultObjectId )
setLocalNode(nodename); {
string nodename( it.getProp("name") );
setLocalNode(nodename);
}
} }
else if( name == "LocalTimerService" ) else if( name == "LocalTimerService" )
{ {
...@@ -567,8 +573,10 @@ void Configuration::setLocalNode( string nodename ) ...@@ -567,8 +573,10 @@ void Configuration::setLocalNode( string nodename )
if( localNode == DefaultObjectId ) if( localNode == DefaultObjectId )
{ {
unideb[Debug::CRIT] << "(Configuration::setLocalNode): node '" << nodename << "' ?? ?????? ????????????? ObjectsMap!!!" << endl; stringstream err;
throw Exception("(Configuration::setLocalNode): node '"+nodename+"' ?? ?????? ????????????? ObjectsMap!!!"); err << "(Configuration::setLocalNode): Not found node '" << nodename << "'";
unideb[Debug::CRIT] << err << endl;
throw Exception(err.str());
} }
oind->initLocalNode(localNode); oind->initLocalNode(localNode);
} }
......
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