A base class for other classes that store ObjectSettingSet's. More...
#include <objectsettings.h>
Public Types | |
typedef SubSetVector::const_iterator | ConstSubSetIterator |
Const Iterator type for ObjectSettingSet instances stored by this class. | |
typedef SubSetVector::iterator | SubSetIterator |
Iterator type for ObjectSettingSet instances stored by this class. | |
typedef std::vector < ObjectSettingSet * > | SubSetVector |
Basic container type for ObjectSettingSet storage by this class. | |
Public Member Functions | |
ObjectSettingSetContainer (const String &Name) | |
Class constructor. More... | |
virtual | ~ObjectSettingSetContainer () |
Class destructor. | |
virtual void | _MarkUpdated ()=0 |
Marks this container and relevant parent containers as updated. More... | |
virtual void | AddChildObjectSettingSet (ObjectSettingSet *ToBeAdded) |
Adds a SettingSet as a child of this container. More... | |
virtual ObjectSettingSet * | CreateChildObjectSettingSet (const String &Name) |
Creates a new SettingSet as a child of this container. More... | |
void | DestroyAllObjectSettingSets () |
Destroys all child Sub-Sets of this container. | |
void | DestroyChildObjectSettingSet (const String &Name) |
Destroys a Sub-Set of this container. More... | |
ObjectSettingSet * | GetChildObjectSettingSet (const String &Name, UInt16 Which=0) const |
Gets a Sub-Set of this container by name. More... | |
ObjectSettingSet * | GetChildObjectSettingSet (const Whole &Index) const |
Gets a Sub-Set of this container by index. More... | |
ConstString & | GetName () const |
Gets the name of this container. More... | |
virtual void | RemoveChildObjectSettingSet (ObjectSettingSet *ToBeRemoved) |
Removes a Sub-Set of this container. More... | |
void | SetName (const String &Name) |
Sets the name of this container. More... | |
SubSetIterator | SubSetBegin () |
Gets an iterator to the first subset of settings in this set. | |
ConstSubSetIterator | SubSetBegin () const |
Gets a const iterator to the first subset of settings in this set. | |
SubSetIterator | SubSetEnd () |
Gets an iterator to one passed the last subset of settings in this set. | |
ConstSubSetIterator | SubSetEnd () const |
Gets a const iterator to one passed the last subset of settings in this set. | |
Protected Attributes | |
String | ContainerName |
The name of this container. More... | |
SubSetVector | SubSets |
A container of ObjectSettingSet instances owned by this container. More... | |
A base class for other classes that store ObjectSettingSet's.
Definition at line 64 of file objectsettings.h.
Mezzanine::ObjectSettingSetContainer::ObjectSettingSetContainer | ( | const String & | Name) |
Class constructor.
Name | The name of this container. |
Definition at line 53 of file objectsettings.cpp.
|
pure virtual |
Marks this container and relevant parent containers as updated.
Implemented in Mezzanine::ObjectSettingGroup, and Mezzanine::ObjectSettingSet.
|
virtual |
Adds a SettingSet as a child of this container.
ToBeAdded | Pointer to the SettingSet to be added. |
Definition at line 80 of file objectsettings.cpp.
|
virtual |
Creates a new SettingSet as a child of this container.
Name | The name of the new set to be created. |
Definition at line 72 of file objectsettings.cpp.
void Mezzanine::ObjectSettingSetContainer::DestroyChildObjectSettingSet | ( | const String & | Name) |
Destroys a Sub-Set of this container.
Name | The name of the Sub-Set to be destroyed. |
Definition at line 117 of file objectsettings.cpp.
ObjectSettingSet * Mezzanine::ObjectSettingSetContainer::GetChildObjectSettingSet | ( | const String & | Name, |
UInt16 | Which = 0 |
||
) | const |
Gets a Sub-Set of this container by name.
Name | The name of the desired Sub-Set. |
Which | Which named SettingSet to get. 0 for the first, 1 for the second, and so on. |
Definition at line 87 of file objectsettings.cpp.
ObjectSettingSet * Mezzanine::ObjectSettingSetContainer::GetChildObjectSettingSet | ( | const Whole & | Index) | const |
Gets a Sub-Set of this container by index.
Index | The index of the Sub-Set to get. |
Definition at line 99 of file objectsettings.cpp.
ConstString & Mezzanine::ObjectSettingSetContainer::GetName | ( | ) | const |
Gets the name of this container.
Definition at line 66 of file objectsettings.cpp.
|
virtual |
Removes a Sub-Set of this container.
ToBeRemoved | The Sub-Set to be removed. |
Definition at line 104 of file objectsettings.cpp.
void Mezzanine::ObjectSettingSetContainer::SetName | ( | const String & | Name) |
Sets the name of this container.
Name | The name to be given to this container. |
Definition at line 63 of file objectsettings.cpp.
|
protected |
The name of this container.
Definition at line 76 of file objectsettings.h.
|
protected |
A container of ObjectSettingSet instances owned by this container.
Definition at line 79 of file objectsettings.h.