• Home
  • Raw
  • Download

Lines Matching refs:Result

351 Result PtJson::GetBool(const char *key, bool *value) const  in GetBool()
355 return Result::NOT_EXIST; in GetBool()
358 return Result::TYPE_ERROR; in GetBool()
362 return Result::SUCCESS; in GetBool()
365 Result PtJson::GetInt(const char *key, int32_t *value) const in GetInt()
368 Result ret = GetDouble(key, &result); in GetInt()
369 if (ret == Result::SUCCESS) { in GetInt()
375 Result PtJson::GetInt64(const char *key, int64_t *value) const in GetInt64()
378 Result ret = GetDouble(key, &result); in GetInt64()
379 if (ret == Result::SUCCESS) { in GetInt64()
385 Result PtJson::GetUInt(const char *key, uint32_t *value) const in GetUInt()
388 Result ret = GetDouble(key, &result); in GetUInt()
389 if (ret == Result::SUCCESS) { in GetUInt()
395 Result PtJson::GetDouble(const char *key, double *value) const in GetDouble()
399 return Result::NOT_EXIST; in GetDouble()
402 return Result::TYPE_ERROR; in GetDouble()
406 return Result::SUCCESS; in GetDouble()
409 Result PtJson::GetString(const char *key, std::string *value) const in GetString()
413 return Result::NOT_EXIST; in GetString()
416 return Result::TYPE_ERROR; in GetString()
420 return Result::SUCCESS; in GetString()
423 Result PtJson::GetObject(const char *key, std::unique_ptr<PtJson> *value) const in GetObject()
427 return Result::NOT_EXIST; in GetObject()
430 return Result::TYPE_ERROR; in GetObject()
434 return Result::SUCCESS; in GetObject()
437 Result PtJson::GetArray(const char *key, std::unique_ptr<PtJson> *value) const in GetArray()
441 return Result::NOT_EXIST; in GetArray()
444 return Result::TYPE_ERROR; in GetArray()
448 return Result::SUCCESS; in GetArray()
451 Result PtJson::GetAny(const char *key, std::unique_ptr<PtJson> *value) const in GetAny()
455 return Result::NOT_EXIST; in GetAny()
459 return Result::SUCCESS; in GetAny()