acl  3.5.3.0
OSSObject.hpp
浏览该文件的文档.
1 #pragma once
4 
5 namespace acl
6 {
7 
8 class dbuf_pool;
9 class istream;
10 class string;
11 class ObjectMetadata;
12 
14 {
15 public:
16  OSSObject(dbuf_pool* pool = NULL);
17  ~OSSObject();
18 
19  OSSObject& setKey(const char* key);
20  OSSObject& setBucketName(const char* name);
21  OSSObject& setObjectContent(istream* in);
22  OSSObject& setObjectMetadata(ObjectMetadata* meta);
23  void reset();
24 
25  const char* getKey() const
26  {
27  return key_;
28  }
29 
30  const char* getBucketName() const
31  {
32  return bucket_;
33  }
34 
36  {
37  return in_;
38  }
39 
41  {
42  return meta_;
43  }
44 
45  const char* toString();
46 
47 private:
48  dbuf_pool* pool_;
49  char* bucket_;
50  char* key_;
51  istream* in_;
52  ObjectMetadata* meta_;
53  string* info_;
54 };
55 
56 } // namespace acl
HTTP_API void const char * name
Definition: lib_http.h:620
const char * getKey() const
Definition: OSSObject.hpp:25
const char * getBucketName() const
Definition: OSSObject.hpp:30
ObjectMetadata * getObjectMetadata() const
Definition: OSSObject.hpp:40
istream * getObjectContent()
Definition: OSSObject.hpp:35
#define ACL_CPP_API