11 #ifndef FAUDES_IOS_ATTRIBUTES_H
12 #define FAUDES_IOS_ATTRIBUTES_H
15 #ifdef FAUDES_DEBUG_IOSYS
16 #define FD_DIO(message) FAUDES_WRITE_CONSOLE("FAUDES_IOSYS: " << message)
18 #define FD_DIO(message)
73 mFlags |= mOutputFlag;
83 mFlags &= ~mOutputFlag;
104 mFlags &= ~mInputFlag;
115 return (mFlags & mOutputFlag) != 0 ;
127 return (mFlags & mInputFlag) != 0;
143 return mFlags==mDefIosFlags;
149 const static fType mInputFlag =0x010;
150 const static fType mOutputFlag =0x020;
153 const static fType mDefIosFlags =0x000 ;
156 const static fType mAllIosFlags =0x030;
184 const std::string& rLabel=
"",
185 const Type* pContext=0);
202 const std::string& rLabel=
"",
203 const Type* pContext=0)
const;
220 const std::string& rLabel=
"",
221 const Type* pContext=0)
const;
278 mFlags |= mOutputFlag;
288 mFlags &= ~mOutputFlag;
298 mFlags |= mInputFlag;
309 mFlags &= ~mInputFlag;
318 mFlags |= mErrorFlag;
327 mFlags &= ~mErrorFlag;
338 return (mFlags & mOutputFlag) != 0 ;
350 return (mFlags & mInputFlag) != 0;
363 return (mFlags & mErrorFlag) != 0;
377 return mFlags==mDefIosFlags;
381 const static fType mInputFlag = 0x10;
382 const static fType mOutputFlag = 0x20;
383 const static fType mErrorFlag = 0x40;
392 virtual std::string ToString(
void)
const;
398 const static fType mDefIosFlags = 0x00;
400 const static fType mAllIosFlags = 0x70;
428 virtual void DoRead(
TokenReader& rTr,
const std::string& rLabel=
"",
const Type* pContext=0);
444 virtual void DoWrite(
TokenWriter& rTw,
const std::string& rLabel=
"",
const Type* pContext=0)
const;
461 const std::string& rLabel=
"",
462 const Type* pContext=0)
const;
#define FAUDES_TYPE_DECLARATION(ftype, ctype, cbase)
faudes type declaration macro
fType mFlags
Flags (public access for convenience)
Attributes for events in DES with in- and outputs.
void ClrInput(void)
Clear input flag.
bool IsDefault(void) const
Check an event's io-properties for default value.
void ClrOutput(void)
Clear output flag.
virtual ~AttributeIosEvent(void)
Destructor.
AttributeIosEvent(void)
Default constructor.
bool Output(void) const
Test output flag.
void SetOutput(void)
Set output flag.
void SetInput(void)
Set input flag.
bool Input(void) const
Test input flag.
AttributeIosEvent(const AttributeIosEvent &rSrc)
Copy constructor.
Attributes for states in DESs with in- and outputs.
void ClrInput(void)
Clear input flag.
AttributeIosState(void)
Default constructor.
void SetOutput(void)
Set output flag.
void SetError(void)
Set error flag.
bool IsDefault(void) const
Check a state's io-properties for default value.
AttributeIosState(const AttributeIosState &rSrc)
Copy constructor.
bool Input(void) const
Test input flag.
bool Output(void) const
Test output flag.
bool Error(void) const
Check error flag.
virtual ~AttributeIosState(void)
Destructor.
void SetInput(void)
Set input flag.
void ClrOutput(void)
Clear output flag.
void ClrError(void)
Clear error flag.
Set of indices with attributes.
Set of indices with symbolic names and attributes.
A TokenReader reads sequential tokens from a file or string.
A TokenWriter writes sequential tokens to a file, a string or stdout.
Base class of all libFAUDES objects that participate in the run-time interface.
Includes all libFAUDES headers, no plugins.
libFAUDES resides within the namespace faudes.
TaIndexSet< AttributeIosState > IosStateSet
unsigned long int fType
Convenience typdef flag data.
TaNameSet< AttributeIosEvent > IosEventSet