VISH  0.2
Public Member Functions
Wizt::StringSelection Class Reference

A list of strings with one of them selected. More...

#include </home/werner/origo/vish/ocean/shrimp/VStringList.hpp>

List of all members.

Public Member Functions


Detailed Description

A list of strings with one of them selected.

Note that the selected string persists even when the respective entry in the list has been removed. This behavior might be changed in the future.

Examples:

ComputeGridStreamLines.cpp, and ComputeMultiStreamLines.cpp.


Member Function Documentation

bool Wizt::StringSelection::select ( const string what)

Select a specific entry of the string list.

The selection is only accepted if found in the string list, otherwise false is returned.

bool Wizt::StringSelection::tryselect ( const string what)

A variation of the select() function, which selects the first entry of the string list if the specified string is not part of the list.

Todo:
A future version might actually select the string which is most similar to those existing in the list, or accept a regular expression here for maximum match.
Returns:
false if no selection could be made at all, which means the stringlist is just empty.

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