1 /**
2  * Autogenerated by Thrift
3  *
4  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5  *  @generated
6  */
7 
8 #pragma once
9 #include <src/gen-cpp2/MyRoot.h>
10 #include <src/gen-cpp2/MyNode.h>
11 #include <src/gen-cpp2/MyLeaf.h>
12 #include <folly/python/futures.h>
13 #include <Python.h>
14 
15 #include <memory>
16 
17 namespace cpp2 {
18 
19 class MyRootWrapper : virtual public MyRootSvIf {
20   protected:
21     PyObject *if_object;
22     folly::Executor *executor;
23   public:
24     explicit MyRootWrapper(PyObject *if_object, folly::Executor *exc);
25     void async_tm_do_root(std::unique_ptr<apache::thrift::HandlerCallback<void>> callback) override;
26 };
27 
28 std::shared_ptr<apache::thrift::ServerInterface> MyRootInterface(PyObject *if_object, folly::Executor *exc);
29 
30 
31 class MyNodeWrapper : public ::cpp2::MyRootWrapper, virtual public MyNodeSvIf {
32   public:
33     explicit MyNodeWrapper(PyObject *if_object, folly::Executor *exc);
34     void async_tm_do_mid(std::unique_ptr<apache::thrift::HandlerCallback<void>> callback) override;
35 };
36 
37 std::shared_ptr<apache::thrift::ServerInterface> MyNodeInterface(PyObject *if_object, folly::Executor *exc);
38 
39 
40 class MyLeafWrapper : public ::cpp2::MyNodeWrapper, virtual public MyLeafSvIf {
41   public:
42     explicit MyLeafWrapper(PyObject *if_object, folly::Executor *exc);
43     void async_tm_do_leaf(std::unique_ptr<apache::thrift::HandlerCallback<void>> callback) override;
44 };
45 
46 std::shared_ptr<apache::thrift::ServerInterface> MyLeafInterface(PyObject *if_object, folly::Executor *exc);
47 } // namespace cpp2
48