5 #ifndef BALL_FORMAT_LINEBASEDFILE_H
6 #define BALL_FORMAT_LINEBASEDFILE_H
8 #ifndef BALL_SYSTEM_FILE_H
77 const String& getLine()
const;
97 bool skipLines(
Size number = 1);
105 bool search(
const String& text,
bool return_to_start =
false);
110 bool search(
const String& text,
const String& stop,
bool return_to_start =
false);
116 bool gotoLine(
Position line_number);
135 void test(
const char* file,
int line,
bool condition,
const String& msg)
const;
145 bool startsWith(
const String& text)
const;
148 bool has(
const String& text)
const;
153 Index switchString(
const std::vector<String>& data)
const;
159 bool parseColumnFormat(
const char* format,
Position index,
Size length,
void* arg);
162 void enableTrimWhitespaces(
bool state);
165 bool trimWhiteSpacesEnabled()
const;
187 # ifndef BALL_NO_INLINE_FUNCTIONS
188 # include <BALL/FORMAT/lineBasedFile.iC>
192 #endif // BALL_FORMAT_LINEBASEDFILE_H
String line_
buffer for the line in use
Position line_number_
line number in the file
vector< char > col_buffer_
buffer for column parsing
std::ios::openmode OpenMode
BALL_EXPORT bool operator!=(const String &s1, const String &s2)
static const char * CHARACTER_CLASS__WHITESPACE
BALL_EXPORT bool operator==(const String &s1, const String &s2)