ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/GoogleTron/Subversion/Entry.hpp
Revision: 701
Committed: 2006-03-13T03:54:44-08:00 (19 years, 3 months ago) by douglas
File size: 880 byte(s)
Log Message:
Grr! So, I need to set up authentication bullshit, lovely... well, time for ice cream.

File Contents

# User Rev Content
1 douglas 701 // Subversion Entry
2     //
3     // Douglas Thrift
4     //
5     // $Id$
6    
7     #ifndef _Subversion_Entry_hpp_
8     #define _Subversion_Entry_hpp_
9    
10     #include <cxx/platform.hpp>
11    
12     #ifdef MENES_PRAGMA_ONCE
13     #pragma once
14     #endif
15    
16     #include <ctime>
17    
18     #include <subversion-1/svn_types.h>
19    
20     namespace Subversion
21     {
22    
23     enum Kind { none = ::svn_node_none, file = ::svn_node_file, dir = ::svn_node_dir, unknown = ::svn_node_unknown };
24    
25     class Entry
26     {
27     cse::String name;
28     ::svn_dirent_t entry;
29     Entry(const cse::String &name, ::svn_dirent_t *entry) : name(name), entry(*entry) {}
30     public:
31     const cse::String &GetName() const { return name; }
32     Kind GetKind() const { return Kind(entry.kind); }
33     std::time_t GetModified() const { return apr_time_sec(entry.time); }
34     bool HasProperties() const { return entry.has_props; }
35     operator const cse::String &() const { return name; }
36     friend class Client;
37     };
38    
39     }
40    
41     #endif//_Subversion_Entry_hpp_

Properties

Name Value
svn:eol-style native
svn:keywords Id