libFAUDES

Sections

Index

faudes::AttributeTimedGlobal Class Reference
[Timed Automata PlugIn]

#include <tp_attributes.h>

Inherits faudes::AttributeVoid.

List of all members.


Detailed Description

Globat attribute with clockset.

Public Member Functions

 AttributeTimedGlobal (void)
 Constructor.
virtual AttributeTimedGlobalNew (void) const
 Construct on heap.
virtual bool IsDefault (void) const
 Test for default value (ie empty clockset).

Public Attributes

ClockSet mClocks
 Clocks.
SymbolTablempClockSymbolTable
 Pointer to clock symboltable.

Protected Member Functions

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.

Constructor & Destructor Documentation

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

Constructor.


Member Function Documentation

virtual AttributeTimedGlobal* faudes::AttributeTimedGlobal::New ( void   )  const [inline, virtual]

Construct on heap.

Technically not a constructor, this function creates an object with the same type AttributeVoid. It is the callers reponsabilty to delete the object when no longer needed. Derived attribute classes must reimplement this function for container based token io to operate properly.

Returns:
Pointer to new aoid object

Reimplemented from faudes::AttributeVoid.

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

Test for default value (ie empty clockset).

Returns:
True for default value

Reimplemented from faudes::AttributeVoid.

void faudes::AttributeTimedGlobal::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 Clocks section, the method reads the global timing data from that section. Else, it does nothing. Exceptions may only be thrown on invalid data within the timing section. The context argument is ignored, the label argument can be used to override the default section name Clocks.

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.

void faudes::AttributeTimedGlobal::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 a Clocks section to include global timing data. The label argument can be used to set a section label different the the default Clocks. Th context argument is ignored.

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

Reimplemented from faudes::AttributeVoid.


Member Data Documentation


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

libFAUDES 2.13a c++ source docu by doxygen 1.5.6