13 #ifndef FAUDES_CGP_EVENTCONF_H
14 #define FAUDES_CGP_EVENTCONF_H
16 #include "libfaudes.h"
18 using namespace faudes;
24 #ifdef FAUDES_DEBUG_CODEGEN
25 #define FD_DCG(message) FAUDES_WRITE_CONSOLE("FAUDES_CODEGENERATOR: " << message)
27 #define FD_DCG(message)
123 { DoAssign(rOtherAttr); };
129 virtual void Clear(
void);
132 typedef enum { ETInput, ETOutput, ETInternal } EventType;
138 bool Input(
void)
const {
return mType == ETInput;};
141 bool Output(
void)
const {
return mType == ETOutput;};
144 bool Internal(
void)
const {
return mType == ETInternal;};
147 bool Timer(
void)
const {
return (mType == ETInternal) && (mTimeConstraint.mInitialValue !=
"");};
229 virtual void DoRead(TokenReader& rTr,
const std::string& rLabel=
"",
const Type* pContext=0);
249 virtual void DoWrite(TokenWriter& rTw,
const std::string& rLabel=
"",
const Type* pContext=0)
const;