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 
27 using std::vector;
28 
29 namespace BALL
30 {
40  {
41  public:
45 
48  Path();
50 
69 
74  void setDataPath(const String& path);
75 
79  void addDataPath(const String& path);
80 
86 
99  String find(const String& name);
100 
104  String findStrict(const String& name);
105 
107  void reset();
108 
109 
110  protected:
111 
113 
114  static String path_;
115  static bool path_array_valid_;
116  static bool environment_checked_;
117  static std::vector<String> path_array_;
118  static bool initialized_;
119  };
120 
121 } // namespace BALL
122 
123 
124 #endif // BALL_COMMON_PATH_H
BALL_EXPORT
#define BALL_EXPORT
Definition: COMMON/global.h:50
global.h
BALL::Path::getDefaultDataPath
String getDefaultDataPath()
BALL::Path::path_array_
static std::vector< String > path_array_
Definition: path.h:117
BALL::String
Definition: string.h:57
BALL::Path::setDataPath
void setDataPath(const String &path)
BALL
Definition: constants.h:13
BALL::Path::reset
void reset()
Reset the path variable to its default state (as it was a the start of the application).
BALL::Path::addDataPath
void addDataPath(const String &path)
BALL::Path::initialized_
static bool initialized_
Definition: path.h:118
BALL::Path::find
String find(const String &name)
BALL::Path::findStrict
String findStrict(const String &name)
BALL::Path::path_array_valid_
static bool path_array_valid_
Definition: path.h:115
BALL::Path::path_
static String path_
Definition: path.h:114
string.h
BALL::Path::environment_checked_
static bool environment_checked_
Definition: path.h:116
BALL::Path::buildPathArray_
void buildPathArray_()
BALL::Path::getDataPath
String getDataPath()
BALL::Path::Path
Path()
BALL::Path
Definition: path.h:40