Elements
5.12
A C++ base framework for the Euclid Software.
ElementsKernel
ElementsKernel
Configuration.h
Go to the documentation of this file.
1
34
#ifndef ELEMENTSKERNEL_ELEMENTSKERNEL_CONFIGURATION_H_
35
#define ELEMENTSKERNEL_ELEMENTSKERNEL_CONFIGURATION_H_
36
37
#include <string>
// for string
38
#include <vector>
// for vector
39
40
#include "
ElementsKernel/Path.h
"
// for Path::Item
41
#include "
ElementsKernel/Export.h
"
// ELEMENTS_API
42
43
namespace
Elements
{
44
45
ELEMENTS_API
std::string
getConfigurationVariableName
();
46
47
template
<
typename
T>
48
ELEMENTS_API
Path::Item
getConfigurationPath
(
const
T& file_name,
bool
raise_exception =
true
);
49
50
// Instantiation of the most expected types
51
extern
template
52
ELEMENTS_API
Path::Item
getConfigurationPath
(
const
Path::Item
& file_name,
bool
raise_exception);
53
54
extern
template
55
ELEMENTS_API
Path::Item
getConfigurationPath
(
const
std::string
& file_name,
bool
raise_exception);
56
57
ELEMENTS_API
std::vector<Path::Item>
getConfigurationLocations
(
bool
exist_only =
false
);
58
59
}
// namespace Elements
60
61
#define ELEMENTSKERNEL_ELEMENTSKERNEL_CONFIGURATION_IMPL_
62
#include "
ElementsKernel/_impl/Configuration.icpp
"
63
#undef ELEMENTSKERNEL_ELEMENTSKERNEL_CONFIGURATION_IMPL_
64
65
#endif // ELEMENTSKERNEL_ELEMENTSKERNEL_CONFIGURATION_H_
66
Export.h
defines the macros to be used for explicit export of the symbols
std::string
STL class.
Path.h
provide functions to retrieve resources pointed by environment variables
Elements::getConfigurationPath
ELEMENTS_API Path::Item getConfigurationPath(const T &file_name, bool raise_exception=true)
Elements::Path::Item
boost::filesystem::path Item
Definition:
Path.h:61
std::vector
STL class.
ELEMENTS_API
#define ELEMENTS_API
Dummy definitions for the backward compatibility mode.
Definition:
Export.h:74
Elements::getConfigurationLocations
ELEMENTS_API std::vector< Path::Item > getConfigurationLocations(bool exist_only=false)
Definition:
Configuration.cpp:48
Elements::getConfigurationVariableName
ELEMENTS_API std::string getConfigurationVariableName()
Definition:
Configuration.cpp:40
Configuration.icpp
Elements
Definition:
Auxiliary.h:43
Generated by
1.8.20