8 #ifndef CPPCMS_SERVICE_H 9 #define CPPCMS_SERVICE_H 11 #include <cppcms/defs.h> 12 #include <booster/noncopyable.h> 13 #include <booster/hold_ptr.h> 14 #include <booster/function.h> 16 #include <booster/auto_ptr_inc.h> 17 #include <cppcms/locale_fwd.h> 18 #include <cppcms/json.h> 34 struct cached_settings;
41 class applications_pool;
70 static json::value load_settings(
int argc,
char *argv[]);
129 cppcms::cache_pool &cache_pool();
146 std::locale locale(std::string
const &name);
201 cppcms::impl::service &impl();
203 impl::cached_settings
const &cached_settings();
210 std::auto_ptr<cppcms::impl::cgi::acceptor> setup_acceptor(
json::value const &,
int,
int shift=0);
212 void start_acceptor(
bool after_fork=
false);
213 void setup_exit_handling();
216 void after_fork_exec();
218 void run_event_loop();
220 void run_win_console();
222 #ifdef CPPCMS_WIN_NATIVE 223 void win_service_prepare();
224 void win_service_exec();
225 void run_win_service();
This class controls the views used my application it knows to load them dynamically and reload if nee...
Definition: views_pool.h:221
This class is central representation of json objects.
Definition: json.h:140
a smart pointer similar to std::auto_ptr but it is non-copyable and underlying object has same constn...
Definition: hold_ptr.h:18
This class represent the central event loop of the CppCMS applications.
Definition: service.h:62
This is the namespace where all CppCMS functionality is placed.
Definition: application.h:19
This class provides an access to the thread pool where all CppCMS synchronous applications are execut...
Definition: thread_pool.h:29
This class provides an access to session management backends an allow customization.
Definition: session_pool.h:35
This is the main namespace that encloses all localization classes.
Definition: locale_fwd.h:14
Definition: function.h:16
the major class used for locale generation
Definition: generator.h:74
Application pool is the central class that holds user created applications.
Definition: applications_pool.h:145
callback< void()> handler
Definition: types.h:58
Booster library namespace. The library that implements Boost Like API in ABI backward compatible way...
Definition: application.h:23
Stop conversion and throw conversion_error.
Definition: encoding_errors.h:56
this is the central event loop that dispatches all requests.
Definition: io_service.h:37
This class makes impossible to copy any class derived from this one.
Definition: noncopyable.h:15
Class responsble for automaticall forwarding of HTTP/CGI requests to other hosts over SCGI...
Definition: forwarder.h:31