CommandOptionWithSimpleTimeArg Class Reference
[Command-Line OptionsGPStk Time Group]

#include <CommandOptionWithTimeArg.hpp>

Inheritance diagram for CommandOptionWithSimpleTimeArg:

Inheritance graph
[legend]
Collaboration diagram for CommandOptionWithSimpleTimeArg:

Collaboration graph
[legend]
List of all members.

Detailed Description

This class is similar to CommandOptionWithTimeArg, but accepts several different time formats simultaneously. The user can use any of the following time formats with this option:

Definition at line 129 of file CommandOptionWithTimeArg.hpp.

Public Member Functions

 CommandOptionWithSimpleTimeArg (const char shOpt, const std::string &loOpt, const std::string &desc, const bool required=false)
 Constructor.
virtual ~CommandOptionWithSimpleTimeArg ()
 Destructor.

Protected Member Functions

 CommandOptionWithSimpleTimeArg ()
 Default Constructor.
virtual std::string getTimeSpec (std::vector< std::string >::size_type index) const
 Return the appropriate time scanning format for value[index].


Constructor & Destructor Documentation

CommandOptionWithSimpleTimeArg const char  shOpt,
const std::string &  loOpt,
const std::string &  desc,
const bool  required = false
[inline]
 

Constructor.

Parameters:
shOpt The one character command line option. Set to 0 if unused.
loOpt The long command option. Set to std::string() if unused.
desc A string describing what this option does.
required Set to true if this is a required option.

Definition at line 140 of file CommandOptionWithTimeArg.hpp.

virtual ~CommandOptionWithSimpleTimeArg  )  [inline, virtual]
 

Destructor.

Definition at line 148 of file CommandOptionWithTimeArg.hpp.

CommandOptionWithSimpleTimeArg  )  [inline, protected]
 

Default Constructor.

Definition at line 152 of file CommandOptionWithTimeArg.hpp.


Member Function Documentation

string getTimeSpec std::vector< std::string >::size_type  index  )  const [protected, virtual]
 

Return the appropriate time scanning format for value[index].

Reimplemented from CommandOptionWithTimeArg.

Definition at line 89 of file CommandOptionWithTimeArg.cpp.

References index(), and gpstk::StringUtils::numWords().


The documentation for this class was generated from the following files:
Generated on Thu Feb 9 03:31:34 2012 for GPS ToolKit Software Library by  doxygen 1.3.9.1