yast2-core
YBreakpoint.h
Go to the documentation of this file.
1 /*-----------------------------------------------------------*- c++ -*-\
2 | |
3 | __ __ ____ _____ ____ |
4 | \ \ / /_ _/ ___|_ _|___ \ |
5 | \ V / _` \___ \ | | __) | |
6 | | | (_| |___) || | / __/ |
7 | |_|\__,_|____/ |_| |_____| |
8 | |
9 | core system |
10 | (C) SuSE GmbH |
11 \----------------------------------------------------------------------/
12 
13  File: YBreakpoint.h
14 
15  Author: Stanislav Visnovsky <visnov@suse.cz>
16  Maintainer: Stanislav Visnovsky <visnov@suse.cz>
17 
18 /-*/
19 // -*- c++ -*-
20 
21 #ifndef YBreakpoint_h
22 #define YBreakpoint_h
23 
24 #include <string>
25 using std::string;
26 
27 #include "ycp/YCode.h"
28 #include "ycp/YCodePtr.h"
29 
30 #include "ycp/YCPValue.h"
31 #include "ycp/YCPString.h"
32 #include "ycp/Type.h"
33 #include "ycp/YSymbolEntry.h"
34 
40 class YBreakpoint : public YCode
41 {
43 
44  YCodePtr m_code;
45  bool m_enabled;
46  string m_name;
47 public:
48 
52  YBreakpoint (YCodePtr wrapped_ycp, string name);
53 
57  virtual ~YBreakpoint();
58 
64  virtual ykind kind() const { return yiBreakpoint; }
65 
71  virtual string toString() const;
72 
76  virtual std::ostream & toStream (std::ostream & str) const;
77 
84  virtual std::ostream & toXml (std::ostream & str, int indent ) const;
85 
91  virtual bool isConstant () const;
92 
98  virtual bool isStatement () const;
99 
105  virtual bool isBlock () const;
106 
112  virtual bool isReferenceable () const;
113 
121  virtual YCPValue evaluate (bool cse = false);
122 
128  virtual constTypePtr type () const;
129 
130  YCodePtr code () const;
131 
132  bool enabled () const;
133  void setEnabled (bool enable);
134 };
135 
136 #endif // YBreakpoint_h

Generated on a sunny day for yast2-core by doxygen 1.8.2