00001 /* SimData: Data Infrastructure for Simulations 00002 * Copyright (C) 2002 Mark Rose <tm2@stm.lbl.gov> 00003 * 00004 * This file is part of SimData. 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License 00008 * as published by the Free Software Foundation; either version 2 00009 * of the License, or (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00019 */ 00020 00021 00028 #ifndef __SIMDATA_FILEUTILITY_H__ 00029 #define __SIMDATA_FILEUTILITY_H__ 00030 00031 00032 #include <string> 00033 00034 #include <SimData/Export.h> 00035 #include <SimData/Namespace.h> 00036 00037 00038 NAMESPACE_SIMDATA 00039 00045 00048 namespace ospath { 00049 00056 extern SIMDATA_EXPORT const char DIR_SEPARATOR; 00057 00064 extern SIMDATA_EXPORT const char PATH_SEPARATOR; 00065 00071 extern SIMDATA_EXPORT std::string basename(const std::string &path); 00072 00075 extern SIMDATA_EXPORT bool isabs(const std::string &path); 00076 00083 extern SIMDATA_EXPORT std::string skiproot(const std::string &path); 00084 00090 extern SIMDATA_EXPORT std::string dirname(const std::string &path); 00091 00094 extern SIMDATA_EXPORT std::string currentdir(); 00095 00101 extern SIMDATA_EXPORT std::string ext(const std::string &path); 00102 00110 extern SIMDATA_EXPORT std::string join(const std::string &a, const std::string &b); 00111 00121 extern SIMDATA_EXPORT std::string stringreplace(const std::string &path, char search, char replace); 00122 00127 extern SIMDATA_EXPORT std::string normalize(const std::string &path); 00128 00131 extern SIMDATA_EXPORT std::string denormalize(const std::string &path); 00132 00135 extern SIMDATA_EXPORT std::string filter(const std::string &path); 00136 00139 extern SIMDATA_EXPORT std::string const &addpath(std::string &pathlist, const std::string &path); 00140 00141 } // namespace ospath 00142 00144 00145 NAMESPACE_SIMDATA_END 00146 00147 00148 #endif // __SIMDATA_FILEUTILITY_H__ 00149
|
SimData version pre-0.4.0. For more information on SimData, visit the SimData Homepage. Generated on Tue Oct 14 12:06:38 2003, using Doxygen 1.2.18. |