]>
git.proxmox.com Git - ceph.git/blob - ceph/src/rgw/rgw_tag_s3.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab ft=cpp
10 #include <include/types.h>
11 #include <common/Formatter.h>
17 class RGWObjTagEntry_S3
22 RGWObjTagEntry_S3() {}
23 RGWObjTagEntry_S3(const std::string
&k
, const std::string
&v
):key(k
),val(v
) {};
24 ~RGWObjTagEntry_S3() {}
26 const std::string
& get_key () const { return key
; }
27 const std::string
& get_val () const { return val
; }
29 void dump_xml(Formatter
*f
) const;
30 void decode_xml(XMLObj
*obj
);
33 class RGWObjTagSet_S3
: public RGWObjTags
36 int rebuild(RGWObjTags
& dest
);
38 void dump_xml(Formatter
*f
) const;
39 void decode_xml(XMLObj
*obj
);
42 class RGWObjTagging_S3
44 RGWObjTagSet_S3 tagset
;
46 void decode_xml(XMLObj
*obj
);
47 int rebuild(RGWObjTags
& dest
) {
48 return tagset
.rebuild(dest
);
53 #endif /* RGW_TAG_S3_H */