|
ESA JPIP server
0.1
|
Contains the configuration parameters of the application. More...
#include <app_config.h>
Public Member Functions | |
| AppConfig () | |
| Initializes the object with zero and empty values. More... | |
| bool | Load (const char *file_name) |
| Loads the parameters from a configuration file. More... | |
| int | port () const |
| Returns the listening port. More... | |
| string | address () const |
| Returns the listening address. More... | |
| string | images_folder () const |
| Returns the folder of the images. More... | |
| string | caching_folder () const |
| Returns the folder used for caching. More... | |
| string | logging_folder () const |
| Returns the folder used for the logging files. More... | |
| int | max_chunk_size () const |
| Returns the maximum chunk size. More... | |
| int | max_connections () const |
| Returns the maximum number of connections. More... | |
| bool | logging () const |
Returns true if the logging messages are allowed. More... | |
| bool | log_requests () const |
Returns true if the client requests are logged. More... | |
| int | com_time_out () const |
| Returns the connection time-out. More... | |
| int | cache_max_time () const |
| Returns the maximum time for the cache files in seconds. More... | |
| virtual | ~AppConfig () |
Private Attributes | |
| int | port_ |
| Listening port. More... | |
| int | logging_ |
true if logs messages are allowed More... | |
| int | log_requests_ |
true if the client requests are logged More... | |
| string | address_ |
| Listening address. More... | |
| string | images_folder_ |
| Directory for the images. More... | |
| string | caching_folder_ |
| Directory for the caching files. More... | |
| string | logging_folder_ |
| Directory for the logging files. More... | |
| int | max_chunk_size_ |
| Maximum chunk size. More... | |
| int | max_connections_ |
| Maximum number of connections. More... | |
| int | com_time_out_ |
| Connection time-out. More... | |
| int | cache_max_time_ |
| Maximum time for the cache files. More... | |
Friends | |
| ostream & | operator<< (ostream &out, const AppConfig &cfg) |
Contains the configuration parameters of the application.
It is possible to load these parameters from a configuration file. This class can be printed.
|
inline |
Initializes the object with zero and empty values.
|
inlinevirtual |
|
inline |
Returns the listening address.
|
inline |
Returns the maximum time for the cache files in seconds.
|
inline |
Returns the folder used for caching.
|
inline |
Returns the connection time-out.
|
inline |
Returns the folder of the images.
| bool AppConfig::Load | ( | const char * | file_name | ) |
Loads the parameters from a configuration file.
| file_name | Configuration file. |
true if successful.
|
inline |
Returns true if the client requests are logged.
|
inline |
Returns true if the logging messages are allowed.
|
inline |
Returns the folder used for the logging files.
|
inline |
Returns the maximum chunk size.
|
inline |
Returns the maximum number of connections.
|
inline |
Returns the listening port.
|
friend |
|
private |
Listening address.
|
private |
Maximum time for the cache files.
|
private |
Directory for the caching files.
|
private |
Connection time-out.
|
private |
Directory for the images.
|
private |
true if the client requests are logged
|
private |
true if logs messages are allowed
|
private |
Directory for the logging files.
|
private |
Maximum chunk size.
|
private |
Maximum number of connections.
|
private |
Listening port.