Input: move some pad handler logic to the parent class

This commit is contained in:
Megamouse 2019-09-20 16:28:55 +02:00
parent 8f47f9517a
commit 4594148409
19 changed files with 1574 additions and 1602 deletions

View file

@ -298,6 +298,7 @@ namespace cfg
// Simple string entry with mutex
class string final : public _base
{
std::string m_name;
std::string m_value;
public:
@ -305,6 +306,7 @@ namespace cfg
string(node* owner, const std::string& name, const std::string& def = {})
: _base(type::string, owner, name)
, m_name(name)
, m_value(def)
, def(def)
{
@ -320,6 +322,11 @@ namespace cfg
return m_value;
}
std::string get_name() const
{
return m_name;
}
std::size_t size() const
{
return m_value.size();