|
Go to the documentation of this file.
45 FD_DHV( "xDevice(" << mName << ")::xDevice()");
48 mDefaultLabel= "DeviceContainer";
55 #ifdef FAUDES_IODEVICE_SIMPLENET
58 #ifdef FAUDES_IODEVICE_COMEDI
61 #ifdef FAUDES_IODEVICE_WAGO
64 #ifdef FAUDES_IODEVICE_SERIAL
67 #ifdef FAUDES_IODEVICE_MODBUS
70 #ifdef FAUDES_IODEVICE_D3RIP_URT
73 #ifdef FAUDES_IODEVICE_D3RIP_DART
92 FD_DHV( "xDevice::FromTokenReader()");
103 FD_DHV( "xDevice()::FromFile(" << rFileName << ")");
117 std::vector<xDevice::DeviceState> states;
119 std::vector<DeviceState>::iterator vit;
120 vit = states.begin();
128 if(vit != states.begin()){
148 res = *states.begin();
160 for(dit = Begin();dit!= End();dit++){
220 FD_DHV( "xDevice("<< mName<< ")::Insert(" << device << "):" << device-> Name());
222 if(dynamic_cast<xDevice*>(device)) {
223 std::stringstream errstr;
224 errstr << "Attempt to insert xDevice into xDevice";
225 throw Exception( "xDevice::Compile", errstr.str(), 550);
262 EventSet::Iterator eit;
268 for(dit= Begin(), j=0; dit!= End(); dit++,j++){
270 tmpSenEvents = (*dit)->Inputs();
271 tmpActEvents = (*dit)->Outputs();
273 for(eit=tmpActEvents. Begin();eit!=tmpActEvents. End();eit++){
277 std::stringstream errstr;
278 errstr << "Event already exists!";
279 throw Exception( "xDevice()::Compile", errstr.str(), 550);
297 (void) event; (void) attr;
300 FD_DHV( "xDevice("<< mName<< ")::Configure(Idx,attr): ");
301 std::stringstream errstr;
302 errstr << "Attempt to configure xDevice by event";
303 throw Exception( "xDevice::Configure(Idx,attr)", errstr.str(), 550);
311 FD_DHV( "xDevice("<< mName<< ")::Configure(rEvents)");
312 std::stringstream errstr;
313 errstr << "Attempt to configure xDevice by events";
314 throw Exception( "xDevice::Configure", errstr.str(), 550);
324 std::stringstream errstr;
325 errstr << "xDevice owns no device!";
326 throw Exception( "xDevice::CurrentTime", errstr.str(),550);
339 std::stringstream errstr;
340 errstr << "xDevice owns no device!";
341 throw Exception( "xDevice::CurrentTimeMs", errstr.str(),550);
350 FD_DHV( "xDevice("<< mName<< ")::CurrentTime("<<now<< ") ");
359 FD_DHV( "xDevice("<< mName<< ")::CurrentTimeMs("<<nowms<< ") ");
368 FD_DHV( "xDevice("<< mName<< ")::DoWriteConfiguration()");
397 res = res | (*dit)->ResetRequest();
404 (void) rLabel; (void) pContext;
406 FD_DHV( "xDevice("<< mName<< ")::DoReadConfiguration()");
410 std::string filename = "";
411 std::string dirname = "";
414 std::string label = rLabel;
415 if(label== "") label = "Devices";
419 while(!rTr. Eos( "Devices")){
431 path = dirname.append(filename);
455 FD_DH( "xDevice("<< mName<< ")::WriteOutput(): " << output << " to " << didx);
456 mDevices.at(didx)->WriteOutput(output);
464 (*dit)->FlushOutputs();
libFAUDES 2.28a
--- 2016.09.13
--- c++ api documentaion by doxygen
|