1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
10 #include <include/types.h>
11 #include <common/Formatter.h>
17 struct RGWObjTagKey_S3: public XMLObj
21 struct RGWObjTagValue_S3: public XMLObj
25 class RGWObjTagEntry_S3: public XMLObj
30 RGWObjTagEntry_S3() {}
31 RGWObjTagEntry_S3(std::string k,std::string v):key(k),val(v) {};
32 ~RGWObjTagEntry_S3() {}
34 bool xml_end(const char*) override;
35 const std::string& get_key () const { return key;}
36 const std::string& get_val () const { return val;}
37 //void to_xml(CephContext *cct, ostream& out) const;
40 class RGWObjTagSet_S3: public RGWObjTags, public XMLObj
43 bool xml_end(const char*) override;
44 void dump_xml(Formatter *f);
45 int rebuild(RGWObjTags& dest);
48 class RGWObjTagging_S3: public XMLObj
51 bool xml_end(const char*) override;
54 class RGWObjTagsXMLParser : public RGWXMLParser
56 XMLObj *alloc_obj(const char *el);
58 RGWObjTagsXMLParser() {}
59 ~RGWObjTagsXMLParser() {}
62 #endif /* RGW_TAG_S3_H */