Main Page | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals | Related Pages

targets.hpp

Go to the documentation of this file.
00001 /*
00002  * ====================================================================
00003  * Copyright (c) 2002-2004 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_TARGETS_HPP_
00015 #define _SVNCPP_TARGETS_HPP_
00016 
00017 // stl
00018 #include <vector>
00019 
00020 // apr api
00021 #include "apr_tables.h"
00022 
00023 
00024 namespace svn
00025 {
00026   // forward declarations
00027   class Path;
00028   class Pool;
00029 
00033   class Targets
00034   {
00035   public:
00041     Targets (const std::vector<Path> & targets);
00042     
00049     Targets (const apr_array_header_t * targets);
00050 
00057     Targets (const char * target = 0);
00058 
00064     Targets (const Targets & targets);
00065 
00069     virtual ~Targets ();
00070 
00077     const apr_array_header_t *
00078     array (const Pool & pool) const;
00079 
00085     const std::vector<Path> &
00086     targets() const;
00087 
00091     size_t size () const;
00092 
00098     operator const std::vector<Path> & () const
00099     {
00100       return m_targets;
00101     }
00102 
00111     const Path
00112     target () const;
00113     
00114 
00115   private:
00116     std::vector<Path> m_targets;
00117   };
00118 }
00119 
00120 #endif
00121 /* -----------------------------------------------------------------
00122  * local variables:
00123  * eval: (load-file "../../rapidsvn-dev.el")
00124  * end:
00125  */

Generated on Thu Sep 15 20:11:45 2005 for SvnCpp by  doxygen 1.4.4