Scorum
advertising_property_object.hpp
Go to the documentation of this file.
1 #pragma once
3 
4 namespace scorum {
5 namespace chain {
6 
8 
9 class advertising_property_object : public object<advertising_property_object_type, advertising_property_object>
10 {
11 public:
13  CHAINBASE_DEFAULT_DYNAMIC_CONSTRUCTOR(advertising_property_object,
14  (auction_post_coefficients)(auction_banner_coefficients))
15 
16  id_type id;
17 
18  account_name_type moderator;
19 
20  fc::shared_vector<percent_type> auction_post_coefficients;
21  fc::shared_vector<percent_type> auction_banner_coefficients;
22 
23  template <budget_type type> const fc::shared_vector<percent_type>& get_auction_coefficients() const;
24 };
25 
26 struct by_account;
27 
28 // clang-format off
29 typedef shared_multi_index_container<advertising_property_object,
30  indexed_by<ordered_unique<tag<by_id>,
31  member<advertising_property_object,
32  advertising_property_object::id_type,
33  &advertising_property_object::id>>,
34  ordered_unique<tag<by_account>,
35  member<advertising_property_object,
37  &advertising_property_object::moderator>>>>
38  advertising_property_index;
39 // clang-format on
40 }
41 }
42 
43 // clang-format off
44 FC_REFLECT(scorum::chain::advertising_property_object,
45  (id)
46  (moderator)
47  (auction_post_coefficients)
48  (auction_banner_coefficients))
49 // clang-format on
50 
51 CHAINBASE_SET_INDEX_TYPE(scorum::chain::advertising_property_object, scorum::chain::advertising_property_index)
FC_REFLECT(appender_args,(appender)(stream)) FC_REFLECT_DERIVED(file_appender_args
fc::fixed_string_16 account_name_type
Definition: types.hpp:62
uint16_t percent_type
Definition: types.hpp:69
Definition: asset.cpp:15