|
|
||||||
|
iop_sdevice.cpp
Go to the documentation of this file.
41 void AttributeSignalOutput::DoWrite(TokenWriter& rTw, const std::string& rLabel, const Type* pContext) const {
63 void AttributeSignalOutput::DoRead(TokenReader& rTr, const std::string& rLabel, const Type* pContext) {
183 void AttributeSignalInput::DoWrite(TokenWriter& rTw, const std::string& rLabel, const Type* pContext) const {
209 void AttributeSignalInput::DoRead(TokenReader& rTr, const std::string& rLabel, const Type* pContext) {
423 void sDevice::DoWritePreface(TokenWriter& rTw, const std::string& rLabel, const Type* pContext) const {
779 FD_DH("sDevice(" << sdevice->mName << ")::Synchro(" << sdevice << "): with ct " << sdevice->mCycleTime);
#define FD_ERR(message) Debug: report more errors with file/line info. Definition: cfl_definitions.h:91 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 * pInputPrototype Input Prototype (set to nontrivial attribute in derived classes) Definition: iop_vdevice.h:151 Configuration of a signal based input or output. Definition: iop_sdevice.h:228 static const AttributeSignalOutput * OutputPrototypep(void) Prototype, output (construct on first use static) Definition: iop_sdevice.cpp:354 static const AttributeSignalInput * InputPrototypep(void) Prototype, input (construct on first use static) Definition: iop_sdevice.cpp:360 Typedef for a single input trigger. Definition: iop_sdevice.h:152 Configuration of a signal based input mapping. Definition: iop_sdevice.h:132 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_sdevice.cpp:209 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_sdevice.cpp:183 Typedef for a single output action. Definition: iop_sdevice.h:56 Configuration of a signal based output mapping. Definition: iop_sdevice.h:33 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_sdevice.cpp:41 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_sdevice.cpp:63 Auto register faudes-type with specified type name. Definition: cfl_registry.h:458 const std::string & Name(void) const Definition: sp_densityfnct.h:81 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 const std::string & OptionValue(void) const Get option value of a name token. Definition: cfl_token.cpp:183 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 An sDevice implements signal based semantics for faudes events. Definition: iop_sdevice.h:291 std::map< int, EventSet > mInputNegEdgeIndexMap Reverse input map: map signal edges to logical event sets. Definition: iop_sdevice.h:480 Edges * mpRecentInputEdges Background: recently accumulated edges (global only) Definition: iop_sdevice.h:647 virtual void DoReadPreface(TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0) Reads non-event-related configuration from TokenReader. Definition: iop_sdevice.cpp:443 void InsInputEvent(const std::string &event) Insert event as input event. Definition: iop_sdevice.cpp:642 void DoWritePreface(TokenWriter &rTw, const std::string &rLabel, const Type *pContext=0) const Writes non-event-related configuration to TokenWriter. Definition: iop_sdevice.cpp:423 void AppendAction(const std::string &event, const Action &action) Add an action. Definition: iop_sdevice.cpp:673 void InsOutputEvent(const std::string &event) Insert event as output event. Definition: iop_sdevice.cpp:663 virtual void DoWriteSignal(int bitaddr, bool value)=0 Reimplement this function in a derived class for actual harware access to set or clear an output sign... TaNameSet< AttributeSignalEvent > * pConfiguration Overall configuration (with actual type) Definition: iop_sdevice.h:474 void AppendTrigger(const std::string &event, const Trigger &trigger) Add a trigger condition. Definition: iop_sdevice.cpp:652 std::map< int, EventSet > mInputPosEdgeIndexMap Reverse input map: map signal edges to logical event sets. Definition: iop_sdevice.h:477 std::map< int, EventSet > mOutputLevelIndexMap Reverse output map: map signal addres to events that affect the resp. Definition: iop_sdevice.h:483 Virtual base class to define the interface for event io. Definition: iop_vdevice.h:261 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 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 const EventSet & Outputs(void) const Get outputs as plain set. Definition: iop_vdevice.cpp:689 Virtual device for signal based io AutoRegisterXElementTag< TaNameSet< AttributeSignalEvent > > gRti1XElementTagSignalDeviceEventSet("SignalDeviceEventSet", "Event") AutoRegisterType< TaNameSet< AttributeSignalEvent > > gRti1RegisterSignalDeviceEventSet("SignalDeviceEventSet") Discrete density function approximation. libFAUDES 2.32b --- 2024.03.01 --- c++ api documentaion by doxygen |