0.08.01
C++ Open Travel Request Parsing Library
Toggle main menu visibility
Loading...
Searching...
No Matches
Filter.hpp
Go to the documentation of this file.
1
#ifndef __OPENTREP_BOM_FILTER_HPP
2
#define __OPENTREP_BOM_FILTER_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// OpenTrep
8
#include <
opentrep/OPENTREP_Types.hpp
>
9
10
namespace
OPENTREP
{
11
21
struct
Filter {
22
public
:
23
// /////////// Business support methods /////////
42
static
void
trim
(std::string& ioPhrase,
const
NbOfLetters_T
& iMinWordLength = 4);
43
64
static
bool
shouldKeep
(
const
std::string& iPhrase,
65
const
std::string& iWord);
66
67
68
private
:
69
// //////////////// Constructors and Destructors /////////////
73
Filter();
74
78
Filter (
const
Filter&);
79
83
~Filter();
84
};
85
86
}
87
#endif
// __OPENTREP_BOM_FILTER_HPP
OPENTREP_Types.hpp
OPENTREP
Definition
BasChronometer.cpp:10
OPENTREP::NbOfLetters_T
unsigned int NbOfLetters_T
Definition
OPENTREP_Types.hpp:705
OPENTREP::Filter::trim
static void trim(std::string &ioPhrase, const NbOfLetters_T &iMinWordLength=4)
Definition
Filter.cpp:131
OPENTREP::Filter::shouldKeep
static bool shouldKeep(const std::string &iPhrase, const std::string &iWord)
Definition
Filter.cpp:144
Generated on
for OpenTREP by
1.17.0