subtitle.h
1.57 KB
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
47
48
49
50
51
52
53
/***************************************************************************
* Universidade Federal da Paraíba *
* Copyright (C) 2013 by Laboratório de Aplicações de Vídeo Digital *
* *
* Centro de Informática - UFPB - Campus I *
* João Pessoa - PB - Brasil *
* *
* Author: Leonardo de Araújo Domingues (leonardo.araujo@lavid.ufpb.br) *
* Date: Qui Out 24 22:26:35 BRT 2013 *
* *
**************************************************************************/
#ifndef SUBTITLE_H
#define SUBTITLE_H
#define MAX_FIELD 64
#include <string>
#include <stdint.h>
#include <stdio.h>
namespace sndesc {
class Subtitle {
public:
Subtitle();
Subtitle(int _id, std::string _sub_text, int64_t _timein, int64_t _timeout);
~Subtitle();
void setID(int _id);
void setSubtitleText(std::string _subtext);
void setTimeIn(int64_t _timein);
void setTimeOut(int64_t _timeout);
std::string getSubtitleText();
int64_t getTimeIn();
int64_t getTimeOut();
int getID();
void setStatusOfReady(bool status);
bool isReady();
std::string toString();
private:
int id;
std::string subtitle_text;
int64_t time_in;
int64_t time_out;
bool ready;
};
}
#endif // SUBTITLE_H