OSVR Framework (Internal Development Docs)  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ConfigureServerFromFile.cpp File Reference

Header. More...

#include <osvr/Server/Server.h>
#include <osvr/Server/ConfigureServer.h>
#include <osvr/Server/ConfigureServerFromFile.h>
#include <osvr/Server/ConfigFilePaths.h>
#include <osvr/Util/PlatformConfig.h>
#include <osvr/Util/Logger.h>
#include <osvr/Util/LogNames.h>
#include <exception>
#include <fstream>
#include <iostream>
#include <vector>
#include <sstream>

Go to the source code of this file.

Namespaces

 osvr
 <
 
 osvr::server
 Server functionality.
 

Functions

OSVR_SERVER_EXPORT ServerPtr osvr::server::configureServerFromString (std::string const &json)
 
OSVR_SERVER_EXPORT ServerPtr osvr::server::configureServerFromFile (std::string const &configName)
 This uses a file name to attempt to configure the server with that config file. Pass an empty string to use the default config. This is the basic common code of a server app's setup, ripped out of the main server app to make alternate server-acting apps simpler to develop.
 
OSVR_SERVER_EXPORT ServerPtr osvr::server::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.
 

Detailed Description

Header.

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

Definition in file ConfigureServerFromFile.cpp.