BALL 1.5.0
path.h
Go to the documentation of this file.
1// -*- Mode: C++; tab-width: 2; -*-
2// vi: set ts=2:
3//
4// $Id: path.h,v 1.13.20.1 2007/06/21 19:38:10 oliver Exp $
5//
6// Author:
7// Oliver Kohlbacher
8//
9
10#ifndef BALL_COMMON_PATH_H
11#define BALL_COMMON_PATH_H
12
13#ifndef BALL_CONFIG_CONFIG_H
14# include <BALL/CONFIG/config.h>
15#endif
16
17#ifndef BALL_COMMON_GLOBAL_H
18# include <BALL/COMMON/global.h>
19#endif
20
21#ifndef BALL_DATATYPE_STRING_H
22# include <BALL/DATATYPE/string.h>
23#endif
24
25#include <vector>
26
27using std::vector;
28
29namespace BALL
30{
40 {
41 public:
45
50
69
74 void setDataPath(const String& path);
75
79 void addDataPath(const String& path);
80
86
99 String find(const String& name);
100
105
107 void reset();
108
109
110 protected:
111
113
114 static String path_;
115 static bool path_array_valid_;
117 static std::vector<String> path_array_;
118 static bool initialized_;
119 };
120
121} // namespace BALL
122
123
124#endif // BALL_COMMON_PATH_H
Definition: constants.h:13
void setDataPath(const String &path)
String findStrict(const String &name)
void addDataPath(const String &path)
String getDefaultDataPath()
String find(const String &name)
String getDataPath()
static bool environment_checked_
Definition: path.h:116
static std::vector< String > path_array_
Definition: path.h:117
void buildPathArray_()
static bool initialized_
Definition: path.h:118
static bool path_array_valid_
Definition: path.h:115
void reset()
Reset the path variable to its default state (as it was a the start of the application).
static String path_
Definition: path.h:114
#define BALL_EXPORT
Definition: COMMON/global.h:50