/* Web Polygraph http://www.web-polygraph.org/ * (C) 2003-2006 The Measurement Factory * Licensed under the Apache License, Version 2.0 */ #ifndef POLYGRAPH__PGL_PGLBOOLSYM_H #define POLYGRAPH__PGL_PGLBOOLSYM_H #include "pgl/PglExprSym.h" class BoolSym: public ExpressionSym { public: static String TheType; public: BoolSym(bool aVal); bool val() const { return theVal; } void val(bool v) { theVal = v; } virtual bool isA(const String &type) const; virtual ExpressionSym *unOper(const Oper &op) const; virtual ExpressionSym *bnOper(const Oper &op, const SynSym &exp) const; virtual ostream &print(ostream &os, const String &pfx) const; protected: virtual SynSym *dupe(const String &dType) const; protected: bool theVal; }; #endif