#include <file.h>
Public Types | |
enum | { StrictQuote = 0, WarnQuote = 1, AcceptQuote = 2 } |
Public Member Functions | |
File () | |
~File () | |
void | readFromFile (const std::string &fileName, int options=StrictQuote) throw (xdkbib::parsing_error) |
const std::vector< std::vector< ValuePart > > & | preambleComponents () const |
const std::vector< FileEntry > & | entries () const |
const std::map< std::string, std::vector< ValuePart > > & | strings () const |
std::string | preamble () const |
std::string | stringText (const std::string &s, bool nothrow=true) const throw (std::range_error) |
const std::string & | comment () const |
void | setComment (const std::string &) |
void | clearPreamble () |
File & | addToPreamble (const ValuePart &p, bool newline=true) |
FileEntry * | addEntry (const Entry &e) |
void | clearEntries () |
template<class O> | |
void | defineString (const std::string &s, O first, const O &last) |
File & | addToString (const std::string &s, const ValuePart &p) |
void | clearStrings () |
File | ( | ) |
~File | ( | ) |
void readFromFile | ( | const std::string & | fileName, | |
int | options = StrictQuote | |||
) | throw (xdkbib::parsing_error) |
const vector< vector< ValuePart > > & preambleComponents | ( | ) | const |
const vector< FileEntry > & entries | ( | ) | const |
const map< string, vector< ValuePart > > & strings | ( | ) | const |
string preamble | ( | ) | const |
std::string stringText | ( | const std::string & | s, | |
bool | nothrow = true | |||
) | const throw (std::range_error) |
const string & comment | ( | ) | const |
void setComment | ( | const std::string & | ) |
void clearPreamble | ( | ) |
void clearEntries | ( | ) |
void defineString | ( | const std::string & | s, | |
O | first, | |||
const O & | last | |||
) |
void clearStrings | ( | ) |