bpp-core3  3.0.0
bpp::BppApplication Class Reference

#include <Bpp/App/BppApplication.h>

+ Collaboration diagram for bpp::BppApplication:

Public Member Functions

 BppApplication (int argc, char *argv[], const std::string &name, bool verbose=true, int warningLevel=1)
 
virtual ~BppApplication ()
 
virtual void startTimer ()
 
virtual void done ()
 
virtual const std::map< std::string, std::string > & getParams () const
 
virtual std::map< std::string, std::string > & getParams ()
 
virtual const std::string & getParam (const std::string &name) const
 
virtual std::string & getParam (const std::string &name)
 
virtual bool isVerbose () const
 
virtual int getWarningLevel () const
 
virtual void help (const std::string &program) const
 

Protected Attributes

std::string appName_
 
std::map< std::string, std::string > params_
 
bool timerStarted_
 
bool verbose_
 
int warn_
 

Detailed Description

Definition at line 17 of file BppApplication.h.

Constructor & Destructor Documentation

◆ BppApplication()

BppApplication::BppApplication ( int  argc,
char *  argv[],
const std::string &  name,
bool  verbose = true,
int  warningLevel = 1 
)

◆ ~BppApplication()

virtual bpp::BppApplication::~BppApplication ( )
inlinevirtual

Definition at line 28 of file BppApplication.h.

References done(), and startTimer().

Member Function Documentation

◆ done()

void BppApplication::done ( )
virtual

Definition at line 40 of file BppApplication.cpp.

References appName_, bpp::ApplicationTools::displayTime(), timerStarted_, and verbose_.

Referenced by ~BppApplication().

◆ getParam() [1/2]

virtual const std::string& bpp::BppApplication::getParam ( const std::string &  name) const
inlinevirtual

Definition at line 37 of file BppApplication.h.

◆ getParam() [2/2]

virtual std::string& bpp::BppApplication::getParam ( const std::string &  name)
inlinevirtual

Definition at line 43 of file BppApplication.h.

◆ getParams() [1/2]

virtual const std::map<std::string, std::string>& bpp::BppApplication::getParams ( ) const
inlinevirtual

Definition at line 34 of file BppApplication.h.

References params_.

◆ getParams() [2/2]

virtual std::map<std::string, std::string>& bpp::BppApplication::getParams ( )
inlinevirtual

Definition at line 35 of file BppApplication.h.

References params_.

◆ getWarningLevel()

virtual int bpp::BppApplication::getWarningLevel ( ) const
inlinevirtual

Definition at line 47 of file BppApplication.h.

References help(), and warn_.

◆ help()

void BppApplication::help ( const std::string &  program) const
virtual

Definition at line 50 of file BppApplication.cpp.

References bpp::ApplicationTools::message.

Referenced by getWarningLevel().

◆ isVerbose()

virtual bool bpp::BppApplication::isVerbose ( ) const
inlinevirtual

Definition at line 45 of file BppApplication.h.

References verbose_.

◆ startTimer()

void BppApplication::startTimer ( )
virtual

Definition at line 34 of file BppApplication.cpp.

References bpp::ApplicationTools::startTimer(), and timerStarted_.

Referenced by ~BppApplication().

Member Data Documentation

◆ appName_

std::string bpp::BppApplication::appName_
protected

Definition at line 20 of file BppApplication.h.

Referenced by done().

◆ params_

std::map<std::string, std::string> bpp::BppApplication::params_
mutableprotected

Definition at line 21 of file BppApplication.h.

Referenced by BppApplication(), and getParams().

◆ timerStarted_

bool bpp::BppApplication::timerStarted_
protected

Definition at line 22 of file BppApplication.h.

Referenced by done(), and startTimer().

◆ verbose_

bool bpp::BppApplication::verbose_
protected

Definition at line 23 of file BppApplication.h.

Referenced by BppApplication(), done(), and isVerbose().

◆ warn_

int bpp::BppApplication::warn_
protected

Definition at line 24 of file BppApplication.h.

Referenced by getWarningLevel().


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