About
User Reference
C++ API
luafaudes
Developer
Links
libFAUDES online
libFAUDES

Sections

Index

faudes::AttributeSignalInput Class Reference

Configuration of a signal based input mapping. More...

#include <iop_sdevice.h>

List of all members.

Classes

struct  Trigger
 Typedef for a single input trigger. More...

Public Member Functions

 AttributeSignalInput (void)
 Default constructor (no triggers).
 AttributeSignalInput (const AttributeSignalInput &rOtherAttr)
 Copy constructor.
virtual bool IsDefault (void) const
 Test for default value (never).
virtual void Clear (void)
 Clear.

Public Attributes

std::vector< TriggermTriggers
 List of triggers.

Protected Member Functions

virtual void DoAssign (const AttributeSignalInput &rSrcAttr)
 Copy method.
virtual void DoRead (TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0)
 Reads the attribute from TokenReader, see AttributeVoid for public wrappers.
virtual void DoWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const
 Writes the attribute to TokenWriter, see AttributeVoid for public wrappers.

Detailed Description

Configuration of a signal based input mapping.

A input mapping consists of a list of abstract bitaddresses with an edge polarity each. When on one of respecive physical input lines an edge with matching priority is sensed, the logical event is triggered.

Definition at line 127 of file iop_sdevice.h.


Constructor & Destructor Documentation

faudes::AttributeSignalInput::AttributeSignalInput ( void   )  [inline]

Default constructor (no triggers).

Definition at line 134 of file iop_sdevice.h.

faudes::AttributeSignalInput::AttributeSignalInput ( const AttributeSignalInput rOtherAttr  )  [inline]

Copy constructor.

Definition at line 137 of file iop_sdevice.h.


Member Function Documentation

virtual void faudes::AttributeSignalInput::Clear ( void   )  [inline, virtual]

Clear.

Reimplemented from faudes::AttributeVoid.

Definition at line 144 of file iop_sdevice.h.

void faudes::AttributeSignalInput::DoAssign ( const AttributeSignalInput rSrcAttr  )  [protected, virtual]

Copy method.

Parameters:
rSrcAttr Source to copy from
Returns:
Ref to this attribute

Definition at line 170 of file iop_sdevice.cpp.

void faudes::AttributeSignalInput::DoRead ( TokenReader rTr,
const std::string &  rLabel = "",
const Type pContext = 0 
) [protected, virtual]

Reads the attribute from TokenReader, see AttributeVoid for public wrappers.

If the current token indicates a input mapping, the method reads that section. Else it does nothing. Exceptions may only be thrown on invalid data within the section. The label argument is ignored, we use the hardcoded section "Input" for input attributes. The context argument is ignored.

Parameters:
rTr TokenReader to read from
rLabel Section to read
pContext Read context to provide contextual information
Exceptions:
Exception 
  • IO error (id 1)

Reimplemented from faudes::AttributeVoid.

Definition at line 203 of file iop_sdevice.cpp.

void faudes::AttributeSignalInput::DoWrite ( TokenWriter rTw,
const std::string &  rLabel = "",
const Type pContext = 0 
) const [protected, virtual]

Writes the attribute to TokenWriter, see AttributeVoid for public wrappers.

Writes the input mapping data.The label argument is ignored, we use the hardcoded section "Input". The context argument is ignored.

Parameters:
rTw TokenWriter to write to
rLabel Section to write
pContext Read context to provide contextual information
Exceptions:
Exception 
  • IO error (id 2)

Reimplemented from faudes::AttributeVoid.

Definition at line 177 of file iop_sdevice.cpp.

virtual bool faudes::AttributeSignalInput::IsDefault ( void   )  const [inline, virtual]

Test for default value (never).

Reimplemented from faudes::AttributeVoid.

Definition at line 141 of file iop_sdevice.h.


Member Data Documentation

List of triggers.

Definition at line 154 of file iop_sdevice.h.


The documentation for this class was generated from the following files:

libFAUDES 2.20d --- 2011.04.26 --- c++ source docu by doxygen