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
YCodePtr m_code
Definition: YBreakpoint.h:44
YCode for precompiled ycp code.
Definition: YCode.h:75
#define str
Definition: scanner.cc:1003
virtual YCPValue evaluate(bool cse=false)
Definition: YBreakpoint.cc:115
virtual std::ostream & toXml(std::ostream &str, int indent) const
Definition: YBreakpoint.cc:108
void setEnabled(bool enable)
Definition: YBreakpoint.cc:147
ykind
Definition: YCode.h:90
virtual bool isReferenceable() const
Definition: YBreakpoint.cc:81
enters the component to the broker s list in the given order Y2Component int int current_level same as but for external components which may reside in different directories The level identifies the directory prefix from the list defined in pathsearch cc bool false for clients bool true for clients Catalog of component take it if we can stat it and it is not take it if we can t stat it and its line matches in current level only name
Definition: componentcreator.txt:34
bool enabled() const
Definition: YBreakpoint.cc:141
string m_name
Definition: YBreakpoint.h:46
virtual bool isStatement() const
Definition: YBreakpoint.cc:67
bool m_enabled
Definition: YBreakpoint.h:45
virtual bool isConstant() const
Definition: YBreakpoint.cc:60
virtual constTypePtr type() const
Definition: YBreakpoint.cc:135
virtual bool isBlock() const
Definition: YBreakpoint.cc:74
virtual ykind kind() const
Definition: YBreakpoint.h:64
virtual ~YBreakpoint()
Definition: YBreakpoint.cc:53
YBreakpoint wrapper for YCP debugger.
Definition: YBreakpoint.h:40
Definition: YCode.h:157
virtual string toString() const
Definition: YBreakpoint.cc:88
REP_BODY(YBreakpoint)
YBreakpoint(YCodePtr wrapped_ycp, string name)
Definition: YBreakpoint.cc:45
Wrapper for YCPValueRep This class realizes an automatic memory management via YCPElement. Access the functionality of YCPValueRep with the arrow operator. See YCPValueRep.
Definition: YCPValue.h:275
YCodePtr code() const
Definition: YBreakpoint.cc:94
virtual std::ostream & toStream(std::ostream &str) const
Definition: YBreakpoint.cc:101

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