property.h 1.34 KB
/***************************************************************************
 *   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 */