FileParser.h File Reference

Helper routines for text file parsing. More...

#include <vector>
#include <utility>
#include <sstream>
#include <string>
#include <ctype.h>
#include "../common/UnicodeString.h"

Go to the source code of this file.

Namespaces

namespace  hwdet

Functions

bool hwdet::ReadLines (const char *file_name, std::vector< String > &lines)
 Read all lines from the text file.
String hwdet::GetFieldName (const String &line, size_t *ends_at=NULL, const String &end=TXT(":"), const size_t start_at=0)
 Read name of the filed on the current line.
bool hwdet::BeginsWith (const String &str, const String &what)
 Test if one string begins with another.
template<typename T>
bool hwdet::GetFieldValue (const std::string &line, const size_t index, T &result, const size_t start_at=0, const char *delims="\t ")


Detailed Description

Helper routines for text file parsing.

Author:
Branislav Repcek
Date:
11. 12. 2006

Generated on Tue Dec 19 17:43:51 2006 for Detector for Linux by  doxygen 1.4.7