nlsr::ConfFileProcessor Class Reference

A class containing methods to parse an NLSR configuration file. More...

#include <conf-file-processor.hpp>

Public Member Functions

 ConfFileProcessor (Nlsr &nlsr, const std::string &cfile)
 
bool processConfFile ()
 Load and parse the configuration file, then populate NLSR. More...
 

Detailed Description

A class containing methods to parse an NLSR configuration file.

This class contains methods to parse an NLSR configuration file and set all the parameters in NLSR to the received values. There are defaults for any unconfigured settings.

This is currently called by the wrapper class NlsrRunner to populate the NLSR object with its configuration before NLSR is started.

See also
nlsr::ConfParameter
NlsrRunner::run

Definition at line 46 of file conf-file-processor.hpp.

Constructor & Destructor Documentation

nlsr::ConfFileProcessor::ConfFileProcessor ( Nlsr nlsr,
const std::string &  cfile 
)
inline

Definition at line 49 of file conf-file-processor.hpp.

Here is the call graph for this function:

Member Function Documentation

bool nlsr::ConfFileProcessor::processConfFile ( )

Load and parse the configuration file, then populate NLSR.

Entry-point function that chains all the necessary steps together to configure an NLSR object.

Returns
A boolean for whether configuration was successful.

Definition at line 138 of file conf-file-processor.cpp.

Here is the call graph for this function:

Here is the caller graph for this function: