Pol  Revision:cb584c9
Pol::Clib::ProgramMain Class Referenceabstract

#include <ProgramMain.h>

+ Inheritance diagram for Pol::Clib::ProgramMain:

Public Member Functions

 ProgramMain ()
 
virtual ~ProgramMain ()
 
void start (int argc, char *argv[])
 

Protected Member Functions

virtual int main ()=0
 
const std::vector< std::string > & programArgs () const
 
bool programArgsFind (const std::string &filter, std::string *rest=nullptr) const
 
std::string programArgsFindEquals (const std::string &filter, std::string defaultVal) const
 
int programArgsFindEquals (const std::string &filter, int defaultVal, bool hexVal) const
 
virtual void showHelp ()=0
 

Private Attributes

std::vector< std::string > m_programArguments
 

Detailed Description

Definition at line 11 of file ProgramMain.h.

Constructor & Destructor Documentation

Pol::Clib::ProgramMain::ProgramMain ( )

Definition at line 38 of file ProgramMain.cpp.

Pol::Clib::ProgramMain::~ProgramMain ( )
virtual

Definition at line 39 of file ProgramMain.cpp.

Member Function Documentation

virtual int Pol::Clib::ProgramMain::main ( )
protectedpure virtual
bool Pol::Clib::ProgramMain::programArgsFind ( const std::string &  filter,
std::string *  rest = nullptr 
) const
protected

Definition at line 137 of file ProgramMain.cpp.

Referenced by Pol::Clib::PolMain::main(), and Pol::Clib::RunEclMain::main().

std::string Pol::Clib::ProgramMain::programArgsFindEquals ( const std::string &  filter,
std::string  defaultVal 
) const
protected

Definition at line 161 of file ProgramMain.cpp.

Referenced by Pol::UoConvert::UoConvertMain::main().

int Pol::Clib::ProgramMain::programArgsFindEquals ( const std::string &  filter,
int  defaultVal,
bool  hexVal 
) const
protected

Definition at line 174 of file ProgramMain.cpp.

virtual void Pol::Clib::ProgramMain::showHelp ( )
protectedpure virtual

Member Data Documentation

std::vector<std::string> Pol::Clib::ProgramMain::m_programArguments
private

Definition at line 29 of file ProgramMain.h.


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