This class represents a file to be saved containing one or more OhjectSettingGroup's. More...
#include <objectsettings.h>
Collaboration diagram for Mezzanine::ObjectSettingFile:Public Types | |
| typedef SaveGroupsContainer::const_iterator | ConstSaveGroupsIterator |
| Const Iterator type for ObjectSettingGroup instances stored by this class. | |
| typedef std::vector< ObjectSettingGroup * > | SaveGroupsContainer |
| Basic container type for ObjectSettingGroup storage by this class. | |
| typedef SaveGroupsContainer::iterator | SaveGroupsIterator |
| Iterator type for ObjectSettingGroup instances stored by this class. | |
Public Member Functions | |
| ObjectSettingFile (const String &FileName) | |
| Class constructor. More... | |
| ~ObjectSettingFile () | |
| Class destructor. | |
| void | AddGroup (ObjectSettingGroup *Group) |
| Adds a group to be saved to this file. More... | |
| const String & | GetFileName () const |
| Gets the name of the file. More... | |
| ObjectSettingGroup * | GetGroup (const String &Name) const |
| Gets a group being saved to this file. More... | |
| SaveGroupsContainer & | GetGroups () |
| Gets the container with the groups to be saved to this file. More... | |
| Boole | GetNeedsSave () const |
| Gets whether or not this file has been updated and needs to be saved. More... | |
| void | RemoveGroup (ObjectSettingGroup *Group) |
| Removes a group from this file. More... | |
| SaveGroupsIterator | SaveGroupsBegin () |
| Gets an iterator to the first group in this file. | |
| ConstSaveGroupsIterator | SaveGroupsBegin () const |
| Gets a const iterator to the first group in this file. | |
| SaveGroupsIterator | SaveGroupsEnd () |
| Gets an iterator to one-passed the last group in this file. | |
| ConstSaveGroupsIterator | SaveGroupsEnd () const |
| Gets a const iterator to one-passed the last group in this file. | |
| void | SetNeedsSave (Boole Save) |
| Sets whether or not this file needs saving. More... | |
Protected Attributes | |
| String | File |
| The name of the file the stored ObjectSettingGroup instances will be saved to. More... | |
| Boole | NeedsSave |
| Stores whether or not the settings have been updated and this file needs to be saved/refreshed. More... | |
| SaveGroupsContainer | SaveGroups |
| A container of ObjectSettingGroup instances that will be saved to the file representing by this. More... | |
This class represents a file to be saved containing one or more OhjectSettingGroup's.
Definition at line 261 of file objectsettings.h.
| Mezzanine::ObjectSettingFile::ObjectSettingFile | ( | const String & | FileName | ) |
Class constructor.
| FileName | The name of the file the groups in this class will be saved to. |
Definition at line 249 of file objectsettings.cpp.
| void Mezzanine::ObjectSettingFile::AddGroup | ( | ObjectSettingGroup * | Group | ) |
Adds a group to be saved to this file.
| Group | The group to be added to this file. |
Definition at line 269 of file objectsettings.cpp.
| const String & Mezzanine::ObjectSettingFile::GetFileName | ( | ) | const |
Gets the name of the file.
Definition at line 260 of file objectsettings.cpp.
| ObjectSettingGroup * Mezzanine::ObjectSettingFile::GetGroup | ( | const String & | Name | ) | const |
Gets a group being saved to this file.
| Name | The name of the group to get. |
Definition at line 276 of file objectsettings.cpp.
| ObjectSettingFile::SaveGroupsContainer & Mezzanine::ObjectSettingFile::GetGroups | ( | ) |
Gets the container with the groups to be saved to this file.
Definition at line 299 of file objectsettings.cpp.
| Boole Mezzanine::ObjectSettingFile::GetNeedsSave | ( | ) | const |
Gets whether or not this file has been updated and needs to be saved.
Definition at line 266 of file objectsettings.cpp.
| void Mezzanine::ObjectSettingFile::RemoveGroup | ( | ObjectSettingGroup * | Group | ) |
Removes a group from this file.
| Group | The group to be removed. |
Definition at line 286 of file objectsettings.cpp.
| void Mezzanine::ObjectSettingFile::SetNeedsSave | ( | Boole | Save | ) |
Sets whether or not this file needs saving.
| Save | Whetehr or not this file has been updated and needs to be saved. |
Definition at line 263 of file objectsettings.cpp.
|
protected |
The name of the file the stored ObjectSettingGroup instances will be saved to.
Definition at line 276 of file objectsettings.h.
|
protected |
Stores whether or not the settings have been updated and this file needs to be saved/refreshed.
Definition at line 279 of file objectsettings.h.
|
protected |
A container of ObjectSettingGroup instances that will be saved to the file representing by this.
Definition at line 273 of file objectsettings.h.
1.8.9.1. Thanks to the
Open Icon Library
for help with some of the icons.