diff options
author | Tleiades Hax | 2007-10-17 09:36:11 +0000 |
---|---|---|
committer | Tleiades Hax | 2007-10-17 09:36:11 +0000 |
commit | 44a7db0e44d175fcb854b7bfd11d3b97ed6b934c (patch) | |
tree | 52f6853eb180fbdd998c2019a136c7bdfa03dec4 /OpenSim/Framework/Data.DB4o | |
parent | this might help with ODE errors. Or maybe not. YMMV (diff) | |
download | opensim-SC_OLD-44a7db0e44d175fcb854b7bfd11d3b97ed6b934c.zip opensim-SC_OLD-44a7db0e44d175fcb854b7bfd11d3b97ed6b934c.tar.gz opensim-SC_OLD-44a7db0e44d175fcb854b7bfd11d3b97ed6b934c.tar.bz2 opensim-SC_OLD-44a7db0e44d175fcb854b7bfd11d3b97ed6b934c.tar.xz |
Renamed SimProfileData to RegionProfileData
Diffstat (limited to 'OpenSim/Framework/Data.DB4o')
-rw-r--r-- | OpenSim/Framework/Data.DB4o/DB4oGridData.cs | 9 | ||||
-rw-r--r-- | OpenSim/Framework/Data.DB4o/DB4oManager.cs | 9 |
2 files changed, 10 insertions, 8 deletions
diff --git a/OpenSim/Framework/Data.DB4o/DB4oGridData.cs b/OpenSim/Framework/Data.DB4o/DB4oGridData.cs index a01d1a4..bc7225a 100644 --- a/OpenSim/Framework/Data.DB4o/DB4oGridData.cs +++ b/OpenSim/Framework/Data.DB4o/DB4oGridData.cs | |||
@@ -56,7 +56,7 @@ namespace OpenSim.Framework.Data.DB4o | |||
56 | /// <param name="c">maximum X coordinate</param> | 56 | /// <param name="c">maximum X coordinate</param> |
57 | /// <param name="d">maximum Y coordinate</param> | 57 | /// <param name="d">maximum Y coordinate</param> |
58 | /// <returns>An array of region profiles</returns> | 58 | /// <returns>An array of region profiles</returns> |
59 | public SimProfileData[] GetProfilesInRange(uint a, uint b, uint c, uint d) | 59 | public RegionProfileData[] GetProfilesInRange(uint a, uint b, uint c, uint d) |
60 | { | 60 | { |
61 | return null; | 61 | return null; |
62 | } | 62 | } |
@@ -66,7 +66,8 @@ namespace OpenSim.Framework.Data.DB4o | |||
66 | /// </summary> | 66 | /// </summary> |
67 | /// <param name="handle">The handle to search for</param> | 67 | /// <param name="handle">The handle to search for</param> |
68 | /// <returns>A region profile</returns> | 68 | /// <returns>A region profile</returns> |
69 | public SimProfileData GetProfileByHandle(ulong handle) { | 69 | public RegionProfileData GetProfileByHandle(ulong handle) |
70 | { | ||
70 | lock (manager.simProfiles) | 71 | lock (manager.simProfiles) |
71 | { | 72 | { |
72 | foreach (LLUUID UUID in manager.simProfiles.Keys) | 73 | foreach (LLUUID UUID in manager.simProfiles.Keys) |
@@ -85,7 +86,7 @@ namespace OpenSim.Framework.Data.DB4o | |||
85 | /// </summary> | 86 | /// </summary> |
86 | /// <param name="uuid">The region ID code</param> | 87 | /// <param name="uuid">The region ID code</param> |
87 | /// <returns>A region profile</returns> | 88 | /// <returns>A region profile</returns> |
88 | public SimProfileData GetProfileByLLUUID(LLUUID uuid) | 89 | public RegionProfileData GetProfileByLLUUID(LLUUID uuid) |
89 | { | 90 | { |
90 | lock (manager.simProfiles) | 91 | lock (manager.simProfiles) |
91 | { | 92 | { |
@@ -100,7 +101,7 @@ namespace OpenSim.Framework.Data.DB4o | |||
100 | /// </summary> | 101 | /// </summary> |
101 | /// <param name="profile">The profile to add</param> | 102 | /// <param name="profile">The profile to add</param> |
102 | /// <returns>A dataresponse enum indicating success</returns> | 103 | /// <returns>A dataresponse enum indicating success</returns> |
103 | public DataResponse AddProfile(SimProfileData profile) | 104 | public DataResponse AddProfile(RegionProfileData profile) |
104 | { | 105 | { |
105 | lock (manager.simProfiles) | 106 | lock (manager.simProfiles) |
106 | { | 107 | { |
diff --git a/OpenSim/Framework/Data.DB4o/DB4oManager.cs b/OpenSim/Framework/Data.DB4o/DB4oManager.cs index 224b842..10c8490 100644 --- a/OpenSim/Framework/Data.DB4o/DB4oManager.cs +++ b/OpenSim/Framework/Data.DB4o/DB4oManager.cs | |||
@@ -41,7 +41,7 @@ namespace OpenSim.Framework.Data.DB4o | |||
41 | /// <summary> | 41 | /// <summary> |
42 | /// A list of the current regions connected (in-memory cache) | 42 | /// A list of the current regions connected (in-memory cache) |
43 | /// </summary> | 43 | /// </summary> |
44 | public Dictionary<LLUUID, SimProfileData> simProfiles = new Dictionary<LLUUID, SimProfileData>(); | 44 | public Dictionary<LLUUID, RegionProfileData> simProfiles = new Dictionary<LLUUID, RegionProfileData>(); |
45 | /// <summary> | 45 | /// <summary> |
46 | /// Database File Name | 46 | /// Database File Name |
47 | /// </summary> | 47 | /// </summary> |
@@ -56,9 +56,10 @@ namespace OpenSim.Framework.Data.DB4o | |||
56 | dbfl = db4odb; | 56 | dbfl = db4odb; |
57 | IObjectContainer database; | 57 | IObjectContainer database; |
58 | database = Db4oFactory.OpenFile(dbfl); | 58 | database = Db4oFactory.OpenFile(dbfl); |
59 | IObjectSet result = database.Get(typeof(SimProfileData)); | 59 | IObjectSet result = database.Get(typeof(RegionProfileData)); |
60 | // Loads the file into the in-memory cache | 60 | // Loads the file into the in-memory cache |
61 | foreach(SimProfileData row in result) { | 61 | foreach (RegionProfileData row in result) |
62 | { | ||
62 | simProfiles.Add(row.UUID, row); | 63 | simProfiles.Add(row.UUID, row); |
63 | } | 64 | } |
64 | database.Close(); | 65 | database.Close(); |
@@ -69,7 +70,7 @@ namespace OpenSim.Framework.Data.DB4o | |||
69 | /// </summary> | 70 | /// </summary> |
70 | /// <param name="row">The profile to add</param> | 71 | /// <param name="row">The profile to add</param> |
71 | /// <returns>Successful?</returns> | 72 | /// <returns>Successful?</returns> |
72 | public bool AddRow(SimProfileData row) | 73 | public bool AddRow(RegionProfileData row) |
73 | { | 74 | { |
74 | if (simProfiles.ContainsKey(row.UUID)) | 75 | if (simProfiles.ContainsKey(row.UUID)) |
75 | { | 76 | { |