Spinning Topp Logo BlackTopp Studios
inc
Public Types | Public Member Functions | Protected Attributes | Friends | List of all members
Mezzanine::ObjectSettingSet Class Reference

A class that store's a named set of settings for an object. More...

#include <objectsettings.h>

+ Inheritance diagram for Mezzanine::ObjectSettingSet:
+ Collaboration diagram for Mezzanine::ObjectSettingSet:

Public Types

typedef SettingsMap::const_iterator ConstSettingsIterator
 Const Iterator type for settings stored by this class.
 
typedef SettingsMap::iterator SettingsIterator
 Iterator type for settings stored by this class.
 
typedef std::map< String, StringSettingsMap
 Basic container type for settings stored as name-value pairs in this class.
 
- Public Types inherited from Mezzanine::ObjectSettingSetContainer
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

 ObjectSettingSet (const String &Name)
 Class constructor. More...
 
virtual ~ObjectSettingSet ()
 Class destructor.
 
void _MarkUpdated ()
 Marks this container and relevant parent containers as updated. More...
 
ObjectSettingSetContainerGetParentSetOrGroup () const
 Gets the Parent SettingsSet to this set. More...
 
String GetSettingValue (const String &SettingName) const
 Gets a String representing the Value currently assigned to the existing setting. More...
 
void SetSettingValue (const String &SettingName, const String &StringValue)
 Sets a setting in this set...of settings. More...
 
SettingsIterator SettingsBegin ()
 Gets an iterator to the first setting in this set.
 
ConstSettingsIterator SettingsBegin () const
 Gets a const iterator to the first setting in this set.
 
SettingsIterator SettingsEnd ()
 Gets an iterator to one passed the last setting in this set.
 
ConstSettingsIterator SettingsEnd () const
 Gets a const iterator to one passed the last setting in this set.
 
- Public Member Functions inherited from Mezzanine::ObjectSettingSetContainer
 ObjectSettingSetContainer (const String &Name)
 Class constructor. More...
 
virtual ~ObjectSettingSetContainer ()
 Class destructor.
 
virtual void AddChildObjectSettingSet (ObjectSettingSet *ToBeAdded)
 Adds a SettingSet as a child of this container. More...
 
virtual ObjectSettingSetCreateChildObjectSettingSet (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...
 
ObjectSettingSetGetChildObjectSettingSet (const String &Name, UInt16 Which=0) const
 Gets a Sub-Set of this container by name. More...
 
ObjectSettingSetGetChildObjectSettingSet (const Whole &Index) const
 Gets a Sub-Set of this container by index. More...
 
ConstStringGetName () 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

ObjectSettingSetContainerParentSetOrGroup
 A pointer to the parent container of this ObjectSettingSet. More...
 
SettingsMap Settings
 A map container storing the settings owned by this set and their values. More...
 
- Protected Attributes inherited from Mezzanine::ObjectSettingSetContainer
String ContainerName
 The name of this container. More...
 
SubSetVector SubSets
 A container of ObjectSettingSet instances owned by this container. More...
 

Friends

class ObjectSettingSetContainer
 

Detailed Description

A class that store's a named set of settings for an object.

Definition at line 154 of file objectsettings.h.

Constructor & Destructor Documentation

Mezzanine::ObjectSettingSet::ObjectSettingSet ( const String Name)

Class constructor.

Parameters
NameThe name of this set.

Definition at line 160 of file objectsettings.cpp.

Member Function Documentation

void Mezzanine::ObjectSettingSet::_MarkUpdated ( )
virtual

Marks this container and relevant parent containers as updated.

Implements Mezzanine::ObjectSettingSetContainer.

Definition at line 205 of file objectsettings.cpp.

ObjectSettingSetContainer * Mezzanine::ObjectSettingSet::GetParentSetOrGroup ( ) const

Gets the Parent SettingsSet to this set.

Returns
Returns a pointer to this object's parent, or NULL if it doesn't have one.

Definition at line 171 of file objectsettings.cpp.

String Mezzanine::ObjectSettingSet::GetSettingValue ( const String SettingName) const

Gets a String representing the Value currently assigned to the existing setting.

Parameters
SettingNameThe name of the setting desired.
Returns
Returns an String containing the requested setting. If the setting does not exist then the String will be empty.

Definition at line 183 of file objectsettings.cpp.

void Mezzanine::ObjectSettingSet::SetSettingValue ( const String SettingName,
const String StringValue 
)

Sets a setting in this set...of settings.

Parameters
SettingNameThe name of the new setting.
StringValueA String containing the value to be given to this setting.

Definition at line 177 of file objectsettings.cpp.

Member Data Documentation

ObjectSettingSetContainer* Mezzanine::ObjectSettingSet::ParentSetOrGroup
protected

A pointer to the parent container of this ObjectSettingSet.

Definition at line 170 of file objectsettings.h.

SettingsMap Mezzanine::ObjectSettingSet::Settings
protected

A map container storing the settings owned by this set and their values.

Definition at line 167 of file objectsettings.h.


The documentation for this class was generated from the following files: