00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef _SVNCPP_TARGETS_HPP_
00015 #define _SVNCPP_TARGETS_HPP_
00016
00017
00018 #include <vector>
00019
00020
00021 #include "apr_tables.h"
00022
00023
00024 namespace svn
00025 {
00026
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
00123
00124
00125