// $Id: BreakPointBase.hh 5854 2006-11-06 18:24:21Z m9710797 $ #ifndef BREAKPOINTBASE_HH #define BREAKPOINTBASE_HH #include "noncopyable.hh" #include #include namespace openmsx { class MSXCliComm; class TclObject; /** Base class for CPU break and watch points. */ class BreakPointBase : private noncopyable { public: std::string getCondition() const; std::string getCommand() const; void checkAndExecute(); protected: BreakPointBase(MSXCliComm& CliComm, std::auto_ptr command, std::auto_ptr condition); ~BreakPointBase(); private: bool isTrue() const; MSXCliComm& cliComm; std::auto_ptr command; std::auto_ptr condition; bool executing; }; } // namespace openmsx #endif