Cfg: add missing get() methods

This commit is contained in:
Nekotekina 2018-05-04 23:48:05 +03:00
parent 8f91917e8c
commit 88dc6b7700
1 changed files with 15 additions and 0 deletions

View File

@ -132,6 +132,11 @@ namespace cfg
return m_value;
}
bool get() const
{
return m_value;
}
void from_default() override;
std::string to_string() const override
@ -178,6 +183,11 @@ namespace cfg
return m_value;
}
T get() const
{
return m_value;
}
void from_default() override
{
m_value = def;
@ -236,6 +246,11 @@ namespace cfg
return m_value;
}
int_type get() const
{
return m_value;
}
void from_default() override
{
m_value = def;