Blame view

morfeusz/c_api/ResultsManager.hpp 720 Bytes
Michał Lenart authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* 
 * File:   ResultsManager.hpp
 * Author: mlenart
 *
 * Created on 24 czerwiec 2014, 17:09
 */

#ifndef RESULTSMANAGER_HPP
#define	RESULTSMANAGER_HPP

#include <vector>
#include "morfeusz2.h"
#include "morfeusz2_c.h"

namespace morfeusz {

    class ResultsManager {
    public:
Michał Lenart authored
19
        ResultsManager(const Morfeusz* morfeusz);
Michał Lenart authored
20
21
22
        InterpMorf* convertResults(const std::vector<MorphInterpretation>& res);
        virtual ~ResultsManager();
    private:
Michał Lenart authored
23
        const Morfeusz* morfeusz;
Michał Lenart authored
24
25
26
27
28
29
30
31
32
33
34
        InterpMorf* results;
        unsigned int resultsArraySize;

        void reserve(size_t size);
        InterpMorf convertOneResult(const MorphInterpretation& res);
    };

}

#endif	/* RESULTSMANAGER_HPP */