ScummVM API documentation
breakpoint.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef BREAKPOINT_H_
23 #define BREAKPOINT_H_
24 #include "common/str.h"
25 
26 namespace Wintermute {
27 
28 class ScriptMonitor;
29 class DebuggableScript;
30 
31 class Breakpoint {
32  const Common::String _filename;
33  const uint _line;
34  uint _hits;
35  bool _enabled;
36  ScriptMonitor *_monitor;
37  void hit(DebuggableScript *script);
38 public:
39  Breakpoint(const Common::String &filename, uint line, ScriptMonitor *monitor);
45  void evaluate(DebuggableScript* script);
46  Common::String getFilename() const;
47  int getLine() const;
48  int getHits() const;
49  bool isEnabled() const;
50  void enable();
51  void disable();
52  virtual ~Breakpoint();
53 };
54 
55 } // End of namespace Wintermute
56 
57 #endif /* BREAKPOINT_H_ */
Definition: str.h:59
void evaluate(DebuggableScript *script)
Definition: script_monitor.h:31
Definition: breakpoint.h:31
Definition: debuggable_script.h:32
Definition: achievements_tables.h:27