![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include <governance-validators.h>
Public Member Functions | |
CProposalValidator (const std::string &strDataHexIn=std::string()) | |
void | Clear () |
void | SetHexData (const std::string &strDataHexIn) |
bool | Validate () |
bool | ValidateJSON () |
bool | ValidateName () |
bool | ValidateStartEndEpoch () |
bool | ValidatePaymentAmount () |
bool | ValidatePaymentAddress () |
bool | ValidateURL () |
const std::string & | GetErrorMessages () |
Private Member Functions | |
void | ParseJSONData () |
bool | GetDataValue (const std::string &strKey, std::string &strValue) |
bool | GetDataValue (const std::string &strKey, int64_t &nValue) |
bool | GetDataValue (const std::string &strKey, double &dValue) |
Static Private Member Functions | |
static std::string | StripWhitespace (const std::string &strIn) |
static bool | CheckURL (const std::string &strURLIn) |
Private Attributes | |
std::string | strData |
UniValue | objJSON |
bool | fJSONValid |
std::string | strErrorMessages |
Definition at line 12 of file governance-validators.h.
CProposalValidator::CProposalValidator | ( | const std::string & | strDataHexIn = std::string() | ) |
Definition at line 12 of file governance-validators.cpp.
|
staticprivate |
Definition at line 309 of file governance-validators.cpp.
Referenced by ValidateURL().
void CProposalValidator::Clear | ( | ) |
Definition at line 23 of file governance-validators.cpp.
|
private |
Definition at line 227 of file governance-validators.cpp.
Referenced by ValidateName(), ValidatePaymentAddress(), ValidatePaymentAmount(), ValidateStartEndEpoch(), and ValidateURL().
|
private |
Definition at line 243 of file governance-validators.cpp.
|
private |
Definition at line 266 of file governance-validators.cpp.
|
inline |
Definition at line 34 of file governance-validators.h.
Referenced by gobject().
|
private |
Definition at line 203 of file governance-validators.cpp.
Referenced by SetHexData().
void CProposalValidator::SetHexData | ( | const std::string & | strDataHexIn | ) |
Definition at line 31 of file governance-validators.cpp.
Referenced by CProposalValidator().
|
staticprivate |
Definition at line 289 of file governance-validators.cpp.
Referenced by ValidateName(), and ValidateURL().
bool CProposalValidator::Validate | ( | ) |
Definition at line 38 of file governance-validators.cpp.
Referenced by gobject().
bool CProposalValidator::ValidateJSON | ( | ) |
Definition at line 67 of file governance-validators.cpp.
Referenced by Validate().
bool CProposalValidator::ValidateName | ( | ) |
Definition at line 72 of file governance-validators.cpp.
Referenced by Validate().
bool CProposalValidator::ValidatePaymentAddress | ( | ) |
Definition at line 148 of file governance-validators.cpp.
Referenced by Validate().
bool CProposalValidator::ValidatePaymentAmount | ( | ) |
Definition at line 127 of file governance-validators.cpp.
Referenced by Validate().
bool CProposalValidator::ValidateStartEndEpoch | ( | ) |
Definition at line 104 of file governance-validators.cpp.
Referenced by Validate().
bool CProposalValidator::ValidateURL | ( | ) |
Definition at line 180 of file governance-validators.cpp.
Referenced by Validate().
|
private |
Definition at line 57 of file governance-validators.h.
Referenced by Clear(), ParseJSONData(), and ValidateJSON().
|
private |
Definition at line 55 of file governance-validators.h.
Referenced by Clear(), GetDataValue(), and ParseJSONData().
|
private |
Definition at line 53 of file governance-validators.h.
Referenced by Clear(), ParseJSONData(), and SetHexData().
|
private |
Definition at line 59 of file governance-validators.h.
Referenced by Clear(), GetDataValue(), GetErrorMessages(), ParseJSONData(), Validate(), ValidateName(), ValidatePaymentAddress(), ValidatePaymentAmount(), ValidateStartEndEpoch(), and ValidateURL().