g4tools  5.4.0
sep
Go to the documentation of this file.
1 // Copyright (C) 2010, Guy Barrand. All rights reserved.
2 // See the file tools.license for terms.
3 
4 #ifndef tools_sep
5 #define tools_sep
6 
7 #include <string>
8 
9 namespace tools {
10 
11 inline const std::string& sep() {
12 #ifdef _WIN32
13  static const std::string s_v("\\");
14 #else
15  static const std::string s_v("/");
16 #endif
17  return s_v;
18 }
19 
20 inline const std::string& psep() {
21 #ifdef _WIN32
22  static const std::string s_v(";");
23 #else
24  static const std::string s_v(":");
25 #endif
26  return s_v;
27 }
28 
29 inline const std::string& res_sep() {
30  static const std::string s_v(".");
31  return s_v;
32 }
33 
34 }
35 
36 #endif
tools::psep
const std::string & psep()
Definition: sep:20
tools
inlined C code : ///////////////////////////////////
Definition: aida_ntuple:26
tools::sep
const std::string & sep()
Definition: sep:11
tools::res_sep
const std::string & res_sep()
Definition: sep:29