OpenStructure
Data Structures | Public Types | Public Member Functions
ToolOptionEnum Class Reference

#include <tool_option.hh>

Inherits ToolOption.

Data Structures

struct  Tuple
 

Public Types

typedef std::vector< Tuple >::const_iterator ConstIterator
 
- Public Types inherited from ToolOption
enum  Type { INT , FLOAT , ENUM , BUTTON }
 

Public Member Functions

 ToolOptionEnum (const String &key, const String &verbose_name)
 
void Add (const String &text, int tag)
 
void SetIndex (int index)
 
int GetIndex () const
 
int GetValue () const
 
ConstIterator Begin () const
 
ConstIterator End () const
 
size_t Size ()
 
- Public Member Functions inherited from ToolOption
const StringGetKey () const
 
const StringGetVerboseName () const
 
Type GetType () const
 

Additional Inherited Members

- Protected Member Functions inherited from ToolOption
 ToolOption (const String &key, const String &verbose_name, Type type)
 

Detailed Description

Definition at line 100 of file tool_option.hh.

Member Typedef Documentation

◆ ConstIterator

typedef std::vector<Tuple>::const_iterator ConstIterator

Definition at line 106 of file tool_option.hh.

Constructor & Destructor Documentation

◆ ToolOptionEnum()

ToolOptionEnum ( const String key,
const String verbose_name 
)

Member Function Documentation

◆ Add()

void Add ( const String text,
int  tag 
)

◆ Begin()

ConstIterator Begin ( ) const
inline

Definition at line 117 of file tool_option.hh.

◆ End()

ConstIterator End ( ) const
inline

Definition at line 118 of file tool_option.hh.

◆ GetIndex()

int GetIndex ( ) const
inline

Definition at line 114 of file tool_option.hh.

◆ GetValue()

int GetValue ( ) const
inline

Definition at line 115 of file tool_option.hh.

◆ SetIndex()

void SetIndex ( int  index)
inline

Definition at line 112 of file tool_option.hh.

◆ Size()

size_t Size ( )
inline

Definition at line 119 of file tool_option.hh.


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