user settings categories
parent
36ce8f97d7
commit
b37a2ac09c
@ -0,0 +1,16 @@
|
||||
|
||||
#include "category.hpp"
|
||||
|
||||
CSMPrefs::Category::Category (State *parent, const std::string& key, const std::string& name)
|
||||
: mParent (parent), mKey (key), mName (name)
|
||||
{}
|
||||
|
||||
const std::string& CSMPrefs::Category::getKey() const
|
||||
{
|
||||
return mKey;
|
||||
}
|
||||
|
||||
const std::string& CSMPrefs::Category::getName() const
|
||||
{
|
||||
return mName;
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
#ifndef CSV_PREFS_CATEGORY_H
|
||||
#define CSM_PREFS_CATEGORY_H
|
||||
|
||||
#include <iostream>
|
||||
|
||||
namespace CSMPrefs
|
||||
{
|
||||
class State;
|
||||
|
||||
class Category
|
||||
{
|
||||
State *mParent;
|
||||
std::string mKey;
|
||||
std::string mName;
|
||||
|
||||
public:
|
||||
|
||||
Category (State *parent, const std::string& key, const std::string& name);
|
||||
|
||||
const std::string& getKey() const;
|
||||
|
||||
const std::string& getName() const;
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue