aboutsummaryrefslogtreecommitdiffstats
path: root/messagebus/src/vespa/messagebus/testlib/simplereply.cpp
blob: 74e95dbb3300cf7eae28fb2cd73c5054e11a5442 (plain) (blame)
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
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "simplereply.h"
#include "simpleprotocol.h"

namespace mbus {

SimpleReply::SimpleReply(const string &str) :
    Reply(),
    _value(str)
{ }

SimpleReply::~SimpleReply() { }

void
SimpleReply::setValue(const string &value)
{
    _value = value;
}

const string &
SimpleReply::getValue() const
{
    return _value;
}

const string &
SimpleReply::getProtocol() const
{
    return SimpleProtocol::NAME;
}

uint32_t
SimpleReply::getType() const
{
    return SimpleProtocol::REPLY;
}

} // namespace mbus