Main Page   Namespace List   Class Hierarchy   Data Structures   File List   Namespace Members   Data Fields   Globals  

path.hpp

Go to the documentation of this file.
00001 /*
00002  * ====================================================================
00003  * Copyright (c) 2002, 2003 The RapidSvn Group.  All rights reserved.
00004  *
00005  * This software is licensed as described in the file LICENSE.txt,
00006  * which you should have received as part of this distribution.
00007  *
00008  * This software consists of voluntary contributions made by many
00009  * individuals.  For exact contribution history, see the revision
00010  * history and logs, available at http://rapidsvn.tigris.org/.
00011  * ====================================================================
00012  */
00013 
00014 #ifndef _SVNCPP_PATH_HPP_
00015 #define _SVNCPP_PATH_HPP_
00016 
00017 #include <string>
00018 
00019 namespace svn
00020 {
00024   class Path
00025   {
00026   private:
00027     std::string m_path;
00028 
00034     void init (const char * path);
00035 
00036   public:
00044     Path (const std::string & path = "");
00045     
00052     Path (const char * path);
00053 
00059     Path (const Path & path);
00060 
00064     Path& operator=(const Path&);
00065 
00069     const std::string &
00070     path () const;
00071 
00075     const char * 
00076     c_str() const;
00077 
00085     bool 
00086     isset() const;
00087 
00093     void
00094     addCompontent (const char * component);
00095 
00102     void
00103     split (std::string & dirpath, std::string & basename);
00104   };
00105 }
00106 
00107 #endif
00108 /* -----------------------------------------------------------------
00109  * local variables:
00110  * eval: (load-file "../../rapidsvn-dev.el")
00111  * end:
00112  */

Generated on Thu Aug 28 13:22:36 2003 for SvnCpp by doxygen1.2.15