OSVR-Core
ConfigFilePaths.h
Go to the documentation of this file.
1 
11 // Copyright 2017 Sensics, Inc.
12 // Copyright 2018 Collabora
13 //
14 // Licensed under the Apache License, Version 2.0 (the "License");
15 // you may not use this file except in compliance with the License.
16 // You may obtain a copy of the License at
17 //
18 // http://www.apache.org/licenses/LICENSE-2.0
19 //
20 // Unless required by applicable law or agreed to in writing, software
21 // distributed under the License is distributed on an "AS IS" BASIS,
22 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23 // See the License for the specific language governing permissions and
24 // limitations under the License.
25 
26 #ifndef INCLUDED_ConfigFilePaths_h_GUID_241E9C9C_0E0E_46B0_9DED_8F8059306192
27 #define INCLUDED_ConfigFilePaths_h_GUID_241E9C9C_0E0E_46B0_9DED_8F8059306192
28 
29 // Internal Includes
30 #include <osvr/Server/Export.h>
31 
32 // Library/third-party includes
33 // - none
34 
35 // Standard includes
36 #include <vector>
37 #include <string>
38 
39 namespace osvr {
40 namespace server {
41 
43  OSVR_SERVER_EXPORT std::vector<std::string> getConfigDirectories();
44 
46  OSVR_SERVER_EXPORT std::vector<std::string> getDefaultConfigFilePaths();
47 
50  OSVR_SERVER_EXPORT std::vector<std::string>
51  getCandidateConfigFilePaths(std::string const &inputFilename);
52 
53 } // namespace server
54 } // namespace osvr
55 #endif // INCLUDED_ConfigFilePaths_h_GUID_241E9C9C_0E0E_46B0_9DED_8F8059306192
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 po...
Definition: ConfigFilePaths.cpp:98
The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
OSVR_SERVER_EXPORT std::vector< std::string > getConfigDirectories()
Get list of directories to search for config files.
Definition: ConfigFilePaths.cpp:42
OSVR_SERVER_EXPORT std::vector< std::string > getDefaultConfigFilePaths()
this returns a vector of default server configuration file paths.
Definition: ConfigFilePaths.cpp:112