Qualifiers.hpp
787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* File: Qualifiers.hpp
* Author: lennyn
*
* Created on April 4, 2014, 6:19 PM
*/
#ifndef QUALIFIERS_HPP
#define QUALIFIERS_HPP
#include <vector>
#include <string>
#include <stdint.h>
namespace morfeusz {
/**
* Helper class used for decoding qualifiers set number into a vector of strings.
*
* @param ptr
*/
class Qualifiers {
public:
explicit Qualifiers(const unsigned char* ptr);
/**
* Returns vector of qualifiers represented as strings.
* @param n - the index in qualifiers tab.
* @return - vector of qualifiers represented as strings.
*/
const std::vector<std::string>& getQualifiers(int n) const;
virtual ~Qualifiers();
private:
std::vector< std::vector<std::string> > qualifiers;
};
}
#endif /* QUALIFIERS_HPP */