25 #ifndef INCLUDED_JSONResolvePossibleRef_h_GUID_64F277A1_33F0_4986_6EEE_09E17C09AA52 26 #define INCLUDED_JSONResolvePossibleRef_h_GUID_64F277A1_33F0_4986_6EEE_09E17C09AA52 32 #include <json/value.h> 40 enum class FileLoadStatus {
45 enum class ValueHandledAs { Filename, String, JsonRefToFile, Other };
48 FileLoadStatus status;
51 using FileLoadAttempts = std::vector<FileLoadAttempt>;
55 bool resolved =
false;
56 ValueHandledAs handledAs = ValueHandledAs::Other;
57 FileLoadAttempts fileAttempts;
60 const char *fileLoadStatusToString(FileLoadStatus status);
76 Json::Value
const &input,
bool stringAcceptableResult =
false,
80 Json::Value
const &input,
bool stringAcceptableResult =
false,
86 #endif // INCLUDED_JSONResolvePossibleRef_h_GUID_64F277A1_33F0_4986_6EEE_09E17C09AA52 The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
Definition: JSONResolvePossibleRef.h:53
Definition: JSONResolvePossibleRef.h:46
OSVR_SERVER_EXPORT std::vector< std::string > getConfigDirectories()
Get list of directories to search for config files.
Definition: ConfigFilePaths.cpp:42
ResolveRefResult resolvePossibleRefWithDetails(Json::Value const &input, bool stringAcceptableResult, std::vector< std::string > const &searchPath)
Definition: JSONResolvePossibleRef.cpp:101
Platform specific search paths for osvr server config files.
Json::Value resolvePossibleRef(Json::Value const &input, bool stringAcceptableResult, std::vector< std::string > const &searchPath)
Given an input that might be a filename, might be a JSON Pointer-style $ref object, and might just directly be an object, return the object desired.
Definition: JSONResolvePossibleRef.cpp:138