Fabcoin Core
0.16.2
P2P Digital Currency
|
#include <contractabi.h>
Public Types | |
enum | ErrorType { Ok = 0, UnsupportedABI, EncodingError, DecodingError } |
Public Member Functions | |
ParameterABI (const std::string &_name="", const std::string &_type="", bool _indexed=false) | |
~ParameterABI () | |
bool | abiIn (const std::vector< std::string > &value, std::string &data, std::map< int, std::string > &mapDynamic) const |
bool | abiOut (const std::string &data, size_t &pos, std::vector< std::string > &value) const |
const ParameterType & | decodeType () const |
ErrorType | lastError () const |
Static Public Member Functions | |
static bool | getRegularExpession (const ParameterType ¶mType, QRegularExpression ®Ex) |
Public Attributes | |
std::string | name |
std::string | type |
bool | indexed |
Private Member Functions | |
bool | abiInBasic (ParameterType::Type abiType, std::string value, std::string &data) const |
bool | abiOutBasic (ParameterType::Type abiType, const std::string &data, size_t &pos, std::string &value) const |
void | addDynamic (const std::string ¶mData, std::string &data, std::map< int, std::string > &mapDynamic) const |
Private Attributes | |
ParameterType | m_decodeType |
ErrorType | m_lastError |
Definition at line 124 of file contractabi.h.
Enumerator | |
---|---|
Ok | |
UnsupportedABI | |
EncodingError | |
DecodingError |
Definition at line 127 of file contractabi.h.
ParameterABI::ParameterABI | ( | const std::string & | _name = "" , |
const std::string & | _type = "" , |
||
bool | _indexed = false |
||
) |
Definition at line 253 of file contractabi.cpp.
ParameterABI::~ParameterABI | ( | ) |
Definition at line 260 of file contractabi.cpp.
bool ParameterABI::abiIn | ( | const std::vector< std::string > & | value, |
std::string & | data, | ||
std::map< int, std::string > & | mapDynamic | ||
) | const |
|
private |
Definition at line 263 of file contractabi.cpp.
bool ParameterABI::abiOut | ( | const std::string & | data, |
size_t & | pos, | ||
std::vector< std::string > & | value | ||
) | const |
|
private |
Definition at line 297 of file contractabi.cpp.
|
private |
const ParameterType & ParameterABI::decodeType | ( | ) | const |
Definition at line 584 of file contractabi.cpp.
|
static |
Definition at line 528 of file contractabi.cpp.
ParameterABI::ErrorType ParameterABI::lastError | ( | ) | const |
Definition at line 579 of file contractabi.cpp.
bool ParameterABI::indexed |
Definition at line 144 of file contractabi.h.
|
mutableprivate |
Definition at line 155 of file contractabi.h.
|
mutableprivate |
Definition at line 156 of file contractabi.h.
std::string ParameterABI::name |
Definition at line 142 of file contractabi.h.
std::string ParameterABI::type |
Definition at line 143 of file contractabi.h.