0.6.0
C++ Open Travel Request Parsing Library
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
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
OPENTREP_Types.hpp
OPENTREP::Levenshtein::getDistance
static int getDistance(const std::string &iSource, const std::string &iTarget)
Definition:
Levenshtein.cpp:13
BomAbstract.hpp
OPENTREP::BomAbstract
Base class for the Business Object Model (BOM) layer.
Definition:
BomAbstract.hpp:17
OPENTREP::Levenshtein
Definition:
Levenshtein.hpp:20
Generated on Mon Feb 3 2014 14:17:07 for OpenTREP by
1.8.6