10 #ifndef CARMA_CANBUS_MESSAGE_H
11 #define CARMA_CANBUS_MESSAGE_H
190 ::std::string
dump(
bool abbreviate,
bool ascii )
const;
void setData(const carma::canbus::DataVector &data)
Set the data.
carma::canbus::busIdType getBusId() const
Get CAN bus Id.
unsigned char byteType
Base raw CAN byte.
bool operator!=(const Message &other)
Returns false if the id's, busId's or data differs (including length).
Declarations of carma::canbus types.
Class to encapsulate a CAN message.
double getRxMjd() const
Return the Rx MJD time.
carma::canbus::Message & operator<<(unsigned char rvalue)
Add an unsigned char to CAN message data.
carma::canbus::idType getId() const
Get CAN message id.
void setRxMjd(double mjd)
Set the rxMjd time.
::std::string dump(bool abbreviate, bool ascii) const
Dump everything we know about this message in CARMAesque.
bool operator==(const Message &other)
Returns true if the id's, data and busId's are identical (including data length). ...
DataVector getData() const
Get the data as a vector of up to 8 bytes.
bool isSimulated() const
Return simulated flag.
void setBusId(carma::canbus::busIdType busId)
Set bus Id.
Message()
Default constructor.
::std::vector< ::carma::canbus::byteType > DataVector
Alias for CAN data.
unsigned int idType
Type for full 29 bit CAN id.
unsigned short busIdType
Carma Bus Id type.
void setSimFlag(bool sim)
Set the simulated flag.
Message & operator=(const Message &other)
Assignment operator.
void setId(carma::canbus::idType id)
Set CAN message id.