mirror of
https://github.com/Marat-Tanalin/bsnes-mt.git
synced 2025-04-02 10:21:42 -04:00
20 lines
446 B
C++
20 lines
446 B
C++
#if defined(Hiro_Attribute)
|
|
struct Attribute {
|
|
using type = Attribute;
|
|
|
|
Attribute(const string& name, const any& value = {});
|
|
|
|
auto operator==(const Attribute& source) const -> bool;
|
|
auto operator< (const Attribute& source) const -> bool;
|
|
|
|
auto name() const -> string;
|
|
auto setValue(const any& value = {}) -> type&;
|
|
auto value() const -> any&;
|
|
|
|
private:
|
|
struct State {
|
|
string name;
|
|
mutable any value;
|
|
} state;
|
|
};
|
|
#endif
|