Class wrapping utility functions to transform back and forth strings from and into a list of words. More...
#include <opentrep/bom/WordHolder.hpp>
Public Member Functions | |
virtual void | toStream (std::ostream &) const =0 |
virtual void | fromStream (std::istream &)=0 |
virtual std::string | toString () const =0 |
virtual std::string | describeKey () const =0 |
virtual std::string | describeShortKey () const =0 |
Static Public Member Functions | |
static void | tokeniseStringIntoWordList (const TravelQuery_T &, WordList_T &) |
static void | tokeniseDocIntoWordList (const TravelQuery_T &, WordList_T &) |
static std::string | createStringFromWordList (const WordList_T &iWordList) |
Friends | |
class | FacWordHolder |
Class wrapping utility functions to transform back and forth strings from and into a list of words.
Definition at line 17 of file WordHolder.hpp.
|
static |
Tokenise a string into a list of words (STL strings).
The Boost.Tokenizer library is used.
Definition at line 37 of file WordHolder.cpp.
References OPENTREP::AllSepatorList(), and OPENTREP::baseTokeniseStringIntoWordList().
Referenced by OPENTREP::addUnmatchedWord(), OPENTREP::Result::calculateCodeMatches(), and OPENTREP::Result::calculateCombinedWeights().
|
static |
Tokenise a Xapian document data into a list of words (STL strings).
The Boost.Tokenizer library is used.
Definition at line 44 of file WordHolder.cpp.
References OPENTREP::baseTokeniseStringIntoWordList(), and OPENTREP::DocSepatorList().
|
static |
Serialise a list of words (STL strings) into a single (STL) string.
Definition at line 52 of file WordHolder.cpp.
|
pure virtualinherited |
Dump a Business Object into an output stream.
ostream& | the output stream. |
Implemented in OPENTREP::Place, OPENTREP::Result, OPENTREP::ResultCombination, OPENTREP::ResultHolder, OPENTREP::World, and OPENTREP::PlaceHolder.
|
pure virtualinherited |
Read a Business Object from an input stream.
istream& | the input stream. |
Implemented in OPENTREP::Place, OPENTREP::Result, OPENTREP::ResultCombination, OPENTREP::ResultHolder, OPENTREP::World, and OPENTREP::PlaceHolder.
Referenced by operator>>().
|
pure virtualinherited |
Get the serialised version of the Business Object.
Implemented in OPENTREP::Place, OPENTREP::Result, OPENTREP::ResultCombination, OPENTREP::ResultHolder, OPENTREP::World, and OPENTREP::PlaceHolder.
|
pure virtualinherited |
Get a string describing the whole key (differentiating two objects at any level).
Implemented in OPENTREP::Place, OPENTREP::Result, OPENTREP::ResultCombination, OPENTREP::ResultHolder, OPENTREP::PlaceHolder, and OPENTREP::World.
|
pure virtualinherited |
Get a string describing the short key (differentiating two objects at the same level).
Implemented in OPENTREP::Place, OPENTREP::Result, OPENTREP::ResultCombination, OPENTREP::ResultHolder, OPENTREP::PlaceHolder, and OPENTREP::World.
|
friend |
Definition at line 18 of file WordHolder.hpp.