0.07.10
C++ Open Travel Request Parsing Library
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
13
#include <
opentrep/OPENTREP_Types.hpp
>
14
#include <
opentrep/bom/BomAbstract.hpp
>
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
BomAbstract.hpp
OPENTREP_Types.hpp
OPENTREP::BomAbstract
Base class for the Business Object Model (BOM) layer.
Definition:
BomAbstract.hpp:17
OPENTREP::Levenshtein
Definition:
Levenshtein.hpp:20
OPENTREP::Levenshtein::getDistance
static int getDistance(const std::string &iSource, const std::string &iTarget)
Definition:
Levenshtein.cpp:13
OPENTREP
Definition:
BasChronometer.cpp:10
Generated on Sun Nov 14 2021 00:00:00 for OpenTREP by
1.9.1