Watchpoint.h
Go to the documentation of this file.
1 /*
2  * PFPSim: Library for the Programmable Forwarding Plane Simulation Framework
3  *
4  * Copyright (C) 2016 Concordia Univ., Montreal
5  * Samar Abdi
6  * Umair Aftab
7  * Gordon Bailey
8  * Faras Dewal
9  * Shafigh Parsazad
10  * Eric Tremblay
11  *
12  * Copyright (C) 2016 Ericsson
13  * Bochra Boughzala
14  *
15  * This program is free software; you can redistribute it and/or
16  * modify it under the terms of the GNU General Public License
17  * as published by the Free Software Foundation; either version 2
18  * of the License, or (at your option) any later version.
19  *
20  * This program is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23  * GNU General Public License for more details.
24  *
25  * You should have received a copy of the GNU General Public License
26  * along with this program; if not, write to the Free Software
27  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
28  * 02110-1301, USA.
29  */
30 
39 #ifndef CORE_DEBUGGER_WATCHPOINT_H_
40 #define CORE_DEBUGGER_WATCHPOINT_H_
41 
42 #include <string>
43 #include <iostream>
44 
45 namespace pfp {
46 namespace core {
47 namespace db {
48 
53 class Watchpoint {
54  public:
58  Watchpoint();
59 
65  explicit Watchpoint(std::string name, bool dis = false);
66 
71  int getID() const;
72 
77  std::string getCounterName() const;
78 
79  bool disabled;
81  private:
82  int id;
83  static int next_id;
84  std::string counter_name;
85 };
86 
87 }; // namespace db
88 }; // namespace core
89 }; // namespace pfp
90 
91 #endif // CORE_DEBUGGER_WATCHPOINT_H_
Watchpoint()
Default Constructor.
Definition: Watchpoint.cpp:40
std::string getCounterName() const
Get name of counter the Watchpoint is set on.
Definition: Watchpoint.cpp:53
Class representation of watchpoints.
Definition: Watchpoint.h:53
bool disabled
Definition: Watchpoint.h:79
int getID() const
Get the unique ID of the Watchpoint.
Definition: Watchpoint.cpp:49
PacketBase.h.
Definition: ConfigurationParameters.cpp:36