Fabcoin Core  0.16.2
P2P Digital Currency
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
ParameterABI Class Reference

#include <contractabi.h>

Collaboration diagram for ParameterABI:
[legend]

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 ParameterTypedecodeType () const
 
ErrorType lastError () const
 

Static Public Member Functions

static bool getRegularExpession (const ParameterType &paramType, QRegularExpression &regEx)
 

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 &paramData, std::string &data, std::map< int, std::string > &mapDynamic) const
 

Private Attributes

ParameterType m_decodeType
 
ErrorType m_lastError
 

Detailed Description

Definition at line 124 of file contractabi.h.

Member Enumeration Documentation

Enumerator
Ok 
UnsupportedABI 
EncodingError 
DecodingError 

Definition at line 127 of file contractabi.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

bool ParameterABI::abiIn ( const std::vector< std::string > &  value,
std::string &  data,
std::map< int, std::string > &  mapDynamic 
) const

Definition at line 359 of file contractabi.cpp.

Here is the call graph for this function:

bool ParameterABI::abiInBasic ( ParameterType::Type  abiType,
std::string  value,
std::string &  data 
) const
private

Definition at line 263 of file contractabi.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool ParameterABI::abiOut ( const std::string &  data,
size_t &  pos,
std::vector< std::string > &  value 
) const

Definition at line 426 of file contractabi.cpp.

Here is the call graph for this function:

bool ParameterABI::abiOutBasic ( ParameterType::Type  abiType,
const std::string &  data,
size_t &  pos,
std::string &  value 
) const
private

Definition at line 297 of file contractabi.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ParameterABI::addDynamic ( const std::string &  paramData,
std::string &  data,
std::map< int, std::string > &  mapDynamic 
) const
private

Definition at line 352 of file contractabi.cpp.

Here is the caller graph for this function:

const ParameterType & ParameterABI::decodeType ( ) const

Definition at line 584 of file contractabi.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool ParameterABI::getRegularExpession ( const ParameterType paramType,
QRegularExpression &  regEx 
)
static

Definition at line 528 of file contractabi.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

ParameterABI::ErrorType ParameterABI::lastError ( ) const

Definition at line 579 of file contractabi.cpp.

Member Data Documentation

bool ParameterABI::indexed

Definition at line 144 of file contractabi.h.

ParameterType ParameterABI::m_decodeType
mutableprivate

Definition at line 155 of file contractabi.h.

ErrorType ParameterABI::m_lastError
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.


The documentation for this class was generated from the following files: