ProteoWizard
Main Page
Namespaces
Classes
Files
File List
File Members
pwiz
data
common
CVTranslator.hpp
Go to the documentation of this file.
1
//
2
// $Id: CVTranslator.hpp 1656 2009-12-30 20:54:17Z chambm $
3
//
4
//
5
// Original author: Darren Kessner <darren@proteowizard.org>
6
//
7
// Copyright 2008 Spielberg Family Center for Applied Proteomics
8
// Cedars-Sinai Medical Center, Los Angeles, California 90048
9
//
10
// Licensed under the Apache License, Version 2.0 (the "License");
11
// you may not use this file except in compliance with the License.
12
// You may obtain a copy of the License at
13
//
14
// http://www.apache.org/licenses/LICENSE-2.0
15
//
16
// Unless required by applicable law or agreed to in writing, software
17
// distributed under the License is distributed on an "AS IS" BASIS,
18
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
// See the License for the specific language governing permissions and
20
// limitations under the License.
21
//
22
//
23
24
25
#ifndef _CVTRANSLATOR_HPP_
26
#define _CVTRANSLATOR_HPP_
27
28
29
#include "
pwiz/utility/misc/Export.hpp
"
30
#include "
cv.hpp
"
31
#include "boost/shared_ptr.hpp"
32
33
34
namespace
pwiz {
35
namespace
data {
36
37
38
/// translates text to CV terms
39
class
PWIZ_API_DECL
CVTranslator
40
{
41
public
:
42
43
/// constructor -- dictionary includes all
44
/// CV term names and exact_synonyms
45
CVTranslator
();
46
47
/// insert a text-cvid pair into the dictionary
48
void
insert(
const
std::string& text, cv::CVID cvid);
49
50
/// translate text -> CVID
51
cv::CVID
translate
(
const
std::string& text)
const
;
52
53
private
:
54
class
Impl;
55
boost::shared_ptr<Impl>
impl_
;
56
CVTranslator
(
CVTranslator
&);
57
CVTranslator
& operator=(
CVTranslator
&);
58
};
59
60
61
}
// namespace data
62
}
// namespace pwiz
63
64
65
#endif // _CVTRANSLATOR_HPP_
66
Generated on Mon Nov 26 2012 18:05:47 for ProteoWizard by
1.8.1.1