22 static TCLAP::CmdLine* pSingleCmdLine = NULL;
24 CAmCommandLineSingleton::CAmCommandLineSingleton() {
31 const std::string& version,
34 if(NULL==pSingleCmdLine)
36 pSingleCmdLine =
new TCLAP::CmdLine(message,delimiter,version,helpAndVersion);
38 return pSingleCmdLine;
43 assert(NULL!=pSingleCmdLine);
44 return pSingleCmdLine;
50 delete pSingleCmdLine;
55 CAmCommandLineSingleton::~CAmCommandLineSingleton() {
A Common-API wrapper class, which loads the common-api runtime and instantiates all necessary objects...
static TCLAP::CmdLine * instance()
static TCLAP::CmdLine * instanciateOnce(const std::string &message, const char delimiter= ' ', const std::string &version="none", bool helpAndVersion=true)
SPDX license identifier: MPL-2.0.
static void deleteInstance()