class RGWRESTMgr {
bool should_log;
protected:
- map<string, RGWRESTMgr *> resource_mgrs;
- multimap<size_t, string> resources_by_size;
- RGWRESTMgr *default_mgr;
+ std::map<std::string, RGWRESTMgr*> resource_mgrs;
+ std::multimap<std::size_t, std::string> resources_by_size;
+ RGWRESTMgr* default_mgr;
public:
- RGWRESTMgr() : should_log(false), default_mgr(NULL) {}
+ RGWRESTMgr()
+ : should_log(false),
+ default_mgr(nullptr) {
+ }
virtual ~RGWRESTMgr();
void register_resource(string resource, RGWRESTMgr *mgr);
void register_default_mgr(RGWRESTMgr *mgr);
- virtual RGWRESTMgr *get_resource_mgr(struct req_state *s, const string& uri,
- string *out_uri);
+ virtual RGWRESTMgr* get_resource_mgr(struct req_state *s,
+ const std::string& uri,
+ std::string* out_uri);
virtual RGWRESTMgr* get_resource_mgr_as_default(struct req_state* s,
const std::string& uri,
RGWRESTMgr_SWIFT() {}
virtual ~RGWRESTMgr_SWIFT() {}
- virtual RGWHandler_REST *get_handler(struct req_state *s);
+ RGWHandler_REST *get_handler(struct req_state *s) override;
RGWRESTMgr* get_resource_mgr_as_default(struct req_state* s,
const std::string& uri,