Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Path.hpp

Go to the documentation of this file.
00001 /*==========================================================================
00002  * Copyright (c) 2004 University of Massachusetts.  All Rights Reserved.
00003  *
00004  * Use of the Lemur Toolkit for Language Modeling and Information Retrieval
00005  * is subject to the terms of the software license set forth in the LICENSE
00006  * file included with this software, and also available at
00007  * http://www.lemurproject.org/license.html
00008  *
00009  *==========================================================================
00010 */
00011 
00012 
00013 //
00014 // Path.hpp
00015 //
00016 // 20 May 2004 -- tds
00017 //
00018 
00019 
00020 #ifndef INDRI_PATH_HPP
00021 #define INDRI_PATH_HPP
00022 
00023 #include <string>
00024 
00025 class Path {
00026 public:
00027   static void create( const std::string& path );
00028   static bool isFile( const std::string& path );
00029   static bool isDirectory( const std::string& path );
00030   static bool exists( const std::string& path );
00031   static void remove( const std::string& path );
00032   static void make( const std::string& path );
00033 
00034   static std::string trim( const std::string& path );
00035   static std::string relative( const std::string& basePath, const std::string absolutePath );
00036 
00037   static char pathSeparator();
00038 
00039   static std::string combine( const std::string& root, const std::string& addition );
00040   static std::string extension( const std::string& path );
00041   static std::string directory( const std::string& path );
00042   static std::string filename( const std::string& path );
00043 };
00044 
00045 #endif // INDRI_PATH_HPP
00046 

Generated on Wed Nov 3 12:59:01 2004 for Lemur Toolkit by doxygen1.2.18