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