![]() |
C++ Samples
Demonstrates how to create a C++ application using the VideoXpert SDK
|
This helper class prints a collection of options and chose a user defined option. More...
#include <OptionSelector.h>
Public Member Functions | |
OptionSelector () | |
~OptionSelector () | |
void | AddItem (std::string name, T item) |
The given name and item will be added to the collection. More... | |
bool | SelectOption (T *result) |
Prints a collection of options and chose a user defined one. More... | |
Public Attributes | |
bool | ClearScreenAlways |
std::string | Heading |
bool | ShowHeaderFooter |
std::string | OptionSeperator |
bool | RepeatInput |
Private Attributes | |
std::vector< std::string > | _names |
std::vector< T > | _items |
This helper class prints a collection of options and chose a user defined option.
Definition at line 18 of file OptionSelector.h.
CppSamples::Common::OptionSelector< T >::OptionSelector | ( | ) |
Definition at line 49 of file OptionSelector.h.
|
inline |
Definition at line 21 of file OptionSelector.h.
void CppSamples::Common::OptionSelector< T >::AddItem | ( | std::string | name, |
T | item | ||
) |
The given name and item will be added to the collection.
name | String value of an option to be displayed. |
item | The item to be added to the collection. |
Definition at line 63 of file OptionSelector.h.
bool CppSamples::Common::OptionSelector< T >::SelectOption | ( | T * | result | ) |
Prints a collection of options and chose a user defined one.
result | The selected item will be assigned to this pointer. |
Definition at line 74 of file OptionSelector.h.
|
private |
Definition at line 45 of file OptionSelector.h.
|
private |
Definition at line 44 of file OptionSelector.h.
bool CppSamples::Common::OptionSelector< T >::ClearScreenAlways |
Definition at line 37 of file OptionSelector.h.
std::string CppSamples::Common::OptionSelector< T >::Heading |
Definition at line 38 of file OptionSelector.h.
std::string CppSamples::Common::OptionSelector< T >::OptionSeperator |
Definition at line 40 of file OptionSelector.h.
bool CppSamples::Common::OptionSelector< T >::RepeatInput |
Definition at line 41 of file OptionSelector.h.
bool CppSamples::Common::OptionSelector< T >::ShowHeaderFooter |
Definition at line 39 of file OptionSelector.h.