pfp::core::db::DebuggerMessage Class Reference
Base class for an messages that will be sent to pfpdb via the DebuggerIPCServer. More...
#include <DebuggerMessages.h>
Inheritance diagram for pfp::core::db::DebuggerMessage:
Collaboration diagram for pfp::core::db::DebuggerMessage:
Public Member Functions | |
DebuggerMessage (PFPSimDebugger::DebugMsg_Type type) | |
Default Constructor. More... | |
~DebuggerMessage () | |
Destructor. | |
bool | SerializeToString (std::string *output) |
Serializes the message to a string using protobuf so that it can easily be send via the IPC. More... | |
std::string | DebugString () |
Creates a human-readable string representation of the message so that it can be printed in a log. More... | |
PFPSimDebugger::DebugMsg_Type | type () |
Get the type of the message. More... | |
Protected Attributes | |
PFPSimDebugger::DebugMsg | message |
Detailed Description
Base class for an messages that will be sent to pfpdb via the DebuggerIPCServer.
Constructor & Destructor Documentation
|
explicit |
Default Constructor.
- Parameters
-
type The type of the message as indicate in the proto file. This allows pfpdb to figure out what message it is receiving.
Member Function Documentation
std::string pfp::core::db::DebuggerMessage::DebugString | ( | ) |
Creates a human-readable string representation of the message so that it can be printed in a log.
- Returns
- Human-readable string representation of the message.
bool pfp::core::db::DebuggerMessage::SerializeToString | ( | std::string * | output | ) |
Serializes the message to a string using protobuf so that it can easily be send via the IPC.
- Parameters
-
output The serialized string.
- Returns
- True if the serialization was successful, false otherwise.
PFPSimDebugger::DebugMsg_Type pfp::core::db::DebuggerMessage::type | ( | ) |
Get the type of the message.
- Returns
- Type of message.
Member Data Documentation
|
protected |
protobuf message object.
The documentation for this class was generated from the following files:
- /home/lemniscate/workspace/PFPSim/pfpsim/core/debugger/DebuggerMessages.h
- /home/lemniscate/workspace/PFPSim/pfpsim/core/debugger/DebuggerMessages.cpp