FIX: fixed some issues with the enumaration and updated the Message class
This commit is contained in:
@@ -29,13 +29,19 @@ namespace WHISPER {
|
||||
/// owntrack informaton
|
||||
OWN_TRACK,
|
||||
/// raw track message
|
||||
RAW_TRACK,
|
||||
GROUND_TRUTH_TRACK,
|
||||
/// radar track
|
||||
RADAR_TRACK,
|
||||
/// esm track
|
||||
ESM_TRACK,
|
||||
/// SENSOR Track message
|
||||
SENSOR_TRACK,
|
||||
/// simple data
|
||||
SIMPLE,
|
||||
///
|
||||
STRINGDATA
|
||||
///dummy string Data
|
||||
STRINGDATA,
|
||||
/// Command messages
|
||||
COMMAND
|
||||
}; // enum class EventType
|
||||
|
||||
|
||||
@@ -56,7 +62,7 @@ namespace WHISPER {
|
||||
|
||||
};
|
||||
|
||||
enum SourceType : int32_t
|
||||
enum SourceType : uint32_t
|
||||
{
|
||||
SIMCOMTROLER,
|
||||
///
|
||||
@@ -115,12 +121,15 @@ namespace WHISPER {
|
||||
std::string serialize();
|
||||
|
||||
|
||||
protected:
|
||||
/**
|
||||
* @brief adds the payload with type of shared_prt of protbuf::any
|
||||
* @param std::shared_ptr<google::protobuf::Any>
|
||||
*/
|
||||
void addPayLoad(std::shared_ptr<google::protobuf::Any> any);
|
||||
|
||||
messages::header::Message getProtoMessage();
|
||||
|
||||
protected:
|
||||
// void addPayLoad(std::string any);
|
||||
|
||||
/// protobuf message; our header message
|
||||
|
||||
Reference in New Issue
Block a user