Web framework C++  2.0.0
Simple web framework on c++ designed to easily create web pages, etc
Public Member Functions | List of all members
InitParams Class Reference

InitParams is intended to get web-server configs from command line arguments. More...

#include <init_params.h>

Collaboration diagram for InitParams:
Collaboration graph

Public Member Functions

 InitParams ()
 
 InitParams (int argc, char **argv)
 
bool isIPv6 ()
 
const char * getIP ()
 
int getPort ()
 
std::string getFilePath ()
 

Detailed Description

InitParams is intended to get web-server configs from command line arguments.

This class make verification of ip-address, port etc...

Constructor & Destructor Documentation

InitParams::InitParams ( )

Create empty object

InitParams::InitParams ( int  argc,
char **  argv 
)

Get params from command line arguments

Parameters
argcnum of params
argvparams

Member Function Documentation

std::string InitParams::getFilePath ( )

get log file path

Returns
log file path
const char* InitParams::getIP ( )

get ip address

Returns
ip host address
int InitParams::getPort ( )

get port

Returns
host post
bool InitParams::isIPv6 ( )

check if ip address is IPv6

Returns
true if ip address is IPv6, false otherwise

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