|
Go to the documentation of this file.
46 FD_DHV( "xDevice(" << mName << ")::xDevice()");
49 mDefaultLabel= "DeviceContainer";
56 #ifdef FAUDES_IODEVICE_SIMPLENET
59 #ifdef FAUDES_IODEVICE_COMEDI
62 #ifdef FAUDES_IODEVICE_WAGO
65 #ifdef FAUDES_IODEVICE_SERIAL
68 #ifdef FAUDES_IODEVICE_MODBUS
71 #ifdef FAUDES_IODEVICE_D3RIP_URT
74 #ifdef FAUDES_IODEVICE_D3RIP_DART
93 FD_DHV( "xDevice::FromTokenReader()");
104 FD_DHV( "xDevice()::FromFile(" << rFileName << ")");
118 std::vector<xDevice::DeviceState> states;
120 std::vector<DeviceState>::iterator vit;
121 vit = states.begin();
129 if(vit != states.begin()){
149 res = *states.begin();
161 for(dit = Begin();dit!= End();dit++){
221 FD_DHV( "xDevice("<< mName<< ")::Insert(" << device << "):" << device-> Name());
223 if(dynamic_cast<xDevice*>(device)) {
224 std::stringstream errstr;
225 errstr << "Attempt to insert xDevice into xDevice";
226 throw Exception( "xDevice::Compile", errstr.str(), 550);
263 EventSet::Iterator eit;
269 for(dit= Begin(), j=0; dit!= End(); dit++,j++){
271 tmpSenEvents = (*dit)->Inputs();
272 tmpActEvents = (*dit)->Outputs();
274 for(eit=tmpActEvents. Begin();eit!=tmpActEvents. End();eit++){
278 std::stringstream errstr;
279 errstr << "Event already exists!";
280 throw Exception( "xDevice()::Compile", errstr.str(), 550);
298 (void) event; (void) attr;
301 FD_DHV( "xDevice("<< mName<< ")::Configure(Idx,attr): ");
302 std::stringstream errstr;
303 errstr << "Attempt to configure xDevice by event";
304 throw Exception( "xDevice::Configure(Idx,attr)", errstr.str(), 550);
312 FD_DHV( "xDevice("<< mName<< ")::Configure(rEvents)");
313 std::stringstream errstr;
314 errstr << "Attempt to configure xDevice by events";
315 throw Exception( "xDevice::Configure", errstr.str(), 550);
325 std::stringstream errstr;
326 errstr << "xDevice owns no device!";
327 throw Exception( "xDevice::CurrentTime", errstr.str(),550);
340 std::stringstream errstr;
341 errstr << "xDevice owns no device!";
342 throw Exception( "xDevice::CurrentTimeMs", errstr.str(),550);
351 FD_DHV( "xDevice("<< mName<< ")::CurrentTime("<<now<< ") ");
360 FD_DHV( "xDevice("<< mName<< ")::CurrentTimeMs("<<nowms<< ") ");
369 FD_DHV( "xDevice("<< mName<< ")::DoWriteConfiguration()");
398 res = res | (*dit)->ResetRequest();
405 (void) rLabel; (void) pContext;
407 FD_DHV( "xDevice("<< mName<< ")::DoReadConfiguration()");
411 std::string filename = "";
412 std::string dirname = "";
415 std::string label = rLabel;
416 if(label== "") label = "Devices";
420 while(!rTr. Eos( "Devices")){
432 path = dirname.append(filename);
456 FD_DH( "xDevice("<< mName<< ")::WriteOutput(): " << output << " to " << didx);
457 mDevices.at(didx)->WriteOutput(output);
465 (*dit)->FlushOutputs();
libFAUDES 2.24g
--- 2014.09.15
--- c++ api documentaion by doxygen
|