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/commands/command_variant.hpp"
7 :
8 : #include "interfaces/commands/add_asset_quantity.hpp"
9 : #include "interfaces/commands/add_peer.hpp"
10 : #include "interfaces/commands/add_signatory.hpp"
11 : #include "interfaces/commands/append_role.hpp"
12 : #include "interfaces/commands/create_account.hpp"
13 : #include "interfaces/commands/create_asset.hpp"
14 : #include "interfaces/commands/create_domain.hpp"
15 : #include "interfaces/commands/create_role.hpp"
16 : #include "interfaces/commands/detach_role.hpp"
17 : #include "interfaces/commands/grant_permission.hpp"
18 : #include "interfaces/commands/remove_signatory.hpp"
19 : #include "interfaces/commands/revoke_permission.hpp"
20 : #include "interfaces/commands/set_account_detail.hpp"
21 : #include "interfaces/commands/set_quorum.hpp"
22 : #include "interfaces/commands/subtract_asset_quantity.hpp"
23 : #include "interfaces/commands/transfer_asset.hpp"
24 : #include "utils/visitor_apply_for_all.hpp"
25 :
26 : using Variant = shared_model::interface::Command::CommandVariantType;
27 : template Variant::~variant();
28 : template Variant::variant(Variant &&);
29 : template bool Variant::operator==(const Variant &) const;
30 : template void Variant::destroy_content();
31 : template int Variant::which() const;
32 : template void Variant::indicate_which(int);
33 : template bool Variant::using_backup() const;
34 : template Variant::convert_copy_into::convert_copy_into(void *);
35 :
36 : namespace shared_model {
37 : namespace interface {
38 :
39 : std::string Command::toString() const {
40 2079 : return boost::apply_visitor(detail::ToStringVisitor(), get());
41 : }
42 :
43 : bool Command::operator==(const ModelType &rhs) const {
44 0 : return this->get() == rhs.get();
45 : }
46 :
47 : } // namespace interface
48 : } // namespace shared_model
|