#include <OptionsGroup.h>
OptionsGroup is a kind of data for a radio button. It has a list of text representing a list of choices, and a integer number indicating the choice selected.  
 More...
OptionsGroup is a kind of data for a radio button. It has a list of text representing a list of choices, and a integer number indicating the choice selected. 
◆ selectedItem
◆ textItems
  
  | 
        
          | type::vector<std::string> sofa::helper::OptionsGroup::textItems |  | protected | 
 
 
◆ OptionsGroup() [1/4]
      
        
          | sofa::helper::OptionsGroup::OptionsGroup | ( |  | ) |  | 
      
 
 
◆ OptionsGroup() [2/4]
template<std::ranges::range T> 
  
  | 
        
          | sofa::helper::OptionsGroup::OptionsGroup | ( | const T & | list | ) |  |  | explicit | 
 
generic constructor taking other string container like list<string>, set<string>, vector<string> 
 
 
◆ OptionsGroup() [3/4]
template<class T > 
      
        
          | sofa::helper::OptionsGroup::OptionsGroup | ( | const std::initializer_list< T > & | list | ) |  | 
      
 
 
◆ OptionsGroup() [4/4]
      
        
          | sofa::helper::OptionsGroup::OptionsGroup | ( | const OptionsGroup & | m_radiotrick | ) |  | 
      
 
 
◆ buildFromContainer()
template<std::ranges::range T> 
  
  | 
        
          | void sofa::helper::OptionsGroup::buildFromContainer | ( | const T & | list | ) |  |  | protected | 
 
 
◆ getSelectedId()
      
        
          | unsigned int sofa::helper::OptionsGroup::getSelectedId | ( |  | ) | const | 
      
 
 
◆ getSelectedItem()
      
        
          | const std::string & sofa::helper::OptionsGroup::getSelectedItem | ( |  | ) | const | 
      
 
 
◆ isInOptionsList()
      
        
          | int sofa::helper::OptionsGroup::isInOptionsList | ( | const std::string & | tempostring | ) | const | 
      
 
return the id_item of the string if found in string list button -1 if not found 
 
 
◆ operator=()
◆ operator[]()
  
  | 
        
          | const std::string& sofa::helper::OptionsGroup::operator[] | ( | const unsigned int | i | ) | const |  | inline | 
 
 
◆ readFromStream()
      
        
          | void sofa::helper::OptionsGroup::readFromStream | ( | std::istream & | stream | ) |  | 
      
 
Setting the activated item by a input-stream. the istream is converted to string. If the reading string is in options list, its value is set activated, else push a warning. 
 
 
◆ setItemName()
      
        
          | void sofa::helper::OptionsGroup::setItemName | ( | unsigned int | id_item, | 
        
          |  |  | const std::string & | name | 
        
          |  | ) |  |  | 
      
 
Set the name of the id-th item. 
 
 
◆ setNames()
template<class T > 
      
        
          | void sofa::helper::OptionsGroup::setNames | ( | const std::initializer_list< T > & | list | ) |  | 
      
 
 
◆ setNbItems()
      
        
          | void sofa::helper::OptionsGroup::setNbItems | ( | size_type | nbofRadioButton | ) |  | 
      
 
 
◆ setSelectedItem() [1/2]
      
        
          | OptionsGroup & sofa::helper::OptionsGroup::setSelectedItem | ( | const std::string & | m_string | ) |  | 
      
 
Setting the activated item by its value (string) 
 
 
◆ setSelectedItem() [2/2]
Setting the activated item by its id. 
 
 
◆ size()
  
  | 
        
          | size_t sofa::helper::OptionsGroup::size | ( |  | ) | const |  | inline | 
 
 
◆ writeToStream()
      
        
          | void sofa::helper::OptionsGroup::writeToStream | ( | std::ostream & | stream | ) | const |