.. _program_listing_file_microlith_service_executor.h: Program Listing for File service_executor.h =========================================== |exhale_lsh| :ref:`Return to documentation for file ` (``microlith/service_executor.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #ifndef INCLUDE_MICROLITH_SERVICE_EXECUTOR_H_ #define INCLUDE_MICROLITH_SERVICE_EXECUTOR_H_ #include #include #include "microlith/executable_interface.h" #include "microlith/services.h" namespace microlith { class service_executor : public service, public provides_services, public receives_services { public: ~service_executor() override; void receive(std::shared_ptr service) override; void start() override; void stop() override; bool started(); private: std::unordered_set> _services{}; std::unordered_set> _running_services{}; }; // class service_executor } // namespace microlith #endif // INCLUDE_MICROLITH_SERVICE_EXECUTOR_H_