MessageTag.cpp 642 Bytes
Newer Older
Valentin Platzgummer's avatar
Valentin Platzgummer committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
#include "MessageTag.h"

MessageTag::MessageTag()
{

}

MessageTag::MessageTag(const std::string &topic, const std::string &messageType) :
    _topic(topic)
  , _messagType(messageType)
{

}

const std::string &MessageTag::topic() const
{
    return _topic;
}

const std::string &MessageTag::messageType() const
{
    return _messagType;
}

std::string &MessageTag::topic()
{
    return _topic;
}

std::string &MessageTag::messageType()
{
    return _messagType;
}

void MessageTag::setTopic(const std::string &topic)
{
    _topic = topic;
}

void MessageTag::setMessageType(const std::string &messageType)
{
    _messagType = messageType;
}