blob: fbf57c13ea32702b786ddf31244c4380d6836ce7 (
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
44
45
46
47
|
#include "./StringElement.hpp"
StringElement::StringElement(){
this->m_value="";
}
StringElement::~StringElement(){
}
std::string StringElement::getValue(){
return this->m_value;
}
void StringElement::setValue(std::string value){
this->m_value=value;
}
std::string StringElement::description(){
if(this->m_value==""){
return " ";
}
return this->m_value;
}
bool StringElement::isEmpty(){
if(this->m_value==""){
return true;
}
return false;
}
bool StringElement::equals(StringElement const& element) const{
if(this->m_value.compare(element.m_value) == 0){
return true;
}
return true;
}
bool operator==(StringElement const& a, StringElement const& b){
return a.equals(b);
}
|