blob: 9d7badec8d2ab281962cf0cd0f083a2b8b966fd9 (
plain)
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
|
#ifndef XMLROWS_H
#define XMLROWS_H
#include <libxml++/nodes/element.h>
#include <boost/intrusive_ptr.hpp>
#include <map>
#include "perRowValues.h"
class XmlRows : public PerRowValues {
public:
typedef std::map<Glib::ustring, Glib::ustring> Values;
typedef std::vector<std::string> Path;
typedef std::map<Path, Glib::ustring> Interests;
XmlRows(const xmlpp::Element * p);
~XmlRows();
void execute(const RowProcessor *) const;
virtual void loadComplete(const CommonObjects *);
virtual void setFilter(const Glib::ustring &);
unsigned int columnCount() const;
const Glib::ustring & getColumnName(unsigned int col) const;
const Glib::ustring & getCurrentValue(const Glib::ustring & id) const;
const Glib::ustring & getCurrentValue(unsigned int col) const;
bool isNull(unsigned int col) const;
bool isNull(const Glib::ustring & id) const;
const Glib::ustring recordRoot;
const Glib::ustring recordTrigger;
const std::string filename;
private:
mutable Values values;
Path root;
Path trigger;
Interests fields;
bool anyInterestingAttributes;
std::vector<Glib::ustring> fieldNames;
};
#endif
|