From: Oliver O. <fr...@us...> - 2007-03-30 03:28:24
|
Update of /cvsroot/simspark/simspark/spark/salt In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv12998 Modified Files: Tag: projectx fileclasses.h Log Message: - added a static method Sep() to RFile, returning the OS-specific path separator - added a static method BundlePath() to RFile, returning the OS-specific bundle path Index: fileclasses.h =================================================================== RCS file: /cvsroot/simspark/simspark/spark/salt/fileclasses.h,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.1.2.1 diff -C2 -d -r1.1.2.1 -r1.1.2.1.2.1 *** fileclasses.h 9 Feb 2007 16:09:07 -0000 1.1.2.1 --- fileclasses.h 30 Mar 2007 03:28:18 -0000 1.1.2.1.2.1 *************** *** 1,5 **** /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- ! this file is part of rcssserver3D Fri May 9 2003 Copyright (C) 2002,2003 Koblenz University --- 1,5 ---- /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- ! this file is part of simspark Fri May 9 2003 Copyright (C) 2002,2003 Koblenz University *************** *** 32,41 **** #define SALT_FILECLASSES_H - // #ifdef HAVE_CONFIG_H - // #include <config.h> - // #endif - #include <cstdio> #include <cstdlib> #ifndef PATH_MAX --- 32,38 ---- #define SALT_FILECLASSES_H #include <cstdio> #include <cstdlib> + #include <string> #ifndef PATH_MAX *************** *** 46,59 **** { - /** Defines the native path separator character for the - platform - */ - static const char* PathSeparator = - #ifdef WIN32 - "\\"; - #else - "/"; - #endif - /** RFile defines an interface and some basic support functions for * classes providing read only file services --- 43,46 ---- *************** *** 64,67 **** --- 51,63 ---- virtual ~RFile() {}; + /** The separator for path names (depends on the platform) + * @return path separator + */ + static std::string Sep(); + /** A (platform specific) "bundle path", i.e. a hint where files of the package might be found. + * @return the bundle path name with a trailing path separator + */ + static std::string BundlePath(); + // a bunch of pure virtual functions which a file must implement |