summaryrefslogtreecommitdiff
path: root/src/Model/Elements/StringElement.cpp
blob: a197c220ddbb0206268faff5aa483d615d3ecd13 (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
#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 *element){
	if(this->m_value.compare(element->m_value) == 0){
		return true;
	}

	return false;
}