Public Member Functions | List of all members
gnsstk::CommandOptionGroupAnd Class Reference

Detailed Description

This is a special "command option" which is really a meta-option to group other options together for use in other meta-options. This particular meta-option allows a group of options to be specified in other meta-options. This option is considered "set" iff all of the member options are set. This class and CommandOptionGroupAnd are designed to make up for the fact that the verification meta-options are not designed to work in other verification meta-options.

Definition at line 710 of file CommandOption.hpp.

#include <CommandOption.hpp>

Inheritance diagram for gnsstk::CommandOptionGroupAnd:
Inheritance graph
[legend]

Public Member Functions

 CommandOptionGroupAnd ()
 
virtual unsigned long getCount () const
 returns the sum of all encapsulated option counts if all are in use, zero otherwise. More...
 
virtual ~CommandOptionGroupAnd ()
 Destructor. More...
 
- Public Member Functions inherited from gnsstk::CommandOptionGroupOr
virtual std::string checkArguments ()
 Do not do any checking. More...
 
 CommandOptionGroupOr ()
 
virtual std::string getOptionString () const
 return a string containing the aggregated option strings More...
 
virtual ~CommandOptionGroupOr ()
 Destructor. More...
 
- Public Member Functions inherited from gnsstk::CommandOptionOneOf
void addOption (CommandOption *opt)
 Add an option to the list of mutually exclusive options. More...
 
 CommandOptionOneOf ()
 
CommandOptionwhichOne () const
 
virtual ~CommandOptionOneOf ()
 Destructor. More...
 
- Public Member Functions inherited from gnsstk::CommandOption
 CommandOption (const CommandOptionFlag of, const CommandOptionType ot, const char shOpt, const std::string &loOpt, const std::string &desc, const bool req=false, CommandOptionVec &optVectorList=defaultCommandOptionList)
 
std::ostream & dumpValue (std::ostream &out) const
 Displays this->value to the stream out. More...
 
virtual std::string getArgString () const
 Returns a string with the argument format. More...
 
std::string getDescription () const
 Returns a formatted string with the description of this option. More...
 
std::string getFullOptionString () const
 
unsigned long getOrder (unsigned long idx=-1) const
 
const std::vector< std::string > & getValue () const
 
void setDescription (const std::string &desc)
 
CommandOptionsetMaxCount (const unsigned long l)
 
struct option toGetoptLongOption () const
 Returns a struct option for use with getopt_long. More...
 
std::string toGetoptShortOption () const
 Returns a string for use with getopt. More...
 
virtual ~CommandOption ()
 Destructor. More...
 

Additional Inherited Members

- Public Types inherited from gnsstk::CommandOption
enum  CommandOptionFlag { noArgument = 0, hasArgument = 1 }
 
enum  CommandOptionType { trailingType, stdType, metaType }
 
- Protected Member Functions inherited from gnsstk::CommandOption
 CommandOption ()
 Default Constructor. More...
 
- Protected Attributes inherited from gnsstk::CommandOptionOneOf
CommandOptionVec optionVec
 
- Protected Attributes inherited from gnsstk::CommandOption
unsigned long count
 
std::string description
 The description for the help text. More...
 
std::string longOpt
 The string for the long option (for example, "--foo"). More...
 
unsigned long maxCount
 
CommandOptionFlag optFlag
 Flag for determining whether this option has an argument or not. More...
 
CommandOptionType optType
 
std::vector< unsigned long > order
 The order in which this option was encountered on the command line. More...
 
CommandOptionParserparser
 
bool required
 Whether or not this is a required command line option. More...
 
char shortOpt
 The character for the short option (for example, '-f'). More...
 
std::vector< std::string > value
 Any arguments passed with this option get put in here. More...
 

Constructor & Destructor Documentation

◆ CommandOptionGroupAnd()

gnsstk::CommandOptionGroupAnd::CommandOptionGroupAnd ( )
inline

CommandOptionGroupAnd contructor. Does nothing explicitly.

Definition at line 716 of file CommandOption.hpp.

◆ ~CommandOptionGroupAnd()

virtual gnsstk::CommandOptionGroupAnd::~CommandOptionGroupAnd ( )
inlinevirtual

Destructor.

Definition at line 720 of file CommandOption.hpp.

Member Function Documentation

◆ getCount()

unsigned long gnsstk::CommandOptionGroupAnd::getCount ( ) const
virtual

returns the sum of all encapsulated option counts if all are in use, zero otherwise.

Reimplemented from gnsstk::CommandOptionGroupOr.

Definition at line 540 of file CommandOption.cpp.


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


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:44