bool RSAFunction::GetVoidValue(const char *name, const std::type_info &valueType, void *pValue) const { return GetValueHelper(this, name, valueType, pValue).Assignable() CRYPTOPP_GET_FUNCTION_ENTRY(Modulus) CRYPTOPP_GET_FUNCTION_ENTRY(PublicExponent) ; }
bool RabinFunction::GetVoidValue(const char *name, const std::type_info &valueType, void *pValue) const { return GetValueHelper(this, name, valueType, pValue).Assignable() CRYPTOPP_GET_FUNCTION_ENTRY(Modulus) CRYPTOPP_GET_FUNCTION_ENTRY(QuadraticResidueModPrime1) CRYPTOPP_GET_FUNCTION_ENTRY(QuadraticResidueModPrime2) ; }
bool XTR_DH::GetVoidValue(const char *name, const std::type_info &valueType, void *pValue) const { return GetValueHelper(this, name, valueType, pValue).Assignable() CRYPTOPP_GET_FUNCTION_ENTRY(Modulus) CRYPTOPP_GET_FUNCTION_ENTRY(SubgroupOrder) CRYPTOPP_GET_FUNCTION_ENTRY(SubgroupGenerator) ; }
bool GetBoolDefault(const char* name, bool def) { ACE_TString val; if (!GetValueHelper(name, val)) return def; return (val == "true" || val == "TRUE" || val == "yes" || val == "YES" || val == "1"); };
bool Config::GetBoolDefault(const char * name, const bool def) { ACE_TString val; if (!GetValueHelper(mConf, name, val)) return def; const char* str = val.c_str(); if (strcmp(str, "true") == 0 || strcmp(str, "TRUE") == 0 || strcmp(str, "yes") == 0 || strcmp(str, "YES") == 0 || strcmp(str, "1") == 0) return true; else return false; }
std::string FileConfig::GetStringDefault(const char* name, const char* def) { ACE_TString val; return GetValueHelper(mConf, name, val) ? val.c_str() : def; }
float FileConfig::GetFloatDefault(const char* name, float def) { ACE_TString val; return GetValueHelper(mConf, name, val) ? (float)atof(val.c_str()) : def; }
int32 FileConfig::GetIntDefault(const char* name, int32 def) { ACE_TString val; return GetValueHelper(mConf, name, val) ? atoi(val.c_str()) : def; }
int GetIntDefault(const char* name, int def) { ACE_TString val; return GetValueHelper(name, val) ? atoi(val.c_str()) : def; };
std::string GetStringDefault(const char* name, const std::string &def) { ACE_TString val; return GetValueHelper(name, val) ? val.c_str() : def; };