acl  3.5.3.0
Bucket.hpp
浏览该文件的文档.
1 #pragma once
4 
5 namespace acl
6 {
7 
8 class dbuf_pool;
9 
11 {
12 public:
13  Bucket(const char* name, const char* owner, dbuf_pool* pool = NULL);
14  ~Bucket();
15 
16  Bucket& setName(const char* name);
17  Bucket& setOwner(const char* owner);
18  Bucket& setLocation(const char* location);
19  Bucket& setCreationDate(time_t creationDate);
20  void reset();
21 
22  const char* getName() const
23  {
24  return name_;
25  }
26 
27  const char* getOwner() const
28  {
29  return owner_;
30  }
31 
32  const char* getLocation() const
33  {
34  return location_;
35  }
36 
37  time_t getCreationDate() const
38  {
39  return creation_date_;
40  }
41 
42  const char* toString();
43 
44 private:
45  dbuf_pool* pool_;
46  char* name_;
47  char* owner_;
48  char* location_;
49  time_t creation_date_;
50  string* info_;;
51 };
52 
53 } // namespace acl
const char * getOwner() const
Definition: Bucket.hpp:27
HTTP_API void const char * name
Definition: lib_http.h:620
const char * getName() const
Definition: Bucket.hpp:22
time_t getCreationDate() const
Definition: Bucket.hpp:37
const char * getLocation() const
Definition: Bucket.hpp:32
#define ACL_CPP_API