CPDebuggerInterface.h
Go to the documentation of this file.
void printTableEntries()
Print the internal list of entries to stdout.
Definition: CPDebuggerInterface.cpp:83
std::string action_name
Name of the action that is used if this entry is hit.
Definition: CPDebuggerInterface.h:85
void updateTableEntry(std::string table_name, uint64_t handle, std::string action_name, std::vector< std::string > action_data)
Update or modify an entry that has already been added to the internal list of entries.
Definition: CPDebuggerInterface.cpp:104
Interface for Control Plane module that is necessary for it to work with pfpdb.
Definition: CPDebuggerInterface.h:57
std::vector< CPDebuggerInterface::TableEntry > getAllTableEntries()
Get internal list of table entries.
Definition: CPDebuggerInterface.cpp:133
void addTableEntry(std::string table_name, std::string match_key, std::string action_name, std::vector< std::string > action_data, uint64_t handle=-1)
Add a table entry to internal list of entries.
Definition: CPDebuggerInterface.cpp:57
void updateHandle(std::string table_name, std::string match_key, std::string action_name, uint64_t handle)
Update the handle of an entry in internal list of entries.
Definition: CPDebuggerInterface.cpp:40
Data Structure used to represent table entries so that they can be stored.
Definition: CPDebuggerInterface.h:70
void deleteTableEntry(std::string table_name, uint64_t handle)
Delete an entry from the internal list of entries.
Definition: CPDebuggerInterface.cpp:117
std::vector< std::string > action_data
Data inserted into the action if this entry is hit.
Definition: CPDebuggerInterface.h:87
std::string match_key
Key used to perform the match.
Definition: CPDebuggerInterface.h:83
std::string table_name
Name of table in which the entry is found.
Definition: CPDebuggerInterface.h:81
uint64_t handle
Handle (or unique identifier) corresponding to this entry.
Definition: CPDebuggerInterface.h:89
std::map< std::string, std::map< std::string, std::vector< TableEntry > > > table_entries
List of table entries (in a more convenient data structure)
Definition: CPDebuggerInterface.h:153