DebuggerUtilities.h
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 
31 #ifndef CORE_DEBUGGERUTILITIES_H_
32 #define CORE_DEBUGGERUTILITIES_H_
33 
35 #include "debugger/DebugObserver.h"
36 #include "PFPObject.h"
37 
39  public:
41  virtual ~DebuggerUtilities() = default;
42 
55  std::shared_ptr<pfp::core::db::DebugObserver> debug_obs;
56 };
57 
58 #endif // CORE_DEBUGGERUTILITIES_H_
void notify_observers(pfp::core::PFPObject *object)
Thread function to service notifications from all observers.
Definition: DebuggerUtilities.cpp:38
Defines an interface to be implemented by Control Plane modules for compatibility with the debugger...
Definition: DebuggerUtilities.h:38
Definition: PFPObject.h:102
Interface for Control Plane module that is necessary for it to work with pfpdb.
Definition: CPDebuggerInterface.h:57
void registerControlPlaneToDebugger(pfp::core::db::CPDebuggerInterface *cp_debug_if)
Register ControlPlane Instance to the debugger object.
Definition: DebuggerUtilities.cpp:46
Observer for simulation which maintains a record of the simulation via the DebugDataManager so that t...
std::shared_ptr< pfp::core::db::DebugObserver > debug_obs
Observer for the debugger.
Definition: DebuggerUtilities.h:55