Commit c377d11b authored by Pavel Vainerman's avatar Pavel Vainerman

Млекие стилистические правки (удаление лишних пробелов и т.п.)

parent 5dfa1766
......@@ -25,3 +25,4 @@ Version 2.0
============
- написать документацию по ModbusSlave
- циклическое хранилище для аварийных следов на основе SQLite
- отказаться от alias-ов.. (не прижилось, а накладные расходы большие)
\ No newline at end of file
......@@ -2,7 +2,7 @@
START=uniset-start.sh
${START} -vcall ./.libs/lt-smemory-test --confile test.xml --dlog-add-levels level1 --localNode LocalhostNode $*
${START} -vcall ./.libs/lt-smemory-test --confile ./test.xml --dlog-add-levels level1 --localNode LocalhostNode $*
#--unideb-add-levels crit,warn,info
......
......@@ -291,7 +291,7 @@ class IONotifyController:
//----------------------
bool addConsumer(ConsumerList& lst, const UniSetTypes::ConsumerInfo& cons ); //!< добавить потребителя сообщения
bool removeConsumer(ConsumerList& lst, const UniSetTypes::ConsumerInfo& cons ); //!< удалить потребителя сообщения
bool removeConsumer(ConsumerList& lst, const UniSetTypes::ConsumerInfo& cons ); //!< удалить потребителя сообщения
//! обработка заказа
void ask(AskMap& askLst, const IOController_i::SensorInfo& si,
......
......@@ -49,12 +49,12 @@ namespace UniSetTypes
bool isRelease();
void lock();
void unlock();
inline std::string name(){ return nm; }
inline void setName( const std::string& name ){ nm = name; }
protected:
private:
friend class uniset_mutex_lock;
uniset_mutex (const uniset_mutex& r);
......
......@@ -134,7 +134,7 @@ class UniSetManager:
//! \note Переопределяя не забывайте вызвать базовую
virtual bool disactivateObject();
typedef UniSetManagerList::iterator MListIterator;
typedef UniSetManagerList::iterator MListIterator;
int getObjectsInfo( UniSetManager* mngr, UniSetTypes::SimpleInfoSeq* seq,
int begin, const long uplimit );
......@@ -143,9 +143,9 @@ class UniSetManager:
PortableServer::POAManager_var pman;
private:
friend class UniSetActivator;
int sig;
UniSetManagerList mlist;
ObjectsList olist;
......
......@@ -220,7 +220,7 @@ class UniSetObject:
pid_t msgpid; // pid потока обработки сообщений
bool reg;
UniSetTypes::mutex_atomic_t active;
// UniSetTypes::uniset_rwmutex mutex_act;
bool threadcreate;
UniSetTimer* tmr;
UniSetTypes::ObjectId myid;
......
......@@ -14,8 +14,8 @@ class WDTInterface
WDTInterface(const std::string& dev);
~WDTInterface();
bool ping();
bool stop();
bool ping();
bool stop();
protected:
const std::string dev;
......
......@@ -63,7 +63,7 @@ UInterface::UInterface( const ObjectId backid, CORBA::ORB_var orb, ObjectIndex*
oind = uconf->oind;
init();
}
}
UInterface::~UInterface()
{
......@@ -717,7 +717,7 @@ ObjectType UInterface::getType(const ObjectId name, const ObjectId node) const
// uwarn << "UI(getType): CORBA::SystemException" << endl;
}
catch(UniSetTypes::TimeOut){}
rcache.erase(name, node);
throw UniSetTypes::TimeOut(set_err("UI(getType): Timeout",name, node));
}
......
......@@ -101,7 +101,7 @@ void ObjectRepository::registration(const string& name, const ObjectPtr oRef, co
err << " содержит недопустимый символ " << bad;
throw ( InvalidObjectName(err.str().c_str()) );
}
CosNaming::Name_var oName = omniURI::stringToName(name.c_str());
CosNaming::NamingContext_var ctx;
for( unsigned int i=0; i<2; i++ )
......@@ -110,7 +110,7 @@ void ObjectRepository::registration(const string& name, const ObjectPtr oRef, co
{
// Добавляем в репозиторий новую ссылку (заменяя если есть старую)
CORBA::ORB_var orb = uconf->getORB();
ctx = ORepHelpers::getContext(orb, section, nsName);
ctx = ORepHelpers::getContext(orb, section, nsName);
ctx->bind(oName, oRef);
return;
......
......@@ -444,13 +444,13 @@ const UniSetObject* UniSetManager::itemO(const ObjectId id)
int UniSetManager::objectsCount()
{
int res( olist.size()+mlist.size() );
for( UniSetManagerList::const_iterator it= beginMList();
it!= endMList(); ++it )
{
res+= (*it)->objectsCount();
}
}
return res;
}
......@@ -463,7 +463,7 @@ int UniSetManager::getObjectsInfo( UniSetManager* mngr, SimpleInfoSeq* seq,
// получаем у самого менджера
SimpleInfo_var msi=mngr->getInfo();
(*seq)[ind] = msi;
ind++;
if( ind > uplimit )
return ind;
......
......@@ -39,7 +39,8 @@ c_filterField(""),
c_filterValue(""),
t_filterField(""),
t_filterValue(""),
fname(fname)
fname(fname),
uxml(0)
{
init(fname);
}
......
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