wex v24.10.0
Public Member Functions | List of all members
wex::to_container< T > Class Template Reference

Offers a class to keep several objects into a templatized container. More...

#include <wex/common/tocontainer.h>

Public Member Functions

 to_container (const std::vector< std::string > &in)
 Constructor, using std::string.
 
 to_container (const wxArrayString &in)
 Constructor, using array string.
 
 to_container (const wxFileDialog &in)
 Constructor, using file dialog.
 
 to_container (const wxGenericDirCtrl &in)
 Constructor, using generic dirctrl.
 
 to_container (const std::string &in, const std::string &delims=" \t\r\n")
 Constructor, using string, each word results in a container element.
 
 to_container (const wxComboBox *cb, size_t max_items=UINT_MAX)
 Constructor, using a combobox.
 
const auto & get () const
 Returns the container.
 

Detailed Description

template<class T>
class wex::to_container< T >

Offers a class to keep several objects into a templatized container.

Constructor & Destructor Documentation

◆ to_container() [1/3]

template<class T >
wex::to_container< T >::to_container ( const wxFileDialog & in)
inlineexplicit

Constructor, using file dialog.

Fills the container with the full paths of the files chosen.

◆ to_container() [2/3]

template<class T >
wex::to_container< T >::to_container ( const wxGenericDirCtrl & in)
inlineexplicit

Constructor, using generic dirctrl.

Fills the container with the currently-selected directory or filename.

◆ to_container() [3/3]

template<class T >
wex::to_container< T >::to_container ( const std::string & in,
const std::string & delims = " \t\r\n" )
inlineexplicit

Constructor, using string, each word results in a container element.

Parameters
instring containing elements
delimsdelimiter for elements