Blame view

morfeusz/Qualifiers.hpp 787 Bytes
Michał Lenart authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* 
 * 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>
Michał Lenart authored
15
16
namespace morfeusz {
Michał Lenart authored
17
18
19
20
21
/**
 * Helper class used for decoding qualifiers set number into a vector of strings.
 * 
 * @param ptr
 */
Michał Lenart authored
22
23
24
class Qualifiers {
public:
    explicit Qualifiers(const unsigned char* ptr);
Michał Lenart authored
25
26
27
28
29
30
31

    /**
     * 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;
Michał Lenart authored
32
33
34
35
36
    virtual ~Qualifiers();
private:
    std::vector< std::vector<std::string> > qualifiers;
};
Michał Lenart authored
37
38
}
Michał Lenart authored
39
40
#endif	/* QUALIFIERS_HPP */