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

targets.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_TARGETS_HPP_
00015 #define _SVNCPP_TARGETS_HPP_
00016 
00017 // stl
00018 #include <vector>
00019 
00020 // apr api
00021 #include "apr_tables.h"
00022 
00023 namespace svn
00024 {
00025   // forward declarations
00026   class Path;
00027   class Pool;
00028 
00032   class Targets
00033   {
00034   public:
00040     Targets (const std::vector<Path> & targets);
00041     
00048     Targets (const apr_array_header_t * targets);
00049 
00056     Targets (const char * target = 0);
00057 
00063     Targets (const Targets & targets);
00064 
00068     virtual ~Targets ();
00069 
00076     const apr_array_header_t *
00077     array (const Pool & pool) const;
00078 
00084     const std::vector<Path> &
00085     targets() const;
00086 
00090     size_t size () const;
00091 
00097     operator const std::vector<Path> & () const
00098     {
00099       return m_targets;
00100     }
00101 
00110     const Path
00111     target () const;
00112     
00113 
00114   private:
00115     std::vector<Path> m_targets;
00116   };
00117 }
00118 
00119 #endif
00120 /* -----------------------------------------------------------------
00121  * local variables:
00122  * eval: (load-file "../../rapidsvn-dev.el")
00123  * end:
00124  */

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