NAWA 0.9
Web Application Framework for C++
nawa::AppInit Class Reference

#include <nawa/AppInit.h>

Public Member Functions

virtual ~AppInit ()
 
 AppInit (Config config, size_t numThreads)
 
Configconfig ()
 
AccessFilterListaccessFilters ()
 
size_t getNumThreads ()
 

Detailed Description

Definition at line 32 of file AppInit.h.

Constructor & Destructor Documentation

◆ ~AppInit()

virtual nawa::AppInit::~AppInit ( )
virtual

◆ AppInit()

AppInit::AppInit ( Config  config,
size_t  numThreads 
)

Create a new AppInit object.

Parameters
configThe config.
numThreadsNumber of threads.

Definition at line 39 of file AppInit.cpp.

Member Function Documentation

◆ config()

Config & nawa::AppInit::config ( )

You can use this to modify the default configuration for every request during initialization.

Returns
Reference to the configuration.

Definition at line 43 of file AppInit.cpp.

◆ accessFilters()

AccessFilterList & nawa::AppInit::accessFilters ( )

Contains the number of started worker threads for information purposes (e.g., to determine dimension of thread pools).

Returns
Reference to the access filters container.

Definition at line 47 of file AppInit.cpp.

◆ getNumThreads()

size_t nawa::AppInit::getNumThreads ( )

Contains the number of started worker threads for information purposes (e.g., to determine dimension of thread pools).

Returns
Number of started worker threads.

Definition at line 51 of file AppInit.cpp.


The documentation for this class was generated from the following files: