bsnes/hiro/core/property.cpp

30 lines
592 B
C++
Raw Normal View History

#if defined(Hiro_Property)
Property::Property(const string& name, const string& value) {
state.name = name;
state.value = value;
}
auto Property::operator==(const Property& source) const -> bool {
return state.name == source.state.name;
}
auto Property::operator<(const Property& source) const -> bool {
return state.name < source.state.name;
}
auto Property::name() const -> string {
return state.name;
}
auto Property::setValue(const string& value) -> type& {
state.value = value;
return *this;
}
auto Property::value() const -> string {
return state.value;
}
#endif