-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bc52c8c
commit 811259f
Showing
14 changed files
with
522 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
|
||
// AUTO GENERATED by vnxcppcodegen | ||
|
||
#ifndef INCLUDE_mmx_account_info_t_HXX_ | ||
#define INCLUDE_mmx_account_info_t_HXX_ | ||
|
||
#include <mmx/package.hxx> | ||
#include <mmx/account_t.hxx> | ||
#include <mmx/addr_t.hpp> | ||
|
||
|
||
namespace mmx { | ||
|
||
struct MMX_EXPORT account_info_t : ::mmx::account_t { | ||
|
||
|
||
vnx::optional<::mmx::addr_t> address; | ||
uint32_t account = 0; | ||
|
||
typedef ::mmx::account_t Super; | ||
|
||
static const vnx::Hash64 VNX_TYPE_HASH; | ||
static const vnx::Hash64 VNX_CODE_HASH; | ||
|
||
static constexpr uint64_t VNX_TYPE_ID = 0x5858a2f32468feaeull; | ||
|
||
account_info_t() {} | ||
|
||
vnx::Hash64 get_type_hash() const; | ||
std::string get_type_name() const; | ||
const vnx::TypeCode* get_type_code() const; | ||
|
||
static ::mmx::account_info_t make(const uint32_t& account = 0, const vnx::optional<::mmx::addr_t>& address = nullptr, const ::mmx::account_t& config = ::mmx::account_t()); | ||
|
||
static std::shared_ptr<account_info_t> create(); | ||
std::shared_ptr<account_info_t> clone() const; | ||
|
||
void read(vnx::TypeInput& _in, const vnx::TypeCode* _type_code, const uint16_t* _code); | ||
void write(vnx::TypeOutput& _out, const vnx::TypeCode* _type_code, const uint16_t* _code) const; | ||
|
||
void read(std::istream& _in); | ||
void write(std::ostream& _out) const; | ||
|
||
template<typename T> | ||
void accept_generic(T& _visitor) const; | ||
void accept(vnx::Visitor& _visitor) const; | ||
|
||
vnx::Object to_object() const; | ||
void from_object(const vnx::Object& object); | ||
|
||
vnx::Variant get_field(const std::string& name) const; | ||
void set_field(const std::string& name, const vnx::Variant& value); | ||
|
||
friend std::ostream& operator<<(std::ostream& _out, const account_info_t& _value); | ||
friend std::istream& operator>>(std::istream& _in, account_info_t& _value); | ||
|
||
static const vnx::TypeCode* static_get_type_code(); | ||
static std::shared_ptr<vnx::TypeCode> static_create_type_code(); | ||
|
||
}; | ||
|
||
template<typename T> | ||
void account_info_t::accept_generic(T& _visitor) const { | ||
_visitor.template type_begin<account_info_t>(8); | ||
_visitor.type_field("index", 0); _visitor.accept(index); | ||
_visitor.type_field("num_addresses", 1); _visitor.accept(num_addresses); | ||
_visitor.type_field("name", 2); _visitor.accept(name); | ||
_visitor.type_field("key_file", 3); _visitor.accept(key_file); | ||
_visitor.type_field("finger_print", 4); _visitor.accept(finger_print); | ||
_visitor.type_field("with_passphrase", 5); _visitor.accept(with_passphrase); | ||
_visitor.type_field("address", 6); _visitor.accept(address); | ||
_visitor.type_field("account", 7); _visitor.accept(account); | ||
_visitor.template type_end<account_info_t>(8); | ||
} | ||
|
||
|
||
} // namespace mmx | ||
|
||
|
||
namespace vnx { | ||
|
||
template<> | ||
struct is_equivalent<::mmx::account_info_t> { | ||
bool operator()(const uint16_t* code, const TypeCode* type_code); | ||
}; | ||
|
||
} // vnx | ||
|
||
#endif // INCLUDE_mmx_account_info_t_HXX_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.