10 #ifndef FAUDES_HIO_ATTRIBUTES_H
11 #define FAUDES_HIO_ATTRIBUTES_H
51 void SetY(
void) { mFlags |= mYFlag; };
57 void ClrY(
void) { mFlags &= ~mYFlag; };
63 void SetU(
void) { mFlags |= mUFlag; };
69 void ClrU(
void) { mFlags &= ~mUFlag; };
75 bool IsY(
void)
const {
return ( (mFlags & mYFlag) != 0 ); }
81 bool IsU(
void)
const {
return ( (mFlags & mUFlag) != 0 ); }
87 void SetP(
void) { mFlags |= mPFlag; }
93 void ClrP(
void) { mFlags &= ~mPFlag; };
99 bool IsP(
void)
const {
return ( (mFlags & mPFlag) != 0 ); }
105 void SetE(
void) { mFlags |= mEFlag; }
111 void ClrE(
void) { mFlags &= ~mEFlag; };
117 bool IsE(
void)
const {
return ( (mFlags & mEFlag) != 0 ); }
122 void SetC(
void) { mFlags |= mCFlag; }
128 void ClrC(
void) { mFlags &= ~mCFlag; };
134 bool IsC(
void)
const {
return ( (mFlags & mCFlag) != 0 ); }
141 void SetL(
void) { mFlags |= mLFlag; }
147 void ClrL(
void) { mFlags &= ~mLFlag; };
153 bool IsL(
void)
const {
return ( (mFlags & mLFlag) != 0 ); }
158 bool IsDefault(
void)
const {
return mFlags==mDefHioEventFlags;};
171 const static fType mDefHioEventFlags =0x00 ;
174 const static fType mAllHioEventFlags =0xFC;
201 virtual void DoRead(
TokenReader& rTr,
const std::string& rLabel=
"",
const Type* pContext=0);
217 virtual void DoWrite(
TokenWriter& rTw,
const std::string& rLabel=
"",
const Type* pContext=0)
const;
280 virtual std::string ToString(
void)
const;
290 mFlags &= ~mQYcUpFlag;
291 mFlags &= ~mQYlUeFlag;
298 void ClrQY(
void) { mFlags &= ~mQYFlag; };
304 bool IsQY(
void)
const {
return ( (mFlags & mQYFlag) != 0 ); }
313 mFlags &= ~mQYcUpFlag;
314 mFlags &= ~mQYlUeFlag;
321 void ClrQU(
void) { mFlags &= ~mQUFlag; };
327 bool IsQU(
void)
const {
return ( (mFlags & mQUFlag) != 0 ); }
333 void SetQC(
void) { mFlags |= mQCFlag; }
339 void ClrQC(
void) { mFlags &= ~mQCFlag; };
345 bool IsQC(
void)
const {
return ( (mFlags & mQCFlag) != 0 ); }
351 void SetQP(
void) { mFlags |= mQPFlag; }
357 void ClrQP(
void) { mFlags &= ~mQPFlag; };
363 bool IsQP(
void)
const {
return ( (mFlags & mQPFlag) != 0 ); }
369 void SetQE(
void) { mFlags |= mQEFlag; }
375 void ClrQE(
void) { mFlags &= ~mQEFlag; };
381 bool IsQE(
void)
const {
return ( (mFlags & mQEFlag) != 0 ); }
387 void SetQL(
void) { mFlags |= mQLFlag; }
393 void ClrQL(
void) { mFlags &= ~mQLFlag; };
399 bool IsQL(
void)
const {
return ( (mFlags & mQLFlag) != 0 ); }
406 mFlags |= mQYcUpFlag;
409 mFlags &= ~mQYlUeFlag;
422 bool IsQYcUp(
void)
const {
return ( (mFlags & mQYcUpFlag) != 0 ); }
429 mFlags |= mQYlUeFlag;
432 mFlags &= ~mQYcUpFlag;
445 bool IsQYlUe(
void)
const {
return ( (mFlags & mQYlUeFlag) != 0 ); }
451 void SetErr(
void) { mFlags |= mErrFlag; }
457 void ClrErr(
void) { mFlags &= ~mErrFlag; };
463 bool IsErr(
void)
const {
return ( (mFlags & mErrFlag) != 0 ); }
468 bool IsDefault(
void)
const {
return mFlags==mDefHioStateFlags;};
478 const static fType mQYcUpFlag =0x40;
479 const static fType mQYlUeFlag =0x80;
484 const static fType mDefHioStateFlags =0x000 ;
487 const static fType mAllHioStateFlags =0x1FF;
515 virtual void DoRead(
TokenReader& rTr,
const std::string& rLabel=
"",
const Type* pContext=0);
531 virtual void DoWrite(
TokenWriter& rTw,
const std::string& rLabel=
"",
const Type* pContext=0)
const;
#define FAUDES_TYPE_DECLARATION(ftype, ctype, cbase)
faudes type declaration macro
fType mFlags
Flags (public access for convenience)
Event attributes for hierarchical discrete event systems with inputs and outputs.
virtual ~HioEventFlags(void)
void SetU(void)
Set U-flag.
void ClrE(void)
Clear E-flag.
void ClrL(void)
Clear L-flag.
void SetP(void)
Set P-flag.
HioEventFlags(void)
Default constructor.
void ClrC(void)
Clear C-flag.
bool IsL(void) const
Query L-flag.
void SetC(void)
Set C-flag.
void ClrU(void)
Clear U-flag.
void SetE(void)
Set E-flag.
HioEventFlags(const HioEventFlags &rSrc)
Copy constructor.
void SetY(void)
Set Y-flag.
bool IsC(void) const
Query C-flag.
bool IsY(void) const
Query Y-flag.
bool IsP(void) const
Query P-flag.
bool IsU(void) const
Query U-flag.
void SetL(void)
Set L-flag.
bool IsDefault(void) const
Test for default value (ie input and membership in neither P-,E-,C-, nor L-alphabet)
bool IsE(void) const
Query E-flag.
void ClrP(void)
Clear P-flag.
void ClrY(void)
Clear Y-flag.
State attributes for hierarchical discrete event systems with inputs and outputs.
HioStateFlags(const HioStateFlags &rSrc)
Copy constructor.
bool IsQE(void) const
Query QE-state flag.
void ClrQL(void)
Clear QL-state flag.
void ClrQP(void)
Clear QP-state flag.
void SetQU(void)
Set QU-state flag.
void ClrQC(void)
Clear QC-state flag.
void SetQYlUe(void)
Set QYlUe-state flag.
void ClrQE(void)
Clear QE-state flag.
HioStateFlags(void)
Default constructor.
bool IsQC(void) const
Query QC-state flag.
virtual ~HioStateFlags(void)
bool IsQP(void) const
Query QP-state flag.
void SetQE(void)
Set QE-state flag.
bool IsQU(void) const
Query QU-state flag.
void SetQYcUp(void)
Set QYcUp-state flag.
bool IsQY(void) const
Query QY-state flag.
void SetErr(void)
Set Err-state flag.
bool IsQYlUe(void) const
Query QYlUe-state flag.
void SetQY(void)
Set QY-state flag.
void ClrErr(void)
Clear Err-state flag.
void ClrQU(void)
Clear QU-state flag.
void ClrQYcUp(void)
Clear QYcUp-state flag.
void SetQL(void)
Set QL-state flag.
bool IsDefault(void) const
Test for default value.
bool IsQL(void) const
Query QL-state flag.
void ClrQYlUe(void)
Clear QYlUe-state flag.
void SetQC(void)
Set QC-state flag.
void ClrQY(void)
Clear QY-state flag.
void SetQP(void)
Set QP-state flag.
bool IsErr(void) const
Query Err-state flag.
bool IsQYcUp(void) const
Query QYcUp-state flag.
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.
unsigned long int fType
Convenience typdef flag data.