Nemiver  0.3
nmv-watchpoint-dialog.h
Go to the documentation of this file.
1 // Author: Dodji Seketeli
2 
3 /*
4  *This file is part of the Nemiver project
5  *
6  *Nemiver is free software; you can redistribute
7  *it and/or modify it under the terms of
8  *the GNU General Public License as published by the
9  *Free Software Foundation; either version 2,
10  *or (at your option) any later version.
11  *
12  *Nemiver is distributed in the hope that it will
13  *be useful, but WITHOUT ANY WARRANTY;
14  *without even the implied warranty of
15  *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  *See the GNU General Public License for more details.
17  *
18  *You should have received a copy of the
19  *GNU General Public License along with Nemiver;
20  *see the file COPYING.
21  *If not, write to the Free Software Foundation,
22  *Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23  *
24  *See COPYRIGHT file copyright information.
25  */
26 #ifndef NMV_WATCHPOINT_DIALOG_H__
27 #define NMV_WATCHPOINT_DIALOG_H__
28 
30 #include "nmv-dialog.h"
31 #include "nmv-i-debugger.h"
32 #include "nmv-i-perspective.h"
33 
34 NEMIVER_BEGIN_NAMESPACE (nemiver)
35 
36 namespace common {
37 class UString;
38 }
39 
40 class WatchpointDialog : public Dialog
41 {
42  struct Priv;
43  SafePtr<Priv> m_priv;
46  WatchpointDialog& operator= (WatchpointDialog &);
47 
48 public:
49 
50  // The mode of the Watchpoint.
51  // a WRITE_MODE means the watchpoint triggers when the watched location
52  // is read, and READ_MODE means the watchpoint trigger when the
53  // watches location is written to. A watchpoint mode can be READ and WRITE;
54  // in that case, it's called an access watchpoint.
55  enum Mode
56  {
57  UNDEFINED_MODE = 0,
58  WRITE_MODE = 1,
59  READ_MODE = 1 << 1
60  };
61 
62  WatchpointDialog (Gtk::Window &a_parent,
63  const UString &a_resource_root_path,
64  IDebugger &a_debugger,
65  IPerspective &a_perspective);
66  virtual ~WatchpointDialog ();
67 
68  const UString expression () const;
69  void expression (const UString &);
70 
71  Mode mode () const;
72  void mode (Mode);
73 };// end class WatchpointDialog
74 
75 WatchpointDialog::Mode operator| (WatchpointDialog::Mode,
76  WatchpointDialog::Mode);
77 WatchpointDialog::Mode operator& (WatchpointDialog::Mode,
78  WatchpointDialog::Mode);
79 WatchpointDialog::Mode operator~ (WatchpointDialog::Mode);
80 WatchpointDialog::Mode& operator|= (WatchpointDialog::Mode&,
81  WatchpointDialog::Mode);
82 WatchpointDialog::Mode& operator&= (WatchpointDialog::Mode&,
83  WatchpointDialog::Mode);
84 NEMIVER_END_NAMESPACE (nemiver)
85 
86 #endif // NMV_WATCHPOINT_DIALOG_H__
nmv-safe-ptr-utils.h
nemiver
Definition: nmv-address.h:31
nemiver::operator&
WatchpointDialog::Mode operator&(WatchpointDialog::Mode, WatchpointDialog::Mode)
nemiver::WatchpointDialog::Mode
Mode
Definition: nmv-watchpoint-dialog.h:55
nemiver::operator&=
WatchpointDialog::Mode & operator&=(WatchpointDialog::Mode &, WatchpointDialog::Mode)
nemiver::common::UString
Definition: nmv-ustring.h:45
nemiver::operator|
WatchpointDialog::Mode operator|(WatchpointDialog::Mode, WatchpointDialog::Mode)
nemiver::IDebugger
a debugger engine.
Definition: nmv-i-debugger.h:74
nemiver::WatchpointDialog
Definition: nmv-watchpoint-dialog.h:40
nmv-i-perspective.h
nmv-i-debugger.h
nemiver::operator~
WatchpointDialog::Mode operator~(WatchpointDialog::Mode)
nemiver::IPerspective
Definition: nmv-i-perspective.h:54
nemiver::Dialog
Definition: nmv-dialog.h:50
nemiver::common::SafePtr< Priv >
nmv-dialog.h
nemiver::operator|=
WatchpointDialog::Mode & operator|=(WatchpointDialog::Mode &, WatchpointDialog::Mode)
common
Definition: nmv-proc-list-dialog.h:32