-
Notifications
You must be signed in to change notification settings - Fork 0
/
xmlfilter.cpp
55 lines (42 loc) · 1.21 KB
/
xmlfilter.cpp
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
54
55
#include "xmlfilter.h"
XmlFilter::XmlFilter()
{
}
XmlFilter::XmlFilter(QString elementName, QString parentElementName, QString attributeName, QString attributeValue){
this->elementName=elementName;
this->parentElementName=parentElementName;
this->attributeName=attributeName;
this->attributeValue=attributeValue;
}
// QStrings
QString XmlFilter::getElementName(){
return this->elementName;
}
QString XmlFilter::getParentElementName(){
return this->parentElementName;
}
QString XmlFilter::getAttributeName(){
return this->attributeName;
}
QString XmlFilter::getAttributeValue(){
return this->attributeValue;
}
void XmlFilter::setElementName(QString elementName){
this->elementName=elementName;
}
void XmlFilter::setParentElementName(QString parentElementName){
this->parentElementName=parentElementName;
}
void XmlFilter::setAttributeName(QString attributeName){
this->attributeName=attributeName;
}
void XmlFilter::setAttributeValue(QString attributeValue){
this->attributeValue=attributeValue;
}
// Clears filter
void XmlFilter::clear(){
this->elementName.clear();
this->parentElementName.clear();
this->attributeName.clear();
this->attributeValue.clear();
}