13#ifndef ML_STRING_LINE_MULTI_FIELD_H
14#define ML_STRING_LINE_MULTI_FIELD_H
Field to represent a dynamic vector of DATATYPE values.
The field class StringLineMultiField which manages a vector of std::string lines typically separated ...
static const std::string DefaultLineSeparator
The default line separator used for line endings when converting the internal string vector to a stri...
void setStringValue(const std::string &value) override
Same as setStringValue(const std::string &value, char sep) using the "\n" as value for sep; occurrenc...
StringLineMultiField(const std::string &name="")
Constructor. See constructor of MultiField for documentation.
std::string getStringValue(const std::string &sep) const
Returns a string containing the concatenation of all values from the internal vector separated by the...
void setStringValue(const std::string &value, const std::string &sep)
Subdivides value at all positions of sep and stores all values in the internal vector.
void removeElements(const std::string &str=std::string())
Removes all entries equal to str; default is an empty string to remove all empty entries.
std::string getStringValue() const override
Same as getStringValue(StringLineMultiField::DefaultLineSeparator).
void removeSubString(const std::string &str)
Removes the character sequence str from each string element of the internal vector.
ML_CLASS_HEADER(StringLineMultiField)
Macro to implement the interface for the Runtime Type System and for the initialization of this class...
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
std::ostream & operator<<(std::ostream &out, const ml::Variant &variant)
std::istream & operator>>(std::istream &in, ml::Variant &variant)