Commit ee367631 authored by Pavel Vainerman's avatar Pavel Vainerman

(SM): сделал проверку iotype для pulsar. Чтобы был либо DO либо DI.

parent 090c12e1
...@@ -129,10 +129,11 @@ SharedMemory::SharedMemory( ObjectId id, string datafile, std::string confname ) ...@@ -129,10 +129,11 @@ SharedMemory::SharedMemory( ObjectId id, string datafile, std::string confname )
if( !t.empty() ) if( !t.empty() )
{ {
iotypePulsar = UniSetTypes::getIOType(t); iotypePulsar = UniSetTypes::getIOType(t);
if( iotypePulsar == UniversalIO::UnknownIOType ) if( iotypePulsar == UniversalIO::UnknownIOType ||
iotypePulsar == UniversalIO::AnalogInput || iotypePulsar == UniversalIO::AnalogOutput )
{ {
ostringstream err; ostringstream err;
err << myname << ": Unknown iotype '" << t << "' for pulsar. Must be 'DI' or 'DO'"; err << myname << ": Invalid iotype '" << t << "' for pulsar. Must be 'DI' or 'DO'";
dlog[Debug::CRIT] << myname << "(init): " << err.str() << endl; dlog[Debug::CRIT] << myname << "(init): " << err.str() << endl;
throw SystemError(err.str()); throw SystemError(err.str());
} }
......
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