|
OSVR_SERVER_EXPORT std::vector< std::string > | getConfigDirectories () |
| Get list of directories to search for config files.
|
|
OSVR_SERVER_EXPORT std::vector< std::string > | getDefaultConfigFilePaths () |
| this returns a vector of default server configuration file paths.
|
|
OSVR_SERVER_EXPORT std::vector< std::string > | getCandidateConfigFilePaths (std::string const &inputFilename) |
| given a input filename/path, returns potential full paths from combining relative input paths with potential config file locations. More...
|
|
const char * | getDefaultConfigFilename () |
|
OSVR_SERVER_EXPORT ServerPtr | configureServerFromFile (std::string const &configName) |
| This uses a file name to attempt to configure the server with that config file. More...
|
|
OSVR_SERVER_EXPORT ServerPtr | configureServerFromString (std::string const &json) |
|
OSVR_SERVER_EXPORT ServerPtr | configureServerFromFirstFileInList (std::vector< std::string > const &configNames) |
| This iterates over a vector that contains a list of potential config files, and uses the first working one to create the server instance. More...
|
|
void | printJsonReferenceResolutionAttempts (ResolveRefResult const &refReturn) |
|
void | reportErrorInJsonReferenceParsing (const char *description, Json::Value const &input, ResolveRefResult const &refReturn) |
|
void | debugDumpSearchPath (::osvr::util::log::LoggerPtr log) |
|
ServerPtr | internalConfigureServerFromFile (std::string const &configName, ::osvr::util::log::LoggerPtr log) |
|
ResolveRefResult | resolvePossibleRefWithDetails (Json::Value const &input, bool stringAcceptableResult, std::vector< std::string > const &searchPath) |
|
Json::Value | resolvePossibleRef (Json::Value const &input, bool stringAcceptableResult=false, std::vector< std::string > const &searchPath=getConfigDirectories()) |
| 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. More...
|
|
const char * | fileLoadStatusToString (FileLoadStatus status) |
|
Json::Value osvr::server::resolvePossibleRef |
( |
Json::Value const & |
input, |
|
|
bool |
stringAcceptableResult = false , |
|
|
std::vector< std::string > const & |
searchPath = getConfigDirectories() |
|
) |
| |
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.
If just a string (suggesting it was intended to be a reference), returns null.
- Parameters
-
stringAcceptableResult | Determines whether a string that we can't resolve to a loadable JSON reference should be returned as itself (valid, true), or should be signaled as an error by returning null (false, default) |
searchPath | Optional list of directories to look for any mentioned files. |
This function is the same as "withDetails", just less rich.