inputFile.h
804 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
41
42
43
44
45
/*
* File: fileInput.h
* Author: leonardo
*
* Created on 6 de Janeiro de 2012, 11:11
*/
#ifndef INPUTFILE_H
#define INPUTFILE_H
#include <fstream>
#include <string.h>
#include "logger.h"
#include "ouvinteInput.h"
#include "inputException.h"
#include "dprintf.h"
using namespace std;
class InputFile {
public:
static const int MAX_SIZE_PACKET = 188;
bool finished;
InputFile(char* path);
~InputFile();
void initialize();
void registraOuvinte(OuvinteInput *ouvinte);
void removeOuvinte(OuvinteInput *ouvinte);
void notificaOuvintes(unsigned char * pacote);
bool isFinished();
//void notificaQuantidadeGlosas(int quantidade);
private:
char * path;
list<OuvinteInput*> *ouvintes;
};
#endif /* INPUTFILE_H */