Wire Sysio
Wire Sysion 1.0.0
Loading...
Searching...
No Matches
chain_id_type.cpp
Go to the documentation of this file.
1
#include <
sysio/chain/chain_id_type.hpp
>
2
#include <
sysio/chain/exceptions.hpp
>
3
4
namespace
sysio
{
namespace
chain {
5
6
void
chain_id_type::reflector_init
()
const
{
7
SYS_ASSERT
( *
reinterpret_cast<
const
fc::sha256
*
>
(
this
) !=
fc::sha256
(), chain_id_type_exception,
"chain_id_type cannot be zero"
);
8
}
9
10
} }
// namespace sysio::chain
11
12
namespace
fc
{
13
14
void
to_variant
(
const
sysio::chain::chain_id_type
& cid,
fc::variant
& v) {
15
to_variant
(
static_cast<
const
fc::sha256
&
>
(cid), v);
16
}
17
18
void
from_variant
(
const
fc::variant
& v,
sysio::chain::chain_id_type
& cid) {
19
from_variant
( v,
static_cast<
fc::sha256
&
>
(cid) );
20
}
21
22
}
// fc
exceptions.hpp
SYS_ASSERT
#define SYS_ASSERT(expr, exc_type, FORMAT,...)
Definition
exceptions.hpp:7
chain_id_type.hpp
fc::sha256
Definition
sha256.hpp:12
fc::variant
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
Definition
variant.hpp:191
fc
namespace sysio::chain
Definition
authority.cpp:3
fc::from_variant
void from_variant(const fc::variant &v, sysio::chain::chain_id_type &cid)
Definition
chain_id_type.cpp:18
fc::to_variant
void to_variant(const sysio::chain::shared_public_key &var, fc::variant &vo)
Definition
authority.cpp:4
sysio
Definition
abi_serializer.cpp:8
sysio::chain::chain_id_type
Definition
chain_id_type.hpp:23
sysio::chain::chain_id_type::reflector_init
void reflector_init() const
Definition
chain_id_type.cpp:6
libraries
chain
chain_id_type.cpp
Generated by
1.12.0