ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/GoogleTron/Subversion/Entry.hpp
Revision: 705
Committed: 2006-03-18T20:49:26-08:00 (19 years, 3 months ago) by douglas
File size: 870 byte(s)
Log Message:
Should work for FileSystem fairly well...

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 douglas 705 _finline Entry(const cse::String &name, ::svn_dirent_t *entry) : name(name), entry(*entry) {}
30 douglas 701 public:
31 douglas 705 _finline const cse::String &GetName() const { return name; }
32     _finline Kind GetKind() const { return Kind(entry.kind); }
33     _finline std::time_t GetModified() const { return apr_time_sec(entry.time); }
34     _finline bool HasProperties() const { return entry.has_props; }
35 douglas 701 friend class Client;
36     };
37    
38     }
39    
40     #endif//_Subversion_Entry_hpp_

Properties

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