entry.hpp
Go to the documentation of this file.
/*
* ====================================================================
* Copyright (c) 2002-2009 The RapidSvn Group. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program (in the file GPL.txt.
* If not, see <http://www.gnu.org/licenses/>.
*
* This software consists of voluntary contributions made by many
* individuals. For exact contribution history, see the revision
* history and logs, available at http://rapidsvn.tigris.org/.
* ====================================================================
*/
#ifndef _SVNCPP_ENTRY_HPP_
#define _SVNCPP_ENTRY_HPP_
// subversion api
#include "svn_wc.h"
// svncpp
#include "svncpp/pool.hpp"
namespace svn
{
class Entry
{
public:
Entry(const svn_wc_entry_t * src = 0);
Entry(const Entry & src);
virtual ~Entry();
bool isValid() const
{
return m_valid;
}
const char *
name() const
{
return m_entry->name;
}
svn_revnum_t
revision() const
{
return m_entry->revision;
}
const char *
url() const
{
return m_entry->url;
}
const char *
repos() const
{
return m_entry->repos;
}
const char *
uuid() const
{
return m_entry->uuid;
}
svn_node_kind_t
kind() const
{
return m_entry->kind;
}
svn_wc_schedule_t
schedule() const
{
return m_entry->schedule;
}
bool
isCopied() const
{
return m_entry->copied != 0;
}
bool
isDeleted() const
{
return m_entry->deleted != 0;
}
bool
isAbsent() const
{
return m_entry->absent != 0;
}
const char *
copyfromUrl() const
{
return m_entry->copyfrom_url;
}
svn_revnum_t
copyfromRev() const
{
return m_entry->copyfrom_rev;
}
const char *
conflictOld() const
{
return m_entry->conflict_old;
}
const char *
conflictNew() const
{
return m_entry->conflict_new;
}
const char *
conflictWrk() const
{
return m_entry->conflict_wrk;
}
const char *
prejfile() const
{
return m_entry->prejfile;
}
apr_time_t
textTime() const
{
return m_entry->text_time;
}
apr_time_t
propTime() const
{
return m_entry->prop_time;
}
const char *
checksum() const
{
return m_entry->checksum;
}
svn_revnum_t
cmtRev() const
{
return m_entry->cmt_rev;
}
apr_time_t
cmtDate() const
{
return m_entry->cmt_date;
}
const char *
cmtAuthor() const
{
return m_entry->cmt_author;
}
operator svn_wc_entry_t * () const
{
return m_entry;
}
Entry &
operator = (const Entry &);
private:
svn_wc_entry_t * m_entry;
Pool m_pool;
bool m_valid;
void
init(const svn_wc_entry_t * src);
};
}
#endif
/* -----------------------------------------------------------------
* local variables:
* eval: (load-file "../../rapidsvn-dev.el")
* end:
*/
svn::Entry::cmtRev
svn_revnum_t cmtRev() const
Definition: entry.hpp:256
svn::Entry::conflictWrk
const char * conflictWrk() const
Definition: entry.hpp:208
svn::Entry::cmtAuthor
const char * cmtAuthor() const
Definition: entry.hpp:274
svn::Entry::operator=
Entry & operator=(const Entry &)
svn::Entry::isValid
bool isValid() const
Definition: entry.hpp:73
svn::Entry::schedule
svn_wc_schedule_t schedule() const
Definition: entry.hpp:136
svn::Entry::cmtDate
apr_time_t cmtDate() const
Definition: entry.hpp:265
svn::Entry::isDeleted
bool isDeleted() const
Definition: entry.hpp:154
svn::Entry::isAbsent
bool isAbsent() const
Definition: entry.hpp:163
svn::Entry::checksum
const char * checksum() const
Definition: entry.hpp:247
svn::Entry::uuid
const char * uuid() const
Definition: entry.hpp:118
svn::Entry
Definition: entry.hpp:40
svn::Entry::copyfromRev
svn_revnum_t copyfromRev() const
Definition: entry.hpp:181
svn::Entry::prejfile
const char * prejfile() const
Definition: entry.hpp:217
svn::Entry::repos
const char * repos() const
Definition: entry.hpp:109
svn::Entry::propTime
apr_time_t propTime() const
Definition: entry.hpp:237
svn::Entry::textTime
apr_time_t textTime() const
Definition: entry.hpp:227
svn::Pool
Definition: pool.hpp:36
svn::Entry::revision
svn_revnum_t revision() const
Definition: entry.hpp:91
svn::Entry::conflictNew
const char * conflictNew() const
Definition: entry.hpp:199
svn::Entry::copyfromUrl
const char * copyfromUrl() const
Definition: entry.hpp:172
svn::Entry::~Entry
virtual ~Entry()
svn::Entry::url
const char * url() const
Definition: entry.hpp:100
svn::Entry::Entry
Entry(const svn_wc_entry_t *src=0)
svn::Entry::name
const char * name() const
Definition: entry.hpp:82
svn::Entry::isCopied
bool isCopied() const
Definition: entry.hpp:145
svn::Entry::conflictOld
const char * conflictOld() const
Definition: entry.hpp:190
svn::Entry::kind
svn_node_kind_t kind() const
Definition: entry.hpp:127
pool.hpp