Scorum
libraries
plugins
blockchain_history
include
scorum
blockchain_history
blockchain_history_plugin.hpp
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
3
*
4
* The MIT License
5
*
6
* Permission is hereby granted, free of charge, to any person obtaining a copy
7
* of this software and associated documentation files (the "Software"), to deal
8
* in the Software without restriction, including without limitation the rights
9
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
* copies of the Software, and to permit persons to whom the Software is
11
* furnished to do so, subject to the following conditions:
12
*
13
* The above copyright notice and this permission notice shall be included in
14
* all copies or substantial portions of the Software.
15
*
16
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
* THE SOFTWARE.
23
*/
24
#pragma once
25
26
#include <
scorum/app/plugin.hpp
>
27
#include <
scorum/chain/database/database.hpp
>
28
29
#ifndef BLOCKCHAIN_HISTORY_PLUGIN_NAME
30
#define BLOCKCHAIN_HISTORY_PLUGIN_NAME "blockchain_history"
31
#endif
32
33
namespace
scorum
{
34
namespace
blockchain_history {
35
using namespace
chain;
36
using
app::application;
37
38
namespace
detail {
39
class
blockchain_history_plugin_impl;
40
}
41
49
class
blockchain_history_plugin
:
public
scorum::app::plugin
50
{
51
public
:
52
blockchain_history_plugin
(
application
* app);
53
virtual
~
blockchain_history_plugin
();
54
55
virtual
std::string plugin_name()
const override
;
56
virtual
void
plugin_set_program_options(boost::program_options::options_description& cli,
57
boost::program_options::options_description& cfg)
override
;
58
virtual
void
plugin_initialize(
const
boost::program_options::variables_map& options)
override
;
59
virtual
void
plugin_startup()
override
;
60
61
flat_map<account_name_type, account_name_type> tracked_accounts()
const
;
62
63
friend
class
detail::blockchain_history_plugin_impl
;
64
std::unique_ptr<detail::blockchain_history_plugin_impl>
_my
;
65
};
66
}
67
}
// scorum::blockchain_history
scorum::app::application
Definition:
application.hpp:99
scorum::app::plugin
Definition:
plugin.hpp:103
scorum::blockchain_history::blockchain_history_plugin
Definition:
blockchain_history_plugin.hpp:50
scorum::blockchain_history::blockchain_history_plugin::_my
std::unique_ptr< detail::blockchain_history_plugin_impl > _my
Definition:
blockchain_history_plugin.hpp:64
scorum::blockchain_history::detail::blockchain_history_plugin_impl
Definition:
blockchain_history_plugin.cpp:31
database.hpp
scorum
Definition:
asset.cpp:15
plugin.hpp
Generated on Thu Jun 9 2022 13:04:25 for Scorum by
1.9.1