diff options
author | Christian Linke <christian.linke@bmw.de> | 2015-04-15 19:05:53 +0200 |
---|---|---|
committer | Christian Linke <christian.linke@bmw.de> | 2015-04-15 19:05:53 +0200 |
commit | 64944e1fa72f346f1161da60c033de2e10513bea (patch) | |
tree | 12f668bf4024365311dd46bd3dc904f57e00f8fa /AudioManagerUtilities/src | |
parent | a0b06e2a9b466cfcc6f6810a66d9522a56872cbb (diff) | |
download | audiomanager-64944e1fa72f346f1161da60c033de2e10513bea.tar.gz |
* implemend command line options for plugins. rework of command line
* add tclap as template library
* implement bug 344
Signed-off-by: Christian Linke <christian.linke@bmw.de>
Diffstat (limited to 'AudioManagerUtilities/src')
-rw-r--r-- | AudioManagerUtilities/src/CAmCommandLineSingleton.cpp | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/AudioManagerUtilities/src/CAmCommandLineSingleton.cpp b/AudioManagerUtilities/src/CAmCommandLineSingleton.cpp new file mode 100644 index 0000000..82971cd --- /dev/null +++ b/AudioManagerUtilities/src/CAmCommandLineSingleton.cpp @@ -0,0 +1,42 @@ +/* + * CAmCommandLineSingleton.cpp + * + * Created on: Apr 15, 2015 + * Author: genius + */ + +#include "CAmCommandLineSingleton.h" +#include <cassert> + +namespace am { + +static TCLAP::CmdLine* pSingleCmdLine = NULL; + +CAmCommandLineSingleton::CAmCommandLineSingleton() { + // TODO Auto-generated constructor stub + +} + +TCLAP::CmdLine* CAmCommandLineSingleton::instanciateOnce(const std::string& message, + const char delimiter, + const std::string& version, + bool helpAndVersion) +{ + if(NULL==pSingleCmdLine) + { + pSingleCmdLine = new TCLAP::CmdLine(message,delimiter,version,helpAndVersion); + } + return pSingleCmdLine; +} + +TCLAP::CmdLine* CAmCommandLineSingleton::instance() +{ + assert(NULL!=pSingleCmdLine); + return pSingleCmdLine; +} + +CAmCommandLineSingleton::~CAmCommandLineSingleton() { + // TODO Auto-generated destructor stub +} + +} /* namespace am */ |