#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); }