recebeglosa.h
808 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
/*
* File: RecebeGlosa.h
* Author: felipe
*
* Created on 2 de Fevereiro de 2010, 09:43
*/
#ifndef _RECEBEGLOSA_H
#define _RECEBEGLOSA_H
#include <vector>
#include <string>
#include <pthread.h>
#include "codificadormanager.h"
#include "ouvinteTradutor.h"
using namespace std;
namespace Codificador {
class RecebeGlosa : public Tradutor::OuvinteTradutor {
public:
RecebeGlosa(int pd, string rl, int vs, int dh, int dv, int dw, int df, int portOut, string ip);
~RecebeGlosa();
void PreencheVector();
virtual void codifica(std::vector<std::string> * glosas);
private:
CodificadorManager *codificadorManager;
// Mutex para evitar mutiplas chamadas de notificadores
pthread_mutex_t *mutex;
};
}
#endif /* _RECEBEGLOSA_H */