readXml.h 878 Bytes
/* 
 * File:   lerXml.h
 * Author: felipe
 *
 * Created on 29 de Março de 2010, 15:52
 */

#ifndef _LERXML_H
#define	_LERXML_H

#include <string>
#include "jxmlparser.h"

using namespace std;
using namespace jcommon;

class ReadXml {
private:
    string pid, resolucao, DPH, DPV, DFW, DFH, versao, pidCC, porta, tipo, portaOut, ip;
    XmlDocument doc;
    bool regrasCarregadas;
    XmlElement *inicioRegraAtual;
    int profundidadeRegraAtual;
    int contZerado;
    vector < XmlElement * > *rulesAtual;

public:
    ReadXml();
    virtual ~ReadXml();

    int getPid();
    int getDPH();
    int getDPV();
    int getDFW();
    int getDFH();
    int getVersao();
    int getPidCC();
    string getTipo();
    int getPorta();
    string getResolucao();
    int getPortaOut();
    string getIp();

    void Leitura();
	int setProfundidade(int p);
};

#endif	/* _LERXML_H */