52 explicit CStringList(
const std::deque<std::string>& lines) : m_strings(lines) { }
57 std::copy(lines.begin(),lines.end(),std::back_inserter(m_strings));
88 void remove(
size_t index);
96 bool caseSensitive =
true)
const;
133 void saveToFile(
const std::string &fileName)
const;
CStringList(const std::vector< std::string > &lines)
Explicit constructor from vector<string>
The virtual base class which provides a unified interface for all persistent objects in MRPT...
std::string getText() const
Returns the whole string list as a single string with ' ' characters for newlines.
const_iterator find(const KEY &key) const
void clear()
Clear the contents of this container.
A class for storing a list of text lines.
#define DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE(class_name, base_name)
This declaration must be inserted in all CSerializable classes definition, before the class declarati...
CStream BASE_IMPEXP & operator<<(mrpt::utils::CStream &s, const char *a)
GLsizei const GLchar ** string
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE(class_name, base_name)
GLsizei const GLfloat * value
std::deque< std::string > m_strings
The internal list of strings.
CStringList(const std::deque< std::string > &lines)
Explicit constructor from deque<string>