From af5c7e52b1163cf65f897e5c7ecf9ef2d9f6e88e Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 3 Sep 2008 18:11:44 +0000 Subject: narrange to do basic cleanup of the CMS module --- .../ContentManagementSystem/IContentDatabase.cs | 103 ++++++++++++--------- 1 file changed, 58 insertions(+), 45 deletions(-) (limited to 'OpenSim/Region/Environment/Modules/ContentManagementSystem/IContentDatabase.cs') diff --git a/OpenSim/Region/Environment/Modules/ContentManagementSystem/IContentDatabase.cs b/OpenSim/Region/Environment/Modules/ContentManagementSystem/IContentDatabase.cs index f37f95d..1d81978 100644 --- a/OpenSim/Region/Environment/Modules/ContentManagementSystem/IContentDatabase.cs +++ b/OpenSim/Region/Environment/Modules/ContentManagementSystem/IContentDatabase.cs @@ -1,57 +1,70 @@ +#region Header + // IContentDatabase.cs // User: bongiojp // // // +#endregion Header + using System; + using libsecondlife; + using OpenSim.Region.Environment.Scenes; + using Nini.Config; namespace OpenSim.Region.Environment.Modules.ContentManagement -{ - public interface IContentDatabase - { - /// - /// Similar to the IRegionModule function. This is the function to be called before attempting to interface with the database. - /// Initialise should be called one for each region to be contained in the database. The directory should be the full path - /// to the repository and will only be defined once, regardless of how many times the method is called. - /// - void Initialise(Scene scene, String dir); - - /// - /// Should be called once after Initialise has been called. - /// - void PostInitialise(); - - /// - /// Returns the total number of revisions saved for a specific region. - /// - int NumOfRegionRev(LLUUID regionid); - - /// - /// Saves the Region terrain map and objects within the region as xml to the database. - /// - void SaveRegion(LLUUID regionid, string regionName, string logMessage); - - /// - /// Retrieves the xml that describes each individual object from the last revision or specific revision of the given region. - /// - System.Collections.ArrayList GetRegionObjectXMLList(LLUUID regionid); - System.Collections.ArrayList GetRegionObjectXMLList(LLUUID regionid, int revision); - - string GetRegionObjectHeightMap(LLUUID regionid); - string GetRegionObjectHeightMap(LLUUID regionid, int revision); - - /// - /// Returns a list of the revision numbers and corresponding log messages for a given region. - /// - System.Collections.Generic.SortedDictionary ListOfRegionRevisions(LLUUID id); - - /// - /// Returns the most recent revision number of a region. - /// - int GetMostRecentRevision(LLUUID regionid); - } -} +{ + public interface IContentDatabase + { + #region Methods + + /// + /// Returns the most recent revision number of a region. + /// + int GetMostRecentRevision(LLUUID regionid); + + string GetRegionObjectHeightMap(LLUUID regionid); + + string GetRegionObjectHeightMap(LLUUID regionid, int revision); + + /// + /// Retrieves the xml that describes each individual object from the last revision or specific revision of the given region. + /// + System.Collections.ArrayList GetRegionObjectXMLList(LLUUID regionid); + + System.Collections.ArrayList GetRegionObjectXMLList(LLUUID regionid, int revision); + + /// + /// Similar to the IRegionModule function. This is the function to be called before attempting to interface with the database. + /// Initialise should be called one for each region to be contained in the database. The directory should be the full path + /// to the repository and will only be defined once, regardless of how many times the method is called. + /// + void Initialise(Scene scene, String dir); + + /// + /// Returns a list of the revision numbers and corresponding log messages for a given region. + /// + System.Collections.Generic.SortedDictionary ListOfRegionRevisions(LLUUID id); + + /// + /// Returns the total number of revisions saved for a specific region. + /// + int NumOfRegionRev(LLUUID regionid); + + /// + /// Should be called once after Initialise has been called. + /// + void PostInitialise(); + + /// + /// Saves the Region terrain map and objects within the region as xml to the database. + /// + void SaveRegion(LLUUID regionid, string regionName, string logMessage); + + #endregion Methods + } +} \ No newline at end of file -- cgit v1.1