|
From: <mk...@us...> - 2003-02-16 09:49:02
|
Update of /cvsroot/csp/APPLICATIONS/CSPSim/Include
In directory sc8-pr-cvs1:/tmp/cvs-serv32359/Include
Modified Files:
Platform.h
Log Message:
moved hard-coded data paths to ini file
Index: Platform.h
===================================================================
RCS file: /cvsroot/csp/APPLICATIONS/CSPSim/Include/Platform.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Platform.h 26 Jan 2003 23:34:13 -0000 1.2
--- Platform.h 16 Feb 2003 09:48:59 -0000 1.3
***************
*** 27,39 ****
#define __PLATFORM_H__
#ifdef _WIN32
! #define NATIVE_WIN32
! #define DIR_SEPARATOR '\\'
! #else
! #define DIR_SEPARATOR '/'
#endif
- #include <string>
-
/**
* Platform independent file path manipulation routines.
--- 27,36 ----
#define __PLATFORM_H__
+ #include <string>
+
#ifdef _WIN32
! #define NATIVE_WIN32
#endif
/**
* Platform independent file path manipulation routines.
***************
*** 42,45 ****
--- 39,45 ----
*/
namespace ospath {
+
+ extern const char DIR_SEPARATOR;
+ extern const char PATH_SEPARATOR;
/**
***************
*** 120,123 ****
--- 120,127 ----
std::string filter(const std::string &path);
+ /**
+ * Add a path to a list of paths using the platform path separator.
+ */
+ std::string const &ospath::addpath(std::string &pathlist, const std::string &path);
};
|