X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Frgw%2Frgw_tag_s3.h;fp=src%2Fceph%2Fsrc%2Frgw%2Frgw_tag_s3.h;h=f20ad94e277b2e5cb298e904fe04251a7c5830ec;hb=812ff6ca9fcd3e629e49d4328905f33eee8ca3f5;hp=0000000000000000000000000000000000000000;hpb=15280273faafb77777eab341909a3f495cf248d9;p=stor4nfv.git diff --git a/src/ceph/src/rgw/rgw_tag_s3.h b/src/ceph/src/rgw/rgw_tag_s3.h new file mode 100644 index 0000000..f20ad94 --- /dev/null +++ b/src/ceph/src/rgw/rgw_tag_s3.h @@ -0,0 +1,62 @@ +// -*- 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" + +struct RGWObjTagKey_S3: public XMLObj +{ +}; + +struct RGWObjTagValue_S3: public XMLObj +{ +}; + +class RGWObjTagEntry_S3: public XMLObj +{ + std::string key; + std::string val; +public: + RGWObjTagEntry_S3() {} + RGWObjTagEntry_S3(std::string k,std::string v):key(k),val(v) {}; + ~RGWObjTagEntry_S3() {} + + bool xml_end(const char*) override; + const std::string& get_key () const { return key;} + const std::string& get_val () const { return val;} + //void to_xml(CephContext *cct, ostream& out) const; +}; + +class RGWObjTagSet_S3: public RGWObjTags, public XMLObj +{ +public: + bool xml_end(const char*) override; + void dump_xml(Formatter *f); + int rebuild(RGWObjTags& dest); +}; + +class RGWObjTagging_S3: public XMLObj +{ +public: + bool xml_end(const char*) override; +}; + +class RGWObjTagsXMLParser : public RGWXMLParser +{ + XMLObj *alloc_obj(const char *el); +public: + RGWObjTagsXMLParser() {} + ~RGWObjTagsXMLParser() {} +}; + +#endif /* RGW_TAG_S3_H */