|
Android-cuttlefish cvd tool
|
#include <string>#include <string_view>#include <vector>#include <json/json.h>#include "cuttlefish/common/libs/fs/shared_fd.h"#include "cuttlefish/common/libs/utils/result.h"

Go to the source code of this file.
Namespaces | |
| namespace | cuttlefish |
Functions | |
| Result< Json::Value > | cuttlefish::ParseJson (std::string_view input) |
| Result< Json::Value > | cuttlefish::LoadFromFile (SharedFD json_fd) |
| Result< Json::Value > | cuttlefish::LoadFromFile (const std::string &path_to_file) |
| template<typename T > | |
| Result< T > | cuttlefish::As (const Json::Value &v) |
| template<> | |
| Result< int > | cuttlefish::As (const Json::Value &v) |
| template<> | |
| Result< std::string > | cuttlefish::As (const Json::Value &v) |
| template<> | |
| Result< bool > | cuttlefish::As (const Json::Value &v) |
| template<> | |
| Result< Json::Value > | cuttlefish::As (const Json::Value &v) |
| template<typename T > | |
| Result< T > | cuttlefish::GetValue (const Json::Value &root, const std::vector< std::string > &selectors) |
| template<typename T > | |
| Result< std::vector< T > > | cuttlefish::GetArrayValues (const Json::Value &array, const std::vector< std::string > &selectors) |
| bool | cuttlefish::HasValue (const Json::Value &root, const std::vector< std::string > &selectors) |