OpenTREP Logo  0.6.0
C++ Open Travel Request Parsing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Levenshtein.hpp
Go to the documentation of this file.
1 //
2 // Levenshtein Distance Algorithm: C++ Implementation by Anders Sewerin Johansen
3 //
4 #ifndef __OPENTREP_BOM_LEVENSHTEIN_HPP
5 #define __OPENTREP_BOM_LEVENSHTEIN_HPP
6 
7 // //////////////////////////////////////////////////////////////////////
8 // Import section
9 // //////////////////////////////////////////////////////////////////////
10 // STL
11 #include <string>
12 // OpenTREP
15 
16 namespace OPENTREP {
17 
20  class Levenshtein : public BomAbstract {
21  public:
23  static int getDistance (const std::string& iSource,
24  const std::string& iTarget);
25  };
26 
27 }
28 #endif // __OPENTREP_BOM_LEVENSHTEIN_HPP
static int getDistance(const std::string &iSource, const std::string &iTarget)
Definition: Levenshtein.cpp:13
Base class for the Business Object Model (BOM) layer.
Definition: BomAbstract.hpp:17