Files
geant4/source/analysis/g4tools/include/tools/sep
T
2016-06-10 14:11:04 +02:00

37 lines
582 B
Plaintext

// Copyright (C) 2010, Guy Barrand. All rights reserved.
// See the file tools.license for terms.
#ifndef tools_sep
#define tools_sep
#include <string>
namespace tools {
inline const std::string& sep() {
#ifdef _WIN32
static const std::string s_v("\\");
#else
static const std::string s_v("/");
#endif
return s_v;
}
inline const std::string& psep() {
#ifdef _WIN32
static const std::string s_v(";");
#else
static const std::string s_v(":");
#endif
return s_v;
}
inline const std::string& res_sep() {
static const std::string s_v(".");
return s_v;
}
}
#endif