inlib  1.2.0
/Users/barrand/private/dev/softinex/old/inexlib-1.2/inlib/inlib/sep
Go to the documentation of this file.
00001 // Copyright (C) 2010, Guy Barrand. All rights reserved.
00002 // See the file inlib.license for terms.
00003 
00004 #ifndef inlib_sep
00005 #define inlib_sep
00006 
00007 #include <string>
00008 
00009 namespace inlib {
00010 
00011 inline std::string sep() {
00012 #ifdef WIN32
00013   return "\\";
00014 #else
00015   return "/";
00016 #endif
00017 }
00018 
00019 inline std::string psep(){
00020 #ifdef WIN32
00021   return ";";
00022 #else
00023   return ":";
00024 #endif
00025 }
00026 
00027 inline std::string cmd_sep() {
00028 #ifdef WIN32
00029   return "&&";
00030 #else
00031   return ";";
00032 #endif
00033 }
00034 
00035 }
00036 
00037 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines