MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
MAKLogger::DtLgrCmdLine Class Reference

Logger Command line object for parsing command input. More...

+ Inheritance diagram for MAKLogger::DtLgrCmdLine:
+ Collaboration diagram for MAKLogger::DtLgrCmdLine:

Public Member Functions

 DtLgrCmdLine (const std::string &message, const char delimiter= ' ', const std::string &version="none", bool allocateConsole=true)
 
void addUnlabeled (DtCmdLine::Arg *a)
 Add an unlabeled argument. More...
 
bool parseInput (int argc, char *const *argv)
 Parse the input. More...
 

Protected Attributes

DtCmdLine::Arg * myUnlabeledArgument
 The unlabeled argument if it exists. More...
 
bool myAllocateConsole
 

Detailed Description

Logger Command line object for parsing command input.

Constructor & Destructor Documentation

MAKLogger::DtLgrCmdLine::DtLgrCmdLine ( const std::string &  message,
const char  delimiter = ' ',
const std::string &  version = "none",
bool  allocateConsole = true 
)
inlineexplicit

Member Function Documentation

void MAKLogger::DtLgrCmdLine::addUnlabeled ( DtCmdLine::Arg *  a)
inline

Add an unlabeled argument.

This argument cannot accept values beginning with the argument flag. There can be only one argument specified as unlabeled. Subsequent additions override any previous one and only the last is restricted.

References myUnlabeledArgument.

bool MAKLogger::DtLgrCmdLine::parseInput ( int  argc,
char *const *  argv 
)
inline

Parse the input.

Return values
trueParse was successful.
falseParse was unsuccessful.

References MAKLogger::DtLgrConsole::allocateConsole(), myAllocateConsole, and myUnlabeledArgument.

Member Data Documentation

bool MAKLogger::DtLgrCmdLine::myAllocateConsole
protected

Referenced by parseInput().

DtCmdLine::Arg* MAKLogger::DtLgrCmdLine::myUnlabeledArgument
protected

The unlabeled argument if it exists.

Referenced by addUnlabeled(), and parseInput().


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

Document ID: Generated on Thu Dec 18 15:35:09 EST 2025 from SVN revision 282494
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)