property.h
1.34 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
/***************************************************************************
* 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 Nov 28 14:05:39 BRT 2013 *
* *
**************************************************************************/
#ifndef PROPERTYHANDLER_H
#define PROPERTYHANDLER_H
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <string.h>
#include <exception>
#include <fstream>
#define MAX_BUFFER 1024
namespace util {
class PropertyHandler {
public:
PropertyHandler(std::string _filename);
virtual ~PropertyHandler();
std::string getAttributeValue(std::string attr);
private:
std::string filename;
int checkFileExtension(std::string &filename);
};
}
#endif /* PROPERTYHANDLER_H */