Loading...
Searching...
No Matches
path.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: path.h,v 1.13.20.1 2007/06/21 19:38:10 oliver Exp $
//
// Author:
// Oliver Kohlbacher
//
#ifndef BALL_COMMON_PATH_H
#define BALL_COMMON_PATH_H
#ifndef BALL_CONFIG_CONFIG_H
# include <BALL/CONFIG/config.h>
#endif
#ifndef BALL_COMMON_GLOBAL_H
# include <BALL/COMMON/global.h>
#endif
#ifndef BALL_DATATYPE_STRING_H
# include <BALL/DATATYPE/string.h>
#endif
#include <vector>
using std::vector;
namespace BALL
{
class BALL_EXPORT Path
{
public:
Path();
String getDataPath();
void setDataPath(const String& path);
void addDataPath(const String& path);
String getDefaultDataPath();
String find(const String& name);
String findStrict(const String& name);
void reset();
protected:
void buildPathArray_();
static String path_;
static bool path_array_valid_;
static bool environment_checked_;
static std::vector<String> path_array_;
static bool initialized_;
};
} // namespace BALL
#endif // BALL_COMMON_PATH_H
global.h
BALL_EXPORT
#define BALL_EXPORT
Definition COMMON/global.h:50
BALL::Path::setDataPath
void setDataPath(const String &path)
BALL::Path::findStrict
String findStrict(const String &name)
BALL::Path::addDataPath
void addDataPath(const String &path)
BALL::Path::getDefaultDataPath
String getDefaultDataPath()
BALL::Path::Path
Path()
BALL::Path::find
String find(const String &name)
BALL::Path::getDataPath
String getDataPath()
BALL::Path::environment_checked_
static bool environment_checked_
Definition path.h:116
BALL::Path::path_array_
static std::vector< String > path_array_
Definition path.h:117
BALL::Path::buildPathArray_
void buildPathArray_()
BALL::Path::initialized_
static bool initialized_
Definition path.h:118
BALL::Path::path_array_valid_
static bool path_array_valid_
Definition path.h:115
BALL::Path::reset
void reset()
Reset the path variable to its default state (as it was a the start of the application).
BALL::Path::path_
static String path_
Definition path.h:114
BALL::String
Definition string.h:57
BALL
Definition constants.h:13
string.h