Text Class Reference

#include <value.h>

List of all members.

Public Member Functions

 Text ()
Textclone () const
Textoperator= (const Text &)
 Text (const Text &)
 ~Text ()
void readFrom (const std::string &t, const std::string &split="") throw (xdkbib::parsing_error)
std::string content (ContentOptions options=Raw) const
bool hasContent (const std::string &s, ContentOptions options=Raw) const
unsigned int nbWords () const
const Wordoperator[] (unsigned int i) const
const std::vector< Word * > & words () const
Wordadd (Word *w=NULL)
void clear ()
void translate (const Dictionary &dict)

Friends

class ::valueparser


Constructor & Destructor Documentation

Text (  ) 

Text ( const Text  ) 

~Text (  ) 

Remarks:
: internally, the text has pointers on words. The destructor frees this pointed words. The correct approach would be to use smart pointers. But in our case, several texts cannot share words through pointers because the class is read-only and the copy operator and copy constructor are disabled (private).


Member Function Documentation

Text * clone (  )  const

Text & operator= ( const Text  ) 

void readFrom ( const std::string &  t,
const std::string &  split = "" 
) throw (xdkbib::parsing_error)

string content ( ContentOptions  options = Raw  )  const

bool hasContent ( const std::string &  s,
ContentOptions  options = Raw 
) const

unsigned int nbWords (  )  const

const Word * operator[] ( unsigned int  i  )  const

const vector< Word * > & words (  )  const

Word * add ( Word w = NULL  ) 

void clear (  ) 

void translate ( const Dictionary dict  ) 


Friends And Related Function Documentation

friend class ::valueparser [friend]


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