acl
3.5.3.0
OSSObject.hpp
浏览该文件的文档.
1
#pragma once
2
#include "
acl_cpp/acl_cpp_define.hpp
"
3
#include "
acl_cpp/stdlib/string.hpp
"
4
5
namespace
acl
6
{
7
8
class
dbuf_pool;
9
class
istream;
10
class
string;
11
class
ObjectMetadata;
12
13
class
ACL_CPP_API
OSSObject
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
35
istream
*
getObjectContent
()
36
{
37
return
in_;
38
}
39
40
ObjectMetadata
*
getObjectMetadata
()
const
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
acl::istream
Definition:
istream.hpp:15
name
HTTP_API void const char * name
Definition:
lib_http.h:620
acl::OSSObject::getKey
const char * getKey() const
Definition:
OSSObject.hpp:25
acl::OSSObject::getBucketName
const char * getBucketName() const
Definition:
OSSObject.hpp:30
acl_cpp_define.hpp
acl::OSSObject
Definition:
OSSObject.hpp:13
string.hpp
acl::OSSObject::getObjectMetadata
ObjectMetadata * getObjectMetadata() const
Definition:
OSSObject.hpp:40
acl
Definition:
acl_cpp_init.hpp:4
acl::ObjectMetadata
Definition:
ObjectMetadata.hpp:9
acl::OSSObject::getObjectContent
istream * getObjectContent()
Definition:
OSSObject.hpp:35
acl::dbuf_pool
Definition:
dbuf_pool.hpp:17
ACL_CPP_API
#define ACL_CPP_API
Definition:
acl_cpp_define.hpp:16
include
acl_cpp
aliyun
oss
model
OSSObject.hpp
生成于 2021年 九月 10日 星期五 11:14:44 , 为 acl使用
1.8.15