• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdecore
 

tdecore

Public Attributes | List of all members
TDECmdLineOptions Struct Reference

#include <tdecmdlineargs.h>

Public Attributes

const char * name
 
const char * description
 
const char * def
 

Detailed Description

Structure that holds command line options.

This class is intended to be used with the TDECmdLineArgs class, which provides convenient and powerful command line argument parsing and handling functionality.

See also
TDECmdLineArgs for additional usage information

Definition at line 40 of file tdecmdlineargs.h.

Member Data Documentation

◆ def

const char* TDECmdLineOptions::def

The default value for the option, if it is not specified on the command line.

Definition at line 65 of file tdecmdlineargs.h.

◆ description

const char* TDECmdLineOptions::description

The text description of the option as should appear in myapp –help.

This value should be wrapped with I18N_NOOP().

Definition at line 60 of file tdecmdlineargs.h.

◆ name

const char* TDECmdLineOptions::name

The name of the argument as it should be called on the command line and appear in myapp –help.

Note that if this option starts with "no" that you will need to test for the name without the "no" and the result will be the inverse of what is specified. i.e. if "nofoo" is the name of the option and myapp –nofoo is called:

TDECmdLineArgs::parsedArgs()->isSet("foo"); // false
TDECmdLineArgs::isSet
bool isSet(const char *option) const
Read out a boolean option or check for the presence of string option.
Definition: tdecmdlineargs.cpp:1181
TDECmdLineArgs::parsedArgs
static TDECmdLineArgs * parsedArgs(const char *id=0)
Access parsed arguments.
Definition: tdecmdlineargs.cpp:310

Definition at line 55 of file tdecmdlineargs.h.


The documentation for this struct was generated from the following file:
  • tdecmdlineargs.h

tdecore

Skip menu "tdecore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.9.4
This website is maintained by Timothy Pearson.