Lines Matching refs:Result
360 Result PtJson::GetBool(const char *key, bool *value) const
364 return Result::NOT_EXIST;
367 return Result::TYPE_ERROR;
371 return Result::SUCCESS;
374 Result PtJson::GetInt(const char *key, int32_t *value) const
377 Result ret = GetDouble(key, &result);
378 if (ret == Result::SUCCESS) {
384 Result PtJson::GetInt64(const char *key, int64_t *value) const
387 Result ret = GetDouble(key, &result);
388 if (ret == Result::SUCCESS) {
394 Result PtJson::GetUInt(const char *key, uint32_t *value) const
397 Result ret = GetDouble(key, &result);
398 if (ret == Result::SUCCESS) {
404 Result PtJson::GetUInt64(const char *key, uint64_t *value) const
407 Result ret = GetDouble(key, &result);
408 if (ret == Result::SUCCESS) {
414 Result PtJson::GetDouble(const char *key, double *value) const
418 return Result::NOT_EXIST;
421 return Result::TYPE_ERROR;
425 return Result::SUCCESS;
428 Result PtJson::GetString(const char *key, std::string *value) const
432 return Result::NOT_EXIST;
435 return Result::TYPE_ERROR;
439 return Result::SUCCESS;
442 Result PtJson::GetObject(const char *key, std::unique_ptr<PtJson> *value) const
446 return Result::NOT_EXIST;
449 return Result::TYPE_ERROR;
453 return Result::SUCCESS;
456 Result PtJson::GetArray(const char *key, std::unique_ptr<PtJson> *value) const
460 return Result::NOT_EXIST;
463 return Result::TYPE_ERROR;
467 return Result::SUCCESS;
470 Result PtJson::GetAny(const char *key, std::unique_ptr<PtJson> *value) const
474 return Result::NOT_EXIST;
478 return Result::SUCCESS;