/** * Autogenerated by Thrift for thrift/compiler/test/fixtures/mcpp2-compare/src/module.thrift * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @nocommit */ #pragma once #include #include "thrift/compiler/test/fixtures/mcpp2-compare/gen-cpp2/EmptyServiceAsyncClient.h" #include "thrift/compiler/test/fixtures/mcpp2-compare/gen-cpp2/module_types.h" #include "thrift/compiler/test/fixtures/mcpp2-compare/gen-cpp2/includes_types.h" #include namespace folly { class IOBuf; class IOBufQueue; } namespace apache { namespace thrift { class Cpp2RequestContext; class BinaryProtocolReader; class CompactProtocolReader; namespace transport { class THeader; } }} namespace some::valid::ns { class EmptyService; class EmptyServiceAsyncProcessor; class EmptyServiceServiceInfoHolder : public apache::thrift::ServiceInfoHolder { public: apache::thrift::ServiceRequestInfoMap const& requestInfoMap() const override; static apache::thrift::ServiceRequestInfoMap staticRequestInfoMap(); }; } // namespace some::valid::ns namespace apache::thrift { template <> class ServiceHandler<::some::valid::ns::EmptyService> : public apache::thrift::ServerInterface { public: std::string_view getGeneratedName() const override { return "EmptyService"; } typedef ::some::valid::ns::EmptyServiceAsyncProcessor ProcessorType; std::unique_ptr getProcessor() override; CreateMethodMetadataResult createMethodMetadata() override; bool isThriftGenerated() const override final { return true; } private: std::optional> getServiceRequestInfoMap() const; public: private: static ::some::valid::ns::EmptyServiceServiceInfoHolder __fbthrift_serviceInfoHolder; }; } // namespace apache::thrift namespace some::valid::ns { using EmptyServiceSvIf [[deprecated("Use apache::thrift::ServiceHandler instead")]] = ::apache::thrift::ServiceHandler; } // namespace some::valid::ns namespace some::valid::ns { class EmptyServiceSvNull : public ::apache::thrift::ServiceHandler { public: }; class EmptyServiceAsyncProcessor : public ::apache::thrift::GeneratedAsyncProcessorBase { public: const char* getServiceName() override; void getServiceMetadata(apache::thrift::metadata::ThriftServiceMetadataResponse& response) override; using BaseAsyncProcessor = void; protected: ::apache::thrift::ServiceHandler<::some::valid::ns::EmptyService>* iface_; public: void processSerializedCompressedRequestWithMetadata(apache::thrift::ResponseChannelRequest::UniquePtr req, apache::thrift::SerializedCompressedRequest&& serializedRequest, const apache::thrift::AsyncProcessorFactory::MethodMetadata& methodMetadata, apache::thrift::protocol::PROTOCOL_TYPES protType, apache::thrift::Cpp2RequestContext* context, folly::EventBase* eb, apache::thrift::concurrency::ThreadManager* tm) override; void executeRequest(apache::thrift::ServerRequest&& serverRequest, const apache::thrift::AsyncProcessorFactory::MethodMetadata& methodMetadata) override; public: using ProcessFuncs = GeneratedAsyncProcessorBase::ProcessFuncs; using ProcessMap = GeneratedAsyncProcessorBase::ProcessMap; static const EmptyServiceAsyncProcessor::ProcessMap& getOwnProcessMap(); private: static const EmptyServiceAsyncProcessor::ProcessMap kOwnProcessMap_; private: public: EmptyServiceAsyncProcessor(::apache::thrift::ServiceHandler<::some::valid::ns::EmptyService>* iface) : iface_(iface) {} ~EmptyServiceAsyncProcessor() override {} }; } // namespace some::valid::ns