X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Ftest%2Flibrados_test_stub%2FTestClassHandler.h;fp=src%2Fceph%2Fsrc%2Ftest%2Flibrados_test_stub%2FTestClassHandler.h;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=df273364d30665dfeb08bcf87d3bf86a89eb7b66;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/test/librados_test_stub/TestClassHandler.h b/src/ceph/src/test/librados_test_stub/TestClassHandler.h deleted file mode 100644 index df27336..0000000 --- a/src/ceph/src/test/librados_test_stub/TestClassHandler.h +++ /dev/null @@ -1,77 +0,0 @@ -// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- -// vim: ts=8 sw=2 smarttab - -#ifndef CEPH_TEST_CLASS_HANDLER_H -#define CEPH_TEST_CLASS_HANDLER_H - -#include "objclass/objclass.h" -#include "common/snap_types.h" -#include -#include -#include -#include - -namespace librados -{ - -class TestIoCtxImpl; - -class TestClassHandler { -public: - - TestClassHandler(); - ~TestClassHandler(); - - struct MethodContext { - ~MethodContext(); - - TestIoCtxImpl *io_ctx_impl; - std::string oid; - SnapContext snapc; - }; - typedef boost::shared_ptr SharedMethodContext; - - struct Method { - cls_method_cxx_call_t class_call; - }; - typedef boost::shared_ptr SharedMethod; - typedef std::map Methods; - typedef std::map Filters; - - struct Class { - Methods methods; - Filters filters; - }; - typedef boost::shared_ptr SharedClass; - - void open_all_classes(); - - int create(const std::string &name, cls_handle_t *handle); - int create_method(cls_handle_t hclass, const char *method, - cls_method_cxx_call_t class_call, - cls_method_handle_t *handle); - cls_method_cxx_call_t get_method(const std::string &cls, - const std::string &method); - SharedMethodContext get_method_context(TestIoCtxImpl *io_ctx_impl, - const std::string &oid, - const SnapContext &snapc); - - int create_filter(cls_handle_t hclass, const std::string& filter_name, - cls_cxx_filter_factory_t fn); - -private: - - typedef std::map Classes; - typedef std::list ClassHandles; - - Classes m_classes; - ClassHandles m_class_handles; - Filters m_filters; - - void open_class(const std::string& name, const std::string& path); - -}; - -} // namespace librados - -#endif // CEPH_TEST_CLASS_HANDLER_H