This repository has been archived by the owner on Oct 4, 2019. It is now read-only.
forked from steemit/steem
-
Notifications
You must be signed in to change notification settings - Fork 35
/
mongo_db_operations.hpp
87 lines (77 loc) · 3.9 KB
/
mongo_db_operations.hpp
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#pragma once
#include <golos/protocol/operations.hpp>
#include <bsoncxx/builder/basic/kvp.hpp>
#include <bsoncxx/builder/basic/document.hpp>
#include <bsoncxx/builder/stream/document.hpp>
#include <bsoncxx/builder/stream/array.hpp>
#include <bsoncxx/builder/stream/value_context.hpp>
#include <bsoncxx/json.hpp>
#include <mongocxx/client.hpp>
#include <mongocxx/instance.hpp>
#include <mongocxx/stdx.hpp>
#include <mongocxx/uri.hpp>
namespace golos {
namespace plugins {
namespace mongo_db {
using namespace golos::protocol;
using bsoncxx::builder::stream::document;
class operation_writer {
public:
typedef void result_type;
document& get_document();
void operator()(const vote_operation &op);
void operator()(const comment_operation &op);
void operator()(const transfer_operation &op);
void operator()(const transfer_to_vesting_operation &op);
void operator()(const withdraw_vesting_operation &op);
void operator()(const limit_order_create_operation &op);
void operator()(const limit_order_cancel_operation &op);
void operator()(const feed_publish_operation &op);
void operator()(const convert_operation &op);
void operator()(const account_create_operation &op);
void operator()(const account_update_operation &op);
void operator()(const witness_update_operation &op);
void operator()(const account_witness_vote_operation &op);
void operator()(const account_witness_proxy_operation &op);
void operator()(const pow_operation &op);
void operator()(const custom_operation &op);
void operator()(const report_over_production_operation &op);
void operator()(const delete_comment_operation &op);
void operator()(const custom_json_operation &op);
void operator()(const comment_options_operation &op);
void operator()(const set_withdraw_vesting_route_operation &op);
void operator()(const limit_order_create2_operation &op);
void operator()(const challenge_authority_operation &op);
void operator()(const prove_authority_operation &op);
void operator()(const request_account_recovery_operation &op);
void operator()(const recover_account_operation &op);
void operator()(const change_recovery_account_operation &op);
void operator()(const escrow_transfer_operation &op);
void operator()(const escrow_dispute_operation &op);
void operator()(const escrow_release_operation&op);
void operator()(const pow2_operation &op);
void operator()(const escrow_approve_operation &op);
void operator()(const transfer_to_savings_operation &op);
void operator()(const transfer_from_savings_operation &op);
void operator()(const cancel_transfer_from_savings_operation&op);
void operator()(const custom_binary_operation &op);
void operator()(const decline_voting_rights_operation &op);
void operator()(const reset_account_operation &op);
void operator()(const set_reset_account_operation &op);
void operator()(const fill_convert_request_operation &op);
void operator()(const author_reward_operation &op);
void operator()(const curation_reward_operation &op);
void operator()(const comment_reward_operation &op);
void operator()(const liquidity_reward_operation &op);
void operator()(const interest_operation &op);
void operator()(const fill_vesting_withdraw_operation &op);
void operator()(const fill_order_operation &op);
void operator()(const shutdown_witness_operation &op);
void operator()(const fill_transfer_from_savings_operation &op);
void operator()(const hardfork_operation &op);
void operator()(const comment_payout_update_operation &op);
void operator()(const comment_benefactor_reward_operation& op);
private:
document data;
};
}}}