OSVR-Core
Classes | Namespaces | Typedefs | Enumerations | Functions
JSONResolvePossibleRef.h File Reference

Header. More...

#include <osvr/Server/ConfigFilePaths.h>
#include <json/value.h>
#include <vector>
#include <string>

Go to the source code of this file.

Classes

struct  osvr::server::FileLoadAttempt
 
struct  osvr::server::ResolveRefResult
 

Namespaces

 osvr
 The main namespace for all C++ elements of the framework, internal and external.
 
 osvr::server
 Server functionality.
 

Typedefs

using osvr::server::FileLoadAttempts = std::vector< FileLoadAttempt >
 

Enumerations

enum  FileLoadStatus { CouldNotOpenFile, CouldNotParseFile, FileOpenedAndParsed }
 
enum  ValueHandledAs { Filename, String, JsonRefToFile, Other }
 

Functions

const char * osvr::server::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. More...
 
ResolveRefResult osvr::server::resolvePossibleRefWithDetails (Json::Value const &input, bool stringAcceptableResult, std::vector< std::string > const &searchPath)
 

Detailed Description

Header.

Date
2015
Author
Sensics, Inc. http://sensics.com/osvr