ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/XmlTools2/trunk/xmlfilter.cpp
Revision: 906
Committed: Sat Feb 1 14:27:58 2014 UTC (11 years, 10 months ago) by s10k
Content type: text/x-c++src
File size: 1104 byte(s)
Log Message:

File Contents

# Content
1 #include "xmlfilter.h"
2
3 XmlFilter::XmlFilter()
4 {
5
6 }
7
8 XmlFilter::XmlFilter(QString elementName, QString parentElementName, QString attributeName, QString attributeValue){
9 this->elementName=elementName;
10 this->parentElementName=parentElementName;
11 this->attributeName=attributeName;
12 this->attributeValue=attributeValue;
13 }
14
15 // QStrings
16
17 QString XmlFilter::getElementName(){
18 return this->elementName;
19 }
20
21 QString XmlFilter::getParentElementName(){
22 return this->parentElementName;
23 }
24
25 QString XmlFilter::getAttributeName(){
26 return this->attributeName;
27 }
28
29 QString XmlFilter::getAttributeValue(){
30 return this->attributeValue;
31 }
32
33 void XmlFilter::setElementName(QString elementName){
34 this->elementName=elementName;
35 }
36
37 void XmlFilter::setParentElementName(QString parentElementName){
38 this->parentElementName=parentElementName;
39 }
40
41 void XmlFilter::setAttributeName(QString attributeName){
42 this->attributeName=attributeName;
43 }
44
45 void XmlFilter::setAttributeValue(QString attributeValue){
46 this->attributeValue=attributeValue;
47 }