|
| CsvFile () |
| Default constructor. More...
|
|
virtual | ~CsvFile () |
| destructor More...
|
|
| CsvFile (const String &filename, char is= ',', bool ie=false, Int first_n=-1) |
| Constructor with filename. More...
|
|
void | fload (const String &filename, char is= ',', bool ie=false, Int first_n=-1) |
| Loads data from a text file. More...
|
|
bool | getRow (Size row, StringList &list) |
| writes all items from a row to list More...
|
|
| TextFile () |
| Default constructor. More...
|
|
virtual | ~TextFile () |
| destructor More...
|
|
| TextFile (const String &filename, bool trim_lines=false, Int first_n=-1) |
| Constructor with filename. More...
|
|
void | load (const String &filename, bool trim_lines=false, Int first_n=-1) |
| Loads data from a text file. More...
|
|
void | store (const String &filename) |
| Writes the data to a file. More...
|
|
template<typename StringType > |
StringList & | operator<< (const StringType &string) |
| Operator for appending entries with less code. More...
|
|
bool | contains (const String &s) const |
| Returns if a string is contained in the list. More...
|
|
void | toUpper () |
| Transforms all contained strings to upper case. More...
|
|
void | toLower () |
| Transforms all contained strings to lower case. More...
|
|
String | concatenate (const String &glue="") const |
| Concatenate the string elements and putting the glue string between elements. More...
|
|
| StringList () |
| Default constructor. More...
|
|
| StringList (const StringList &rhs) |
| Copy constructor. More...
|
|
| StringList (const std::vector< String > &rhs) |
| Constructor from vector<String> More...
|
|
| StringList (const std::vector< std::string > &rhs) |
| Constructor from vector<string> More...
|
|
| StringList (const QStringList &rhs) |
| Constructor from QStringList. More...
|
|
StringList & | operator= (const StringList &rhs) |
| Assignment operator. More...
|
|
StringList & | operator= (const std::vector< String > &rhs) |
| Assignment operator from vector<String> More...
|
|
StringList & | operator= (const std::vector< std::string > &rhs) |
| Assignment operator vector<string> More...
|
|
Iterator | search (const Iterator &start, const String &text, bool trim=false) |
| Searches for the first line that starts with text beginning at line start . More...
|
|
Iterator | search (const String &text, bool trim=false) |
| Searches for the first line that starts with text . More...
|
|
Iterator | searchSuffix (const Iterator &start, const String &text, bool trim=false) |
| Searches for the first line that ends with text beginning at line start . More...
|
|
Iterator | searchSuffix (const String &text, bool trim=false) |
| Searches for the first line that ends with text . More...
|
|
ConstIterator | search (const ConstIterator &start, const String &text, bool trim=false) const |
| Searches for the first line that starts with text beginning at line start . More...
|
|
ConstIterator | search (const String &text, bool trim=false) const |
| Searches for the first line that starts with text . More...
|
|
ConstIterator | searchSuffix (const ConstIterator &start, const String &text, bool trim=false) const |
| Searches for the first line that ends with text beginning at line start . More...
|
|
ConstIterator | searchSuffix (const String &text, bool trim=false) const |
| Searches for the first line that ends with text . More...
|
|
This class handles csv files. Currently only loading is implemented.
- Note
- items are allowed to be enclosed by only one character e.g. "item" where " is enclosing character