Removed more useless C++ files
This commit is contained in:
@@ -1,38 +0,0 @@
|
||||
#include "message.hpp"
|
||||
|
||||
Message::Message()
|
||||
{
|
||||
m_sender = 0;
|
||||
m_type = 0;
|
||||
m_args[0] = 0;
|
||||
m_args[1] = 0;
|
||||
m_args[2] = 0;
|
||||
}
|
||||
|
||||
Message::Message(const Message& copy)
|
||||
{
|
||||
m_sender = copy.m_sender;
|
||||
m_type = copy.m_type;
|
||||
m_args[0] = copy.m_args[0];
|
||||
m_args[1] = copy.m_args[1];
|
||||
m_args[2] = copy.m_args[2];
|
||||
}
|
||||
|
||||
Message::Message(unsigned int sender, unsigned int type,
|
||||
unsigned long arg1, unsigned long arg2, unsigned long arg3)
|
||||
{
|
||||
m_sender = sender;
|
||||
m_type = type;
|
||||
m_args[0] = arg1;
|
||||
m_args[1] = arg2;
|
||||
m_args[2] = arg3;
|
||||
}
|
||||
|
||||
Message& Message::operator=(const Message& rhs)
|
||||
{
|
||||
m_sender = rhs.m_sender;
|
||||
m_type = rhs.m_type;
|
||||
m_args[0] = rhs.m_args[0];
|
||||
m_args[1] = rhs.m_args[1];
|
||||
m_args[2] = rhs.m_args[2];
|
||||
}
|
||||
@@ -1,59 +0,0 @@
|
||||
#ifndef MESSAGE_H
|
||||
#define MESSAGE_H
|
||||
|
||||
struct Message
|
||||
{
|
||||
|
||||
/**
|
||||
* @brief Default constructor. Initializes all members to 0.
|
||||
*
|
||||
*/
|
||||
Message();
|
||||
|
||||
/**
|
||||
* @brief Copy constructor.
|
||||
*
|
||||
* @param copy
|
||||
*/
|
||||
Message(const Message& copy);
|
||||
|
||||
/**
|
||||
* @brief Construct a new Message object.
|
||||
*
|
||||
* @param sender
|
||||
* @param type
|
||||
* @param arg1
|
||||
* @param arg2
|
||||
* @param arg3
|
||||
*/
|
||||
Message(unsigned int sender, unsigned int type,
|
||||
unsigned long arg1, unsigned long arg2, unsigned long arg3);
|
||||
|
||||
/**
|
||||
* @brief Copy the contents of `rhs` to this object.
|
||||
*
|
||||
* @param rhs
|
||||
* @return Message&
|
||||
*/
|
||||
Message& operator=(const Message& rhs);
|
||||
|
||||
/**
|
||||
* @brief PID of the process that generated this message.
|
||||
*/
|
||||
unsigned int m_sender;
|
||||
|
||||
/**
|
||||
* @brief Context-specific parameter which indicates to the receiver how
|
||||
* the arguments are to be interpreted.
|
||||
*/
|
||||
unsigned int m_type;
|
||||
|
||||
/**
|
||||
* @brief Arguments of this message. The meaning of these values depend on
|
||||
* context, as well as the values of `m_sender` and `m_type`.
|
||||
*/
|
||||
unsigned long m_args[3];
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user