digiKam
option_int Class Reference
+ Inheritance diagram for option_int:

Public Member Functions

void add_namespace_prefix (std::string prefix)
 
virtual LIBDE265_API std::string get_default_string () const
 
std::string get_description () const
 
std::string get_name () const
 
std::string getLongOption () const
 
char getShortOption () const
 
virtual LIBDE265_API std::string getTypeDescr () const
 
virtual bool has_default () const
 
bool has_description () const
 
bool hasLongOption () const
 
bool hasShortOption () const
 
virtual bool is_defined () const
 
bool is_undefined () const
 
 operator int () const
 
int operator() () const
 
const option_intoperator= (int v)
 
 option_int ()
 
virtual LIBDE265_API bool processCmdLineArguments (char **argv, int *argc, int idx)
 
bool set (int v)
 
void set_cmd_line_options (const char *long_option, char short_option=0)
 
void set_default (int v)
 
void set_description (std::string descr)
 
void set_ID (const char *name)
 
void set_maximum (int maxi)
 
void set_minimum (int mini)
 
void set_range (int mini, int maxi)
 
void set_short_option (char short_option)
 
void set_valid_values (const std::vector< int > &v)
 
void unsetCmdLineOption ()
 

Constructor & Destructor Documentation

◆ option_int()

option_int::option_int ( )
inline

Member Function Documentation

◆ add_namespace_prefix()

void option_base::add_namespace_prefix ( std::string  prefix)
inlineinherited

References prefix.

◆ get_default_string()

virtual LIBDE265_API std::string option_int::get_default_string ( ) const
virtual

Reimplemented from option_base.

◆ get_description()

std::string option_base::get_description ( ) const
inlineinherited

◆ get_name()

std::string option_base::get_name ( ) const
inlineinherited

◆ getLongOption()

std::string option_base::getLongOption ( ) const
inlineinherited

◆ getShortOption()

char option_base::getShortOption ( ) const
inlineinherited

◆ getTypeDescr()

virtual LIBDE265_API std::string option_int::getTypeDescr ( ) const
virtual

Implements option_base.

◆ has_default()

virtual bool option_int::has_default ( ) const
inlinevirtual

Implements option_base.

◆ has_description()

bool option_base::has_description ( ) const
inlineinherited

◆ hasLongOption()

bool option_base::hasLongOption ( ) const
inlineinherited

◆ hasShortOption()

bool option_base::hasShortOption ( ) const
inlineinherited

◆ is_defined()

virtual bool option_int::is_defined ( ) const
inlinevirtual

Implements option_base.

◆ is_undefined()

bool option_base::is_undefined ( ) const
inlineinherited

◆ operator int()

option_int::operator int ( ) const
inline

References operator()().

◆ operator()()

int option_int::operator() ( ) const
inline

Referenced by operator int().

◆ operator=()

const option_int& option_int::operator= ( int  v)
inline

◆ processCmdLineArguments()

virtual LIBDE265_API bool option_int::processCmdLineArguments ( char **  argv,
int *  argc,
int  idx 
)
virtual

Reimplemented from option_base.

◆ set()

bool option_int::set ( int  v)
inline

◆ set_cmd_line_options()

void option_base::set_cmd_line_options ( const char *  long_option,
char  short_option = 0 
)
inlineinherited

◆ set_default()

◆ set_description()

void option_base::set_description ( std::string  descr)
inlineinherited

◆ set_ID()

◆ set_maximum()

void option_int::set_maximum ( int  maxi)
inline

◆ set_minimum()

void option_int::set_minimum ( int  mini)
inline

◆ set_range()

void option_int::set_range ( int  mini,
int  maxi 
)

◆ set_short_option()

void option_base::set_short_option ( char  short_option)
inlineinherited

◆ set_valid_values()

void option_int::set_valid_values ( const std::vector< int > &  v)
inline

◆ unsetCmdLineOption()

void option_base::unsetCmdLineOption ( )
inlineinherited

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