Eclipse SUMO - Simulation of Urban MObility
GNEPythonToolDialog::CategoryOptions Class Reference

internal class used for sorting options by categories More...

#include <GNEPythonToolDialog.h>

Inheritance diagram for GNEPythonToolDialog::CategoryOptions:
[legend]
Collaboration diagram for GNEPythonToolDialog::CategoryOptions:
[legend]

Public Member Functions

void addOption (const std::string &name, Option *option)
 add option More...
 
 CategoryOptions (const std::string &category)
 constructor More...
 
const std::vector< std::pair< std::string, Option * > > & getOptions () const
 get options More...
 
void sortByName ()
 sort options by name More...
 

Private Member Functions

 CategoryOptions ()
 default constructor More...
 

Private Attributes

std::vector< std::pair< std::string, Option * > > myOptions
 options for this category More...
 

Detailed Description

internal class used for sorting options by categories

Definition at line 97 of file GNEPythonToolDialog.h.

Constructor & Destructor Documentation

◆ CategoryOptions() [1/2]

GNEPythonToolDialog::CategoryOptions::CategoryOptions ( const std::string &  category)

constructor

Definition at line 235 of file GNEPythonToolDialog.cpp.

◆ CategoryOptions() [2/2]

GNEPythonToolDialog::CategoryOptions::CategoryOptions ( )
inlineprivate

default constructor

Definition at line 117 of file GNEPythonToolDialog.h.

Member Function Documentation

◆ addOption()

void GNEPythonToolDialog::CategoryOptions::addOption ( const std::string &  name,
Option option 
)

add option

Definition at line 241 of file GNEPythonToolDialog.cpp.

Referenced by GNEPythonToolDialog::getOptions().

Here is the caller graph for this function:

◆ getOptions()

const std::vector< std::pair< std::string, Option * > > & GNEPythonToolDialog::CategoryOptions::getOptions ( ) const

get options

Definition at line 247 of file GNEPythonToolDialog.cpp.

◆ sortByName()

void GNEPythonToolDialog::CategoryOptions::sortByName ( )

sort options by name

Definition at line 253 of file GNEPythonToolDialog.cpp.

Field Documentation

◆ myOptions

std::vector<std::pair<std::string, Option*> > GNEPythonToolDialog::CategoryOptions::myOptions
private

options for this category

Definition at line 114 of file GNEPythonToolDialog.h.


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