SvnCpp
svn::Status Class Reference

#include <status.hpp>

Public Member Functions

 Status (const char *path=0, const svn_wc_status2_t *status=0)
 
 Status (const Status &src)
 
 ~Status ()
 
const char * path () const
 
const Entry entry () const
 
svn_wc_status_kind textStatus () const
 
svn_wc_status_kind propStatus () const
 
bool isVersioned () const
 
bool isCopied () const
 
bool isSwitched () const
 
svn_wc_status_kind reposTextStatus () const
 
svn_wc_status_kind reposPropStatus () const
 
bool isLocked () const
 
bool isRepLock () const
 
const char * lockToken () const
 
const char * lockOwner () const
 
const char * lockComment () const
 
apr_time_t lockCreationDate () const
 
svn_revnum_t oodLastCmtRev () const
 
apr_time_t oodLastCmtDate () const
 
svn_node_kind_t oodKind () const
 
const char * oodLastCmtAuthor () const
 
Statusoperator= (const Status &)
 
bool isSet () const
 

Detailed Description

Subversion status API.

See also
svn_wc.hpp

Constructor & Destructor Documentation

◆ Status() [1/2]

svn::Status::Status ( const char * path = 0,
const svn_wc_status2_t * status = 0 )

default constructor

Parameters
path
status

◆ Status() [2/2]

svn::Status::Status ( const Status & src)

copy constructor

◆ ~Status()

svn::Status::~Status ( )

destructor

Member Function Documentation

◆ entry()

const Entry svn::Status::entry ( ) const
Returns
entry for this path
Return values
entry.isValid() = false item is not versioned

◆ isCopied()

bool svn::Status::isCopied ( ) const
Return values
TRUEif copied

◆ isLocked()

bool svn::Status::isLocked ( ) const
Returns
true if locked

◆ isRepLock()

bool svn::Status::isRepLock ( ) const
Returns
true if has repository lock (not local)

◆ isSet()

bool svn::Status::isSet ( ) const

check whether the instance contains real data or nothing if it has constructed with the default constructor

Note
This is the successor of isset which had to be removed since there was a name conflict with system headers on some systems (see issue 676)
Since
0.12

◆ isSwitched()

bool svn::Status::isSwitched ( ) const
Return values
TRUEif switched

◆ isVersioned()

bool svn::Status::isVersioned ( ) const
Return values
TRUEif under version control

◆ lockComment()

const char * svn::Status::lockComment ( ) const
Returns
comment lock, null or no comment

◆ lockCreationDate()

apr_time_t svn::Status::lockCreationDate ( ) const
Returns
lock creation date or 0 if not locked

◆ lockOwner()

const char * svn::Status::lockOwner ( ) const
Returns
lock owner or null if not locked

◆ lockToken()

const char * svn::Status::lockToken ( ) const
Returns
lock token or null if not locked

◆ oodKind()

svn_node_kind_t svn::Status::oodKind ( ) const

Set to the node kind of the youngest commit, or svn_node_none if not out of date.

Since
New in 0.14

◆ oodLastCmtAuthor()

const char * svn::Status::oodLastCmtAuthor ( ) const

Set to the user name of the youngest commit, or NULL if not out of date or non-existent. Because a non-existent svn:author property has the same behavior as an out-of-date working copy, examine ood_last_cmt_rev to determine whether the working copy is out of date.

Since
New in 0.14

◆ oodLastCmtDate()

apr_time_t svn::Status::oodLastCmtDate ( ) const

Set to the most recent commit date, or 0 if not out of date.

Since
New in 0.14

◆ oodLastCmtRev()

svn_revnum_t svn::Status::oodLastCmtRev ( ) const

Set to the youngest committed revision, or SVN_INVALID_REVNUM if not out of date.

Since
New in 0.14

◆ operator=()

Status & svn::Status::operator= ( const Status & )

assignment operator

◆ path()

const char * svn::Status::path ( ) const
Returns
path of status entry

◆ propStatus()

svn_wc_status_kind svn::Status::propStatus ( ) const
Returns
file status property enum of the "property" component.

◆ reposPropStatus()

svn_wc_status_kind svn::Status::reposPropStatus ( ) const
Returns
the entry's prop status in the repository

◆ reposTextStatus()

svn_wc_status_kind svn::Status::reposTextStatus ( ) const
Returns
the entry's text status in the repository

◆ textStatus()

svn_wc_status_kind svn::Status::textStatus ( ) const
Returns
file status property enum of the "textual" component.

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