#include <opentrep/bom/Levenshtein.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 int | getDistance (const std::string &iSource, const std::string &iTarget) |
Class aggregating utilities around the Levenshtein edit distance/error.
Definition at line 20 of file Levenshtein.hpp.
|
static |
Calculate the edit distance between two strings.
Definition at line 13 of file Levenshtein.cpp.
Referenced by OPENTREP::doesMatch().
|
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.