status_selection.hpp

Go to the documentation of this file.
00001 /*
00002  * ====================================================================
00003  * Copyright (c) 2002-2008 The RapidSvn Group.  All rights reserved.
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Lesser General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2.1 of the License, or (at your option) any later version.
00009  * 
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Lesser General Public License for more details.
00014  * 
00015  * You should have received a copy of the GNU Lesser General Public
00016  * License along with this library (in the file LGPL.txt); if not, 
00017  * write to the Free Software Foundation, Inc., 51 Franklin St, 
00018  * Fifth Floor, Boston, MA  02110-1301  USA
00019  *
00020  * This software consists of voluntary contributions made by many
00021  * individuals.  For exact contribution history, see the revision
00022  * history and logs, available at http://rapidsvn.tigris.org/.
00023  * ====================================================================
00024  */
00025 
00026 #ifndef _SVNCPP_STATUS_SELECTION_HPP_
00027 #define _SVNCPP_STATUS_SELECTION_HPP_
00028 
00029 // stl
00030 #include <vector>
00031 
00032 // svncpp
00033 #include "svncpp/status.hpp"
00034 
00035 
00036 namespace svn
00037 {
00038   // forward declarations
00039   class Path;
00040   class Pool;
00041   class Targets;
00042 
00046   class StatusSel
00047   {
00048   public:
00052     StatusSel ();
00053     
00057     virtual ~ StatusSel ();
00058 
00064     StatusSel (const StatusSel & src);
00065 
00069     StatusSel &
00070     operator = (const StatusSel & src);
00071 
00078     const apr_array_header_t *
00079     array (const Pool & pool) const;
00080 
00086     const Targets & 
00087     targets () const;
00088 
00095     const Path &
00096     target () const;
00097 
00101     size_t size () const;
00102     
00106     void
00107     reserve (size_t size);
00108     
00114     void
00115     push_back (const Status & status);
00116     
00120     void
00121     clear ();
00122 
00128     operator const std::vector<Path> & () const;
00129 
00131     bool 
00132     hasFiles () const;
00133 
00135     bool 
00136     hasDirs () const;
00137 
00139     bool 
00140     hasVersioned () const;
00141 
00143     bool 
00144     hasUnversioned () const;
00145 
00147     bool 
00148     hasUrl () const;
00149 
00151     bool 
00152     hasLocal () const;
00153 
00154   private:
00155     struct Data;
00156     Data * m;
00157   };
00158 }
00159 
00160 #endif
00161 /* -----------------------------------------------------------------
00162  * local variables:
00163  * eval: (load-file "../../rapidsvn-dev.el")
00164  * end:
00165  */

Generated on Tue Mar 4 00:40:36 2008 for SvnCpp by  doxygen 1.5.3