.. _program_listing_file_include_kiwixserve.h: Program Listing for File kiwixserve.h ===================================== |exhale_lsh| :ref:`Return to documentation for file ` (``include/kiwixserve.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #ifndef KIWIXLIB_KIWIX_SERVE_H_ #define KIWIXLIB_KIWIX_SERVE_H_ #include #include class Subprocess; namespace kiwix { class KiwixServe { public: KiwixServe(const std::string& libraryPath, int port = 8181); ~KiwixServe(); void run(); void shutDown(); bool isRunning(); int getPort() { return m_port; } int setPort(int port); private: std::unique_ptr mp_kiwixServe; int m_port; std::string m_libraryPath; }; }; //end namespace kiwix #endif // KIWIXLIB_KIWIX_SERVE_H_