mirror of https://github.com/bsnes-emu/bsnes.git
30 lines
592 B
C++
30 lines
592 B
C++
|
#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
|