2016-07-05 11:01:22 +08:00
|
|
|
#include "storage/model/properties/string.hpp"
|
|
|
|
|
2016-09-05 17:02:48 +08:00
|
|
|
const Type String::type = Type(Flags::String);
|
2016-07-05 11:01:22 +08:00
|
|
|
|
2016-09-05 17:02:48 +08:00
|
|
|
bool String::operator==(const String &other) const
|
2016-07-05 11:01:22 +08:00
|
|
|
{
|
2016-09-05 17:02:48 +08:00
|
|
|
return value() == other.value();
|
2016-07-05 11:01:22 +08:00
|
|
|
}
|
|
|
|
|
2016-09-05 17:02:48 +08:00
|
|
|
bool String::operator==(const std::string &other) const
|
2016-07-05 11:01:22 +08:00
|
|
|
{
|
2016-09-05 17:02:48 +08:00
|
|
|
return value() == other;
|
2016-07-05 11:01:22 +08:00
|
|
|
}
|
|
|
|
|
2016-09-05 17:02:48 +08:00
|
|
|
std::ostream &operator<<(std::ostream &stream, const String &prop)
|
2016-07-05 11:01:22 +08:00
|
|
|
{
|
2016-09-05 17:02:48 +08:00
|
|
|
return stream << prop.value();
|
2016-07-05 11:01:22 +08:00
|
|
|
}
|
|
|
|
|
2016-09-05 17:02:48 +08:00
|
|
|
std::ostream &String::print(std::ostream &stream) const
|
2016-07-05 11:01:22 +08:00
|
|
|
{
|
|
|
|
return operator<<(stream, *this);
|
|
|
|
}
|