SvnCpp
Public Member Functions
svn::Targets Class Reference

#include <targets.hpp>

Public Member Functions

 Targets (const PathVector &targets)
 
 Targets (const apr_array_header_t *targets)
 
 Targets (const char *target=0)
 
 Targets (const Targets &targets)
 
virtual ~Targets ()
 
const apr_array_header_t * array (const Pool &pool) const
 
const PathVectortargets () const
 
size_t size () const
 
 operator const PathVector & () const
 
const Path target () const
 
void push_back (const Path &path)
 
void clear ()
 
void reserve (size_t size)
 

Detailed Description

Encapsulation for Subversion target arrays handling

Constructor & Destructor Documentation

§ Targets() [1/4]

svn::Targets::Targets ( const PathVector targets)

Constructor

Parameters
targetsvector of paths

§ Targets() [2/4]

svn::Targets::Targets ( const apr_array_header_t *  targets)

Constructor from an APR array containing char *.

Parameters
targetsAPR array header

§ Targets() [3/4]

svn::Targets::Targets ( const char *  target = 0)

Constructor. Initializes list with just one entry

Parameters
target

§ Targets() [4/4]

svn::Targets::Targets ( const Targets targets)

Copy Constructor

Parameters
targetsSource

§ ~Targets()

virtual svn::Targets::~Targets ( )
virtual

Destructor

Member Function Documentation

§ array()

const apr_array_header_t* svn::Targets::array ( const Pool pool) const

Returns an apr array containing char *.

Parameters
poolPool used for conversion

§ clear()

void svn::Targets::clear ( )

clears all entries

Referenced by operator const PathVector &().

§ operator const PathVector &()

svn::Targets::operator const PathVector & ( ) const
inline

operator to return the vector

Returns
vector with targets

References clear(), push_back(), reserve(), and target().

§ push_back()

void svn::Targets::push_back ( const Path path)

adds a Path to the existing entries

Remarks
you have to make sure the path is unique

Referenced by operator const PathVector &().

§ reserve()

void svn::Targets::reserve ( size_t  size)

reserve the size for following calls to push_back

Referenced by operator const PathVector &().

§ size()

size_t svn::Targets::size ( ) const
Returns
the number of targets

§ target()

const Path svn::Targets::target ( ) const

returns one single target. in fact, the first in the vector, it there are more than one. if there is no target returns an empty path

Returns
single path

Referenced by operator const PathVector &().

§ targets()

const PathVector& svn::Targets::targets ( ) const

Returns a vector of paths

Returns
vector of paths

The documentation for this class was generated from the following file: