blob: fb15b8b47ab1a0fa19d78891329b5df7df868075 (
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 "getbucketlistreply.h"
#include <vespa/documentapi/messagebus/documentprotocol.h>
#include <ostream>
namespace documentapi {
GetBucketListReply::BucketInfo::BucketInfo() :
_bucket(),
_bucketInformation()
{ }
GetBucketListReply::BucketInfo::BucketInfo(const document::BucketId &bucketId,
const string &bucketInformation) :
_bucket(bucketId),
_bucketInformation(bucketInformation)
{ }
bool
GetBucketListReply::BucketInfo::operator==(const GetBucketListReply::BucketInfo &rhs) const
{
return _bucket == rhs._bucket && _bucketInformation == rhs._bucketInformation;
}
GetBucketListReply::GetBucketListReply() noexcept :
DocumentReply(DocumentProtocol::REPLY_GETBUCKETLIST),
_buckets()
{ }
GetBucketListReply::~GetBucketListReply() = default;
std::ostream &
operator<<(std::ostream &out, const GetBucketListReply::BucketInfo &info)
{
return out << "BucketInfo(" << info._bucket << ": " << info._bucketInformation << ")";
}
}
|