From ac4f8745baecf9707afa03351a111bb9d5854d97 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Mon, 16 Jul 2007 17:46:47 +0000 Subject: * Updating internal LSL handler/compiler with Tedd's r1. * Importing begginings of DB4oDataStore --- .../OpenSim.DataStore.DB4o/DB4oDataStore.cs | 71 ++++++++++++++++++++++ .../Properties/AssemblyInfo.cs | 35 +++++++++++ 2 files changed, 106 insertions(+) create mode 100644 OpenSim/Region/Storage/OpenSim.DataStore.DB4o/DB4oDataStore.cs create mode 100644 OpenSim/Region/Storage/OpenSim.DataStore.DB4o/Properties/AssemblyInfo.cs (limited to 'OpenSim/Region/Storage/OpenSim.DataStore.DB4o') 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 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using OpenSim.Region.Environment.Scenes; +using OpenSim.Region.Environment; +using OpenSim.Region.Interfaces; +using OpenSim.Framework.Console; +using libsecondlife; + +using Db4objects.Db4o; + +namespace OpenSim.DataStore.NullStorage +{ + public class DB4oDataStore : IRegionDataStore + { + private IObjectContainer db; + + public void Initialise(string dbfile, string dbname) + { + db = Db4oFactory.OpenFile(dbfile); + + return; + } + + public void StoreObject(SceneObject obj) + { + db.Set(obj); + } + + public void RemoveObject(LLUUID obj) + { + + } + + public List LoadObjects() + { + return new List(); + } + + public void StoreTerrain(double[,] ter) + { + + } + + public double[,] LoadTerrain() + { + return null; + } + + public void RemoveParcel(uint id) + { + + } + + public void StoreParcel(OpenSim.Region.Environment.Parcel parcel) + { + + } + + public List LoadParcels() + { + return new List(); + } + + public void Shutdown() + { + + } + } +} 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 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("OpenSim.DataStore.DB4o")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("OpenSim.DataStore.DB4o")] +[assembly: AssemblyCopyright("Copyright © 2007")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("7a12de8b-fdd1-48f5-89a9-8dc2dafbeebc")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Revision and Build Numbers +// by using the '*' as shown below: +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] -- cgit v1.1