Line data Source code
1 : /**
2 : * Copyright Soramitsu Co., Ltd. All Rights Reserved.
3 : * SPDX-License-Identifier: Apache-2.0
4 : */
5 :
6 : #include "interfaces/query_responses/query_response_variant.hpp"
7 :
8 : #include "interfaces/query_responses/account_asset_response.hpp"
9 : #include "interfaces/query_responses/account_detail_response.hpp"
10 : #include "interfaces/query_responses/account_response.hpp"
11 : #include "interfaces/query_responses/asset_response.hpp"
12 : #include "interfaces/query_responses/error_query_response.hpp"
13 : #include "interfaces/query_responses/role_permissions.hpp"
14 : #include "interfaces/query_responses/roles_response.hpp"
15 : #include "interfaces/query_responses/signatories_response.hpp"
16 : #include "interfaces/query_responses/transactions_response.hpp"
17 : #include "utils/visitor_apply_for_all.hpp"
18 :
19 : using Variant =
20 : shared_model::interface::QueryResponse::QueryResponseVariantType;
21 : template Variant::~variant();
22 : template Variant::variant(Variant &&);
23 : template bool Variant::operator==(const Variant &) const;
24 : template void Variant::destroy_content();
25 : template int Variant::which() const;
26 : template void Variant::indicate_which(int);
27 : template bool Variant::using_backup() const;
28 : template Variant::convert_copy_into::convert_copy_into(void *);
29 :
30 : namespace shared_model {
31 : namespace interface {
32 :
33 : std::string QueryResponse::toString() const {
34 0 : return boost::apply_visitor(detail::ToStringVisitor(), get());
35 : }
36 :
37 : bool QueryResponse::operator==(const ModelType &rhs) const {
38 1 : return queryHash() == rhs.queryHash() and get() == rhs.get();
39 : }
40 :
41 : } // namespace interface
42 : } // namespace shared_model
|