BALL
1.5.0
include
BALL
SYSTEM
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
{
39
class
BALL_EXPORT
Path
40
{
41
public
:
45
48
Path
();
50
68
String
getDataPath();
69
74
void
setDataPath(
const
String
& path);
75
79
void
addDataPath(
const
String
& path);
80
85
String
getDefaultDataPath();
86
99
String
find(
const
String
& name);
100
104
String
findStrict(
const
String
& name);
105
107
void
reset();
108
109
110
protected
:
111
112
void
buildPathArray_();
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
BALL::Path::path_array_valid_
static bool path_array_valid_
Definition:
path.h:115
BALL::Path
Definition:
path.h:39
BALL::Path::environment_checked_
static bool environment_checked_
Definition:
path.h:116
BALL::Path::path_
static String path_
Definition:
path.h:114
BALL
Definition:
constants.h:12
BALL::String
Definition:
string.h:56
string.h
BALL::Path::initialized_
static bool initialized_
Definition:
path.h:118
global.h
BALL::Path::path_array_
static std::vector< String > path_array_
Definition:
path.h:117
Generated by
1.8.16