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/queries/query_variant.hpp"
7 :
8 : #include "interfaces/queries/get_account.hpp"
9 : #include "interfaces/queries/get_account_asset_transactions.hpp"
10 : #include "interfaces/queries/get_account_assets.hpp"
11 : #include "interfaces/queries/get_account_detail.hpp"
12 : #include "interfaces/queries/get_account_transactions.hpp"
13 : #include "interfaces/queries/get_asset_info.hpp"
14 : #include "interfaces/queries/get_block.hpp"
15 : #include "interfaces/queries/get_pending_transactions.hpp"
16 : #include "interfaces/queries/get_role_permissions.hpp"
17 : #include "interfaces/queries/get_roles.hpp"
18 : #include "interfaces/queries/get_signatories.hpp"
19 : #include "interfaces/queries/get_transactions.hpp"
20 : #include "interfaces/queries/query_payload_meta.hpp"
21 : #include "utils/visitor_apply_for_all.hpp"
22 :
23 : using Variant = shared_model::interface::Query::QueryVariantType;
24 : template Variant::~variant();
25 : template Variant::variant(Variant &&);
26 : template bool Variant::operator==(const Variant &) const;
27 : template void Variant::destroy_content() noexcept;
28 : template int Variant::which() const noexcept;
29 : template void Variant::indicate_which(int) noexcept;
30 : template bool Variant::using_backup() const noexcept;
31 : template Variant::convert_copy_into::convert_copy_into(void *) noexcept;
32 :
33 : namespace shared_model {
34 : namespace interface {
35 :
36 : std::string Query::toString() const {
37 0 : return detail::PrettyStringBuilder()
38 0 : .init("Query")
39 0 : .append("creatorId", creatorAccountId())
40 0 : .append("queryCounter", std::to_string(queryCounter()))
41 0 : .append(Signable::toString())
42 0 : .append(boost::apply_visitor(detail::ToStringVisitor(), get()))
43 0 : .finalize();
44 0 : }
45 :
46 : bool Query::operator==(const ModelType &rhs) const {
47 1 : return this->get() == rhs.get();
48 : }
49 :
50 : } // namespace interface
51 : } // namespace shared_model
|