From 483eb2f56657e8e7f419ab1a4fab8dce9ade8609 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 20:24:20 +0200 Subject: Adding upstream version 14.2.21. Signed-off-by: Daniel Baumann --- src/rgw/rgw_tag_s3.h | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 src/rgw/rgw_tag_s3.h (limited to 'src/rgw/rgw_tag_s3.h') diff --git a/src/rgw/rgw_tag_s3.h b/src/rgw/rgw_tag_s3.h new file mode 100644 index 00000000..7ed02277 --- /dev/null +++ b/src/rgw/rgw_tag_s3.h @@ -0,0 +1,53 @@ +// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- +// vim: ts=8 sw=2 smarttab + +#ifndef RGW_TAG_S3_H +#define RGW_TAG_S3_H + +#include +#include +#include +#include +#include +#include + +#include "rgw_tag.h" +#include "rgw_xml.h" + +class RGWObjTagEntry_S3 +{ + std::string key; + std::string val; +public: + RGWObjTagEntry_S3() {} + RGWObjTagEntry_S3(const std::string &k, const std::string &v):key(k),val(v) {}; + ~RGWObjTagEntry_S3() {} + + const std::string& get_key () const { return key; } + const std::string& get_val () const { return val; } + + void dump_xml(Formatter *f) const; + void decode_xml(XMLObj *obj); +}; + +class RGWObjTagSet_S3: public RGWObjTags +{ +public: + int rebuild(RGWObjTags& dest); + + void dump_xml(Formatter *f) const; + void decode_xml(XMLObj *obj); +}; + +class RGWObjTagging_S3 +{ + RGWObjTagSet_S3 tagset; +public: + void decode_xml(XMLObj *obj); + int rebuild(RGWObjTags& dest) { + return tagset.rebuild(dest); + } +}; + + +#endif /* RGW_TAG_S3_H */ -- cgit v1.2.3