|
|
||||||
|
iop_vdevice.cpp
Go to the documentation of this file.
101 void AttributeDeviceEvent::DoWrite(TokenWriter& rTw, const std::string& rLabel, const Type* pContext) const {
102 FD_DHV("AttributeDeviceEvent(" << this << ")::DoWrite(tw): " << IsOutput() << " " << IsInput() );
108 void AttributeDeviceEvent::DoRead(TokenReader& rTr, const std::string& rLabel, const Type* pContext) {
237 errstr << "Could not cast to device object from type \"" << ftype << "\" at \"" << rTr.FileLine() << "\")";
373 void vDevice::DoWrite(TokenWriter& rTw, const std::string& rLabel, const Type* pContext) const {
395 void vDevice::DoWritePreface(TokenWriter& rTw, const std::string& rLabel, const Type* pContext) const {
408 void vDevice::DoWriteConfiguration(TokenWriter& rTw, const std::string& rLabel, const Type* pContext) const {
490 void vDevice::DoReadConfiguration(TokenReader& rTr,const std::string& rLabel, const Type* pContext){
519 FD_DHV("vDevice::DoReadConfiguration(" << this << "): attribute type " << typeid(*attrp).name());
701 FD_DHV("vDevice("<<mName<<")::FtuToSystemTime(" << duration << "): using scale " << mTimeScale);
990 FD_DHV("vDevice::Performance(" << Name() << "): " << mPerformanceBeginIterator << " " << mPerformanceEndIterator);
void faudes_sumsystime(const faudes_systime_t &begin, const faudes_systime_t &duration, faudes_systime_t *res) Definition: cfl_platform.cpp:130 void faudes_msdelay(faudes_mstime_t msecs, faudes_systime_t *end) Definition: cfl_platform.cpp:140 void faudes_diffsystime(const faudes_systime_t &end, const faudes_systime_t &begin, faudes_systime_t *res) Definition: cfl_platform.cpp:114 #define FAUDES_TYPE_IMPLEMENTATION(ftype, ctype, cbase) faudes type implementation macros, overall Definition: cfl_types.h:946 Attribute for the configuration of a input or output mapping. Definition: iop_vdevice.h:68 const AttributeVoid * pOutputPrototype Output Prototype (set to nontrivial attribute in derived classes) Definition: iop_vdevice.h:148 const AttributeVoid * Outputp(void) const Get output mapping (return 0 if its not an output) Definition: iop_vdevice.h:133 const AttributeVoid * Inputp(void) const Get input mapping (return 0 if its not a input) Definition: iop_vdevice.h:136 virtual void Output(const AttributeVoid &rOutputAttribute) Set output attribute. Definition: iop_vdevice.h:109 virtual void DoRead(TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0) Reads the attribute from TokenReader, see AttributeVoid for public wrappers. Definition: iop_vdevice.cpp:108 virtual void Input(const AttributeVoid &rInputAttribute) Set input attribute. Definition: iop_vdevice.h:115 const AttributeVoid * pInputPrototype Input Prototype (set to nontrivial attribute in derived classes) Definition: iop_vdevice.h:151 AttributeDeviceEvent(void) Default constructor (no attributes, aka undefined) Definition: iop_vdevice.cpp:43 AttributeVoid * mpInputAttribute Input Attribute (use cast in derived classes) Definition: iop_vdevice.h:145 static const AttributeVoid * FallbackAttributep(void) Fallback attribute type (initialize on first use static construct) Definition: iop_vdevice.cpp:76 virtual void DoWrite(TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const Writes the attribute to TokenWriter, see AttributeVoid for public wrappers. Definition: iop_vdevice.cpp:101 AttributeVoid * mpOutputAttribute Output Attribute (use cast in derived classes) Definition: iop_vdevice.h:136 void Write(TokenWriter &rTw) const Definition: sp_densityfnct.cpp:38 const std::string & Name(void) const Definition: sp_densityfnct.h:81 void SymbolicName(Idx index, const std::string &rName) Set new name for existing index. Definition: cfl_nameset.cpp:400 void Sample(Time::Type time) Definition: sp_densityfnct.cpp:242 A TokenReader reads sequential tokens from a file or string. Definition: cfl_tokenreader.h:63 bool Eos(const std::string &rLabel) Peek a token and check whether it ends the specified section. Definition: cfl_tokenreader.cpp:439 void ReadEnd(const std::string &rLabel) Close the current section by matching the previous ReadBegin(). Definition: cfl_tokenreader.cpp:364 void ReadBegin(const std::string &rLabel) Open a section by specified label. Definition: cfl_tokenreader.cpp:249 A TokenWriter writes sequential tokens to a file, a string or stdout. Definition: cfl_tokenwriter.h:51 const std::string & StringValue(void) const Get string value of a name token. Definition: cfl_token.cpp:177 Int AttributeIntegerValue(const std::string &name) Access attribute value. Definition: cfl_token.cpp:396 bool ExistsAttributeString(const std::string &name) Test attibute existence. Definition: cfl_token.cpp:355 void InsAttributeInteger(const std::string &name, Int value) Insert named attribute with integer value. Definition: cfl_token.cpp:318 void InsAttributeString(const std::string &name, const std::string &value) Insert named attribute with string value. Definition: cfl_token.cpp:309 const std::string & AttributeStringValue(const std::string &name) Access attribute value. Definition: cfl_token.cpp:385 Base class of all libFAUDES objects that participate in the run-time interface. Definition: cfl_types.h:239 void Read(const std::string &rFileName, const std::string &rLabel="", const Type *pContext=0) Read configuration data from file with label specified. Definition: cfl_types.cpp:261 std::string ToString(const std::string &rLabel="", const Type *pContext=0) const Write configuration data to a string. Definition: cfl_types.cpp:169 void Write(const Type *pContext=0) const Write configuration data to console. Definition: cfl_types.cpp:139 virtual const std::string & TypeName(void) const Get objects's type name. Definition: cfl_types.cpp:132 Virtual base class to define the interface for event io. Definition: iop_vdevice.h:261 int mPerformanceBeginIterator Definition: iop_vdevice.h:832 virtual void DoWrite(TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const Token output, see Type::Write for public wrappers. Definition: iop_vdevice.cpp:373 static vDevice * FromTokenReader(TokenReader &rTr) Construct on heap from token reader. Definition: iop_vdevice.cpp:212 virtual Time::Type MsToFtu(long int real_time) convert duration in ms to faudes-time units Definition: iop_vdevice.cpp:731 faudes_systime_t * mpPerformanceWaitEnter Structures to store time-samples in. Definition: iop_vdevice.h:827 virtual long int FtuToMs(Time::Type faudes_time) convert duration from fauDES-time units to ms Definition: iop_vdevice.cpp:720 void ResetPerformance(void) Clear performance (need compiletime option) Definition: iop_vdevice.cpp:1037 SampledDensityFunction Performance(void) Get performance (need compiletime option) Definition: iop_vdevice.cpp:987 static std::set< vDevice * > & AllDevices(void) Definition: iop_vdevice.cpp:184 virtual bool ResetRequest(void) A device may ask for a reset by returning true for ResetRequest(). Definition: iop_vdevice.cpp:920 void UseBuffer(faudes_mutex_t *bmutex, std::deque< Idx > *bbuffer) Tell the device which buffer to use for inputs. Definition: iop_vdevice.cpp:680 virtual void DoReadPreface(TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0) Reads non-event-configuration data from TokenReader. Definition: iop_vdevice.cpp:574 EventSet * mpConfiguration Overall event configuration (uses cast for type) Definition: iop_vdevice.h:761 virtual faudes_systime_t FtuToSystemTime(Time::Type duration) Convert faudes time unit duration to system time. Definition: iop_vdevice.cpp:699 virtual void Configure(Idx event, const AttributeDeviceEvent &attr) Insert/edit input or output configuration. Definition: iop_vdevice.cpp:606 static vDevice * FromFile(const std::string &rFileName) Construct on heap from file. Definition: iop_vdevice.cpp:248 virtual void DoReadConfiguration(TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0) Reads event-configuration data from TokenReader. Definition: iop_vdevice.cpp:490 virtual void DoWritePreface(TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const Writes non-event-configuration data from TokenWriter. Definition: iop_vdevice.cpp:395 virtual void DoWriteConfiguration(TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const Writes event-configuration to TokenWriter. Definition: iop_vdevice.cpp:408 void UseCondition(faudes_mutex_t *wmutex, faudes_cond_t *wcond) Tell the device which condition to use for waiting. Definition: iop_vdevice.cpp:671 virtual void DoRead(TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0) Token input, see Type::DRead for public wrappers. Definition: iop_vdevice.cpp:465 faudes_systime_t * mpPerformanceWaitExit Definition: iop_vdevice.h:828 virtual const EventSet & Outputs(void) const Get outputs as plain set. Definition: iop_vdevice.cpp:689 virtual const AttributeVoid * AttributeType(void) const Attribute typeinfo. Definition: cfl_baseset.h:2171 virtual const AttributeVoid & Attribute(const T &rElem) const Attribute access. Definition: cfl_baseset.h:2290 Type * NewFaudesObject(const std::string &rTypeName) Instantiate faudes typed objects by type name. Definition: cfl_registry.cpp:700 Hardware access via comedi. Simple networked events via TCP/IP. Virtual device for interface definition Hardware access via comedi. Virtual device for interface definition Discrete density function approximation. libFAUDES 2.32b --- 2024.03.01 --- c++ api documentaion by doxygen |