|
yast2-core
|
00001 /*-----------------------------------------------------------*- c++ -*-\ 00002 | | 00003 | __ __ ____ _____ ____ | 00004 | \ \ / /_ _/ ___|_ _|___ \ | 00005 | \ V / _` \___ \ | | __) | | 00006 | | | (_| |___) || | / __/ | 00007 | |_|\__,_|____/ |_| |_____| | 00008 | | 00009 | core system | 00010 | (C) SuSE GmbH | 00011 \----------------------------------------------------------------------/ 00012 00013 File: YBreakpoint.h 00014 00015 Author: Stanislav Visnovsky <visnov@suse.cz> 00016 Maintainer: Stanislav Visnovsky <visnov@suse.cz> 00017 00018 /-*/ 00019 // -*- c++ -*- 00020 00021 #ifndef YBreakpoint_h 00022 #define YBreakpoint_h 00023 00024 #include <string> 00025 using std::string; 00026 00027 #include "ycp/YCode.h" 00028 #include "ycp/YCodePtr.h" 00029 00030 #include "ycp/YCPValue.h" 00031 #include "ycp/YCPString.h" 00032 #include "ycp/Type.h" 00033 #include "ycp/YSymbolEntry.h" 00034 00040 class YBreakpoint : public YCode 00041 { 00042 REP_BODY(YBreakpoint); 00043 00044 YCodePtr m_code; 00045 bool m_enabled; 00046 string m_name; 00047 public: 00048 00052 YBreakpoint (YCodePtr wrapped_ycp, string name); 00053 00057 virtual ~YBreakpoint(); 00058 00064 virtual ykind kind() const { return yiBreakpoint; } 00065 00071 virtual string toString() const; 00072 00076 virtual std::ostream & toStream (std::ostream & str) const; 00077 00084 virtual std::ostream & toXml (std::ostream & str, int indent ) const; 00085 00091 virtual bool isConstant () const; 00092 00098 virtual bool isStatement () const; 00099 00105 virtual bool isBlock () const; 00106 00112 virtual bool isReferenceable () const; 00113 00121 virtual YCPValue evaluate (bool cse = false); 00122 00128 virtual constTypePtr type () const; 00129 00130 YCodePtr code () const; 00131 00132 bool enabled () const; 00133 void setEnabled (bool enable); 00134 }; 00135 00136 #endif // YBreakpoint_h
1.7.5.1