![]() |
NDEVR
API Documentation
|
Logic for reading or writing to a string or a user friendly, TranslatedString. More...
Static Public Member Functions | |
| static void | fromString (const StringView &string, t_type &value) |
| Logic for converting an object from an NDEVR API String allowing it to be used automatically with getAs<>(), Files, GenericOptions, and various other data structures. | |
| static const char * | getValidRegex () |
| Optionally specified to allow the software to do a check on user or file input to ensure that fromString will return a valid result or to limit user live input. | |
| static void | toDisplayString (const t_type &value, TranslatedString &string) |
| Logic for converting an object to an NDEVR API translated, user facing string. | |
| static void | toString (const t_type &value, StringAllocatingView &string) |
| Logic for converting an object to an NDEVR API String allowing it to be used automatically with the String constructor, GenericOptions, Scanners, and various other data structures. | |
Logic for reading or writing to a string or a user friendly, TranslatedString.
For example, to implement a given class or enum so that it can be cast to and from a string, or as a displayed to the end-user, you might add something similar to a CPP file.
Example Code For automatic conversion from another string class:
Example Code For automatic conversion from a non-trivial structure
Example code for auomatic conversion to enums:
Definition at line 253 of file StringStream.h.
|
static |
Logic for converting an object from an NDEVR API String allowing it to be used automatically with getAs<>(), Files, GenericOptions, and various other data structures.
Referenced by StringStream< Bounds< t_dims, t_type > >::fromString(), StringStream< Buffer< t_type, t_memory_manager > >::fromString(), StringStream< Matrix< t_type, t_row_dims, t_col_dims > >::fromString(), StringStream< Ray< t_dims, t_type, t_vector_type > >::fromString(), StringStream< Vector< t_dims, t_type > >::fromString(), StringStream< Vertex< t_dims, t_type, t_vector_type > >::fromString(), and StringView::getAs().
|
static |
Optionally specified to allow the software to do a check on user or file input to ensure that fromString will return a valid result or to limit user live input.
Referenced by StringValidator::regex(), and QCustomLineEdit::setup().
|
static |
Logic for converting an object to an NDEVR API translated, user facing string.
This allows the object to be shown in a unique way to a user. If not overwritten, will default to the value returned from toString
Referenced by String::DisplayString().
|
static |
Logic for converting an object to an NDEVR API String allowing it to be used automatically with the String constructor, GenericOptions, Scanners, and various other data structures.
Referenced by String::String(), String::append(), StringStream< Bounds< t_dims, t_type > >::toString(), StringStream< Buffer< t_type, t_memory_manager > >::toString(), StringStream< Matrix< t_type, t_row_dims, t_col_dims > >::toString(), StringStream< Ray< t_dims, t_type, t_vector_type > >::toString(), StringStream< Vector< t_dims, t_type > >::toString(), and StringStream< Vertex< t_dims, t_type, t_vector_type > >::toString().