inputFile.h
828 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
46
/*
* File: fileInput.h
* Author: leonardo
*
* Created on 6 de Janeiro de 2012, 11:11
*/
#ifndef INPUTFILE_H
#define INPUTFILE_H
#include <stdio.h>
#include <list>
#include <stdlib.h>
#include <fstream>
#include <string.h>
#include "logging.h"
#include "listenerInput.h"
#include "inputException.h"
#define MAX_SIZE_PACKET 188
using namespace std;
using namespace util;
class InputFile {
public:
InputFile(char* path);
~InputFile();
void initialize();
void addListener(ListenerInput* listener);
void removeListener(ListenerInput* listener);
void notifyListeners(unsigned char* pack);
bool isFinished();
//void notificaQuantidadeGlosas(int quantidade);
private:
list<ListenerInput*> *listeners;
char *path;
bool finish;
};
#endif /* INPUTFILE_H */