2015-12-06 11:06:28 +00:00
|
|
|
|
|
|
|
#include "category.hpp"
|
|
|
|
|
2015-12-08 08:56:42 +00:00
|
|
|
CSMPrefs::Category::Category (State *parent, const std::string& key)
|
|
|
|
: mParent (parent), mKey (key)
|
2015-12-06 11:06:28 +00:00
|
|
|
{}
|
|
|
|
|
|
|
|
const std::string& CSMPrefs::Category::getKey() const
|
|
|
|
{
|
|
|
|
return mKey;
|
|
|
|
}
|
2015-12-08 16:21:58 +00:00
|
|
|
|
|
|
|
CSMPrefs::State *CSMPrefs::Category::getState() const
|
|
|
|
{
|
|
|
|
return mParent;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CSMPrefs::Category::addSetting (Setting *setting)
|
|
|
|
{
|
|
|
|
mSettings.push_back (setting);
|
|
|
|
}
|
|
|
|
|
|
|
|
CSMPrefs::Category::Iterator CSMPrefs::Category::begin()
|
|
|
|
{
|
|
|
|
return mSettings.begin();
|
|
|
|
}
|
|
|
|
|
|
|
|
CSMPrefs::Category::Iterator CSMPrefs::Category::end()
|
|
|
|
{
|
|
|
|
return mSettings.end();
|
|
|
|
}
|