diff options
author | Adam Frisby | 2007-07-16 17:46:47 +0000 |
---|---|---|
committer | Adam Frisby | 2007-07-16 17:46:47 +0000 |
commit | ac4f8745baecf9707afa03351a111bb9d5854d97 (patch) | |
tree | 46722c3aa456bfbe6f712c7acbe27c98dc18a526 /OpenSim/Region/Storage/OpenSim.DataStore.DB4o | |
parent | * Pruning an empty folder. (diff) | |
download | opensim-SC_OLD-ac4f8745baecf9707afa03351a111bb9d5854d97.zip opensim-SC_OLD-ac4f8745baecf9707afa03351a111bb9d5854d97.tar.gz opensim-SC_OLD-ac4f8745baecf9707afa03351a111bb9d5854d97.tar.bz2 opensim-SC_OLD-ac4f8745baecf9707afa03351a111bb9d5854d97.tar.xz |
* Updating internal LSL handler/compiler with Tedd's r1.
* Importing begginings of DB4oDataStore
Diffstat (limited to 'OpenSim/Region/Storage/OpenSim.DataStore.DB4o')
-rw-r--r-- | OpenSim/Region/Storage/OpenSim.DataStore.DB4o/DB4oDataStore.cs | 71 | ||||
-rw-r--r-- | OpenSim/Region/Storage/OpenSim.DataStore.DB4o/Properties/AssemblyInfo.cs | 35 |
2 files changed, 106 insertions, 0 deletions
diff --git a/OpenSim/Region/Storage/OpenSim.DataStore.DB4o/DB4oDataStore.cs b/OpenSim/Region/Storage/OpenSim.DataStore.DB4o/DB4oDataStore.cs new file mode 100644 index 0000000..71275c3 --- /dev/null +++ b/OpenSim/Region/Storage/OpenSim.DataStore.DB4o/DB4oDataStore.cs | |||
@@ -0,0 +1,71 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | |||
5 | using OpenSim.Region.Environment.Scenes; | ||
6 | using OpenSim.Region.Environment; | ||
7 | using OpenSim.Region.Interfaces; | ||
8 | using OpenSim.Framework.Console; | ||
9 | using libsecondlife; | ||
10 | |||
11 | using Db4objects.Db4o; | ||
12 | |||
13 | namespace OpenSim.DataStore.NullStorage | ||
14 | { | ||
15 | public class DB4oDataStore : IRegionDataStore | ||
16 | { | ||
17 | private IObjectContainer db; | ||
18 | |||
19 | public void Initialise(string dbfile, string dbname) | ||
20 | { | ||
21 | db = Db4oFactory.OpenFile(dbfile); | ||
22 | |||
23 | return; | ||
24 | } | ||
25 | |||
26 | public void StoreObject(SceneObject obj) | ||
27 | { | ||
28 | db.Set(obj); | ||
29 | } | ||
30 | |||
31 | public void RemoveObject(LLUUID obj) | ||
32 | { | ||
33 | |||
34 | } | ||
35 | |||
36 | public List<SceneObject> LoadObjects() | ||
37 | { | ||
38 | return new List<SceneObject>(); | ||
39 | } | ||
40 | |||
41 | public void StoreTerrain(double[,] ter) | ||
42 | { | ||
43 | |||
44 | } | ||
45 | |||
46 | public double[,] LoadTerrain() | ||
47 | { | ||
48 | return null; | ||
49 | } | ||
50 | |||
51 | public void RemoveParcel(uint id) | ||
52 | { | ||
53 | |||
54 | } | ||
55 | |||
56 | public void StoreParcel(OpenSim.Region.Environment.Parcel parcel) | ||
57 | { | ||
58 | |||
59 | } | ||
60 | |||
61 | public List<OpenSim.Region.Environment.Parcel> LoadParcels() | ||
62 | { | ||
63 | return new List<OpenSim.Region.Environment.Parcel>(); | ||
64 | } | ||
65 | |||
66 | public void Shutdown() | ||
67 | { | ||
68 | |||
69 | } | ||
70 | } | ||
71 | } | ||
diff --git a/OpenSim/Region/Storage/OpenSim.DataStore.DB4o/Properties/AssemblyInfo.cs b/OpenSim/Region/Storage/OpenSim.DataStore.DB4o/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..0d6788b --- /dev/null +++ b/OpenSim/Region/Storage/OpenSim.DataStore.DB4o/Properties/AssemblyInfo.cs | |||
@@ -0,0 +1,35 @@ | |||
1 | using System.Reflection; | ||
2 | using System.Runtime.CompilerServices; | ||
3 | using System.Runtime.InteropServices; | ||
4 | |||
5 | // General Information about an assembly is controlled through the following | ||
6 | // set of attributes. Change these attribute values to modify the information | ||
7 | // associated with an assembly. | ||
8 | [assembly: AssemblyTitle("OpenSim.DataStore.DB4o")] | ||
9 | [assembly: AssemblyDescription("")] | ||
10 | [assembly: AssemblyConfiguration("")] | ||
11 | [assembly: AssemblyCompany("")] | ||
12 | [assembly: AssemblyProduct("OpenSim.DataStore.DB4o")] | ||
13 | [assembly: AssemblyCopyright("Copyright © 2007")] | ||
14 | [assembly: AssemblyTrademark("")] | ||
15 | [assembly: AssemblyCulture("")] | ||
16 | |||
17 | // Setting ComVisible to false makes the types in this assembly not visible | ||
18 | // to COM components. If you need to access a type in this assembly from | ||
19 | // COM, set the ComVisible attribute to true on that type. | ||
20 | [assembly: ComVisible(false)] | ||
21 | |||
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM | ||
23 | [assembly: Guid("7a12de8b-fdd1-48f5-89a9-8dc2dafbeebc")] | ||
24 | |||
25 | // Version information for an assembly consists of the following four values: | ||
26 | // | ||
27 | // Major Version | ||
28 | // Minor Version | ||
29 | // Build Number | ||
30 | // Revision | ||
31 | // | ||
32 | // You can specify all the values or you can default the Revision and Build Numbers | ||
33 | // by using the '*' as shown below: | ||
34 | [assembly: AssemblyVersion("1.0.0.0")] | ||
35 | [assembly: AssemblyFileVersion("1.0.0.0")] | ||