File Class Reference

#include <file.h>

List of all members.

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 ()
FileaddToPreamble (const ValuePart &p, bool newline=true)
FileEntryaddEntry (const Entry &e)
void clearEntries ()
template<class O>
void defineString (const std::string &s, O first, const O &last)
FileaddToString (const std::string &s, const ValuePart &p)
void clearStrings ()


Member Enumeration Documentation

anonymous enum

Enumerator:
StrictQuote 
WarnQuote 
AcceptQuote 


Constructor & Destructor Documentation

File (  ) 

~File (  ) 


Member Function Documentation

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 (  ) 

File & addToPreamble ( const ValuePart p,
bool  newline = true 
)

FileEntry * addEntry ( const Entry e  ) 

void clearEntries (  ) 

void defineString ( const std::string &  s,
first,
const O &  last 
)

File& addToString ( const std::string &  s,
const ValuePart p 
)

void clearStrings (  ) 


Generated on Wed Jan 24 01:14:43 2007 for XDKBIBTEX by  doxygen 1.5.1