Fabcoin Core  0.16.2
P2P Digital Currency
Namespaces | Macros | Functions
contractabi.cpp File Reference
#include <contractabi.h>
#include <univalue.h>
#include <libethcore/ABI.h>
#include <math.h>
Include dependency graph for contractabi.cpp:

Go to the source code of this file.

Namespaces

 ContractABI_NS
 

Macros

#define ReadJsonString(json, param, result)
 
#define ReadJsonBool(json, param, result)
 
#define ReadJsonArray(json, param, result)
 

Functions

bool ContractABI_NS::startsWithString (const std::string &str, const std::string &s, size_t &pos)
 
std::string ContractABI_NS::startsWithNumber (const std::string &str, size_t &pos)
 

Macro Definition Documentation

#define ReadJsonArray (   json,
  param,
  result 
)
Value:
if(json.exists(#param) && json[#param].isArray())\
result = json[#param].get_array();

Definition at line 13 of file contractabi.cpp.

#define ReadJsonBool (   json,
  param,
  result 
)
Value:
if(json.exists(#param) && json[#param].isBool())\
result.param = json[#param].get_bool();

Definition at line 11 of file contractabi.cpp.

#define ReadJsonString (   json,
  param,
  result 
)
Value:
if(json.exists(#param) && json[#param].isStr())\
result.param = json[#param].get_str();

Definition at line 9 of file contractabi.cpp.