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>
17 #include <cppcms/locale_fwd.h>
18 #include <cppcms/json.h>
31 struct cached_settings;
38 class applications_pool;
67 static json::value load_settings(
int argc,
char *argv[]);
126 cppcms::cache_pool &cache_pool();
139 std::locale locale();
143 std::locale locale(std::string
const &name);
192 cppcms::impl::service &impl();
194 impl::cached_settings
const &cached_settings();
201 std::auto_ptr<cppcms::impl::cgi::acceptor> setup_acceptor(
json::value const &,
int,
int shift=0);
203 void start_acceptor(
bool after_fork=
false);
204 void setup_exit_handling();
207 void after_fork_exec();
209 void run_event_loop();
211 void run_win_console();
213 #ifdef CPPCMS_WIN_NATIVE
214 void win_service_prepare();
215 void win_service_exec();
216 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:173
This class is central representation of json objects.
Definition: json.h:142
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:59
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:32
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:41
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