diff options
author | rubidium <rubidium@openttd.org> | 2011-01-18 22:31:06 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-01-18 22:31:06 +0000 |
commit | 7efd7e19ed046a4a0c03077f27930291ba5b9725 (patch) | |
tree | 9e08703cd992ede72e5165044b69750b1385510f /src/ini_type.h | |
parent | 6c9078fd30097b38537a60fbecb9828da69c3517 (diff) | |
download | openttd-7efd7e19ed046a4a0c03077f27930291ba5b9725.tar.xz |
(svn r21845) -Codechange: move documentation towards the code to make it more likely to be updates [d-m].
Diffstat (limited to 'src/ini_type.h')
-rw-r--r-- | src/ini_type.h | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/src/ini_type.h b/src/ini_type.h index 45cd75b00..b89a77b56 100644 --- a/src/ini_type.h +++ b/src/ini_type.h @@ -25,21 +25,9 @@ struct IniItem { char *value; ///< The value of this item char *comment; ///< The comment associated with this item - /** - * Construct a new in-memory item of an Ini file. - * @param parent the group we belong to - * @param name the name of the item - * @param len the length of the name of the item - */ IniItem(struct IniGroup *parent, const char *name, size_t len = 0); - - /** Free everything we loaded. */ ~IniItem(); - /** - * Replace the current value with another value. - * @param value the value to replace with. - */ void SetValue(const char *value); }; @@ -52,29 +40,10 @@ struct IniGroup { char *name; ///< name of group char *comment; ///< comment for group - /** - * Construct a new in-memory group of an Ini file. - * @param parent the file we belong to - * @param name the name of the group - * @param len the length of the name of the group - */ IniGroup(struct IniFile *parent, const char *name, size_t len = 0); - - /** Free everything we loaded. */ ~IniGroup(); - /** - * Get the item with the given name, and if it doesn't exist - * and create is true it creates a new item. - * @param name name of the item to find. - * @param create whether to create an item when not found or not. - * @return the requested item or NULL if not found. - */ IniItem *GetItem(const char *name, bool create); - - /** - * Clear all items in the group - */ void Clear(); }; @@ -85,43 +54,13 @@ struct IniFile { char *comment; ///< last comment in file const char * const *list_group_names; ///< NULL terminated list with group names that are lists - /** - * Construct a new in-memory Ini file representation. - * @param list_group_names A NULL terminated list with groups that should be - * loaded as lists instead of variables. - */ IniFile(const char * const *list_group_names = NULL); - - /** Free everything we loaded. */ ~IniFile(); - /** - * Get the group with the given name, and if it doesn't exist - * create a new group. - * @param name name of the group to find. - * @param len the maximum length of said name. - * @return the requested group. - */ IniGroup *GetGroup(const char *name, size_t len = 0); - - /** - * Remove the group with the given name. - * @param name name of the group to remove. - */ void RemoveGroup(const char *name); - /** - * Load the Ini file's data from the disk. - * @param filename the file to load. - * @pre nothing has been loaded yet. - */ void LoadFromDisk(const char *filename); - - /** - * Save the Ini file's data to the disk. - * @param filename the file to save to. - * @return true if saving succeeded. - */ bool SaveToDisk(const char *filename); }; |