/[gr2lib]/trunk/gr2lib/core/coretypes/implementation/LightInfo.cs
ViewVC logotype

Contents of /trunk/gr2lib/core/coretypes/implementation/LightInfo.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 186 - (show annotations) (download)
Sat Jul 24 02:23:18 2010 UTC (9 years, 3 months ago) by william
File size: 1834 byte(s)
continue to add xml documentation

1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using gr2lib.core.interfaces;
6 using gr2lib.core.helpers;
7
8 namespace gr2lib.core.coretypes.implementation
9 {
10 /// <summary>
11 /// LightInfo class
12 /// </summary>
13 public class LightInfo : ILightInfo
14 {
15
16 /// <summary>
17 /// default constructor
18 /// </summary>
19 public LightInfo()
20 {
21 //this.NativePointer = IntPtr.Zero;
22 //this.ExtendedData = IntPtr.Zero;
23 }
24
25 internal static LightInfo ReadFromMemory(IntPtr pointer)
26 {
27 if (pointer == IntPtr.Zero) return null;
28 native.LightInfo native = Helpers.ReadFromMemory<native.LightInfo>(pointer);
29 LightInfo managed = ReadFromNative(native);
30 managed.NativePointer = pointer;
31 return managed;
32 }
33
34 internal static LightInfo ReadFromNative(native.LightInfo native)
35 {
36 LightInfo managed = new LightInfo();
37 managed.ExtendedData = native.ExtendedData;
38 return managed;
39 }
40
41 #region INativePointer Members
42 private IntPtr _NativePointer;
43 /// <summary>
44 /// When used in a derived class, gets the native pointer for this instance
45 /// </summary>
46 public IntPtr NativePointer { get { return _NativePointer; } set { _NativePointer = value; } }
47 #endregion
48
49 #region IExtendedData Members
50 private IntPtr _ExtendedData;
51 /// <summary>
52 /// When used in a derived class, gets the ExtendedData pointer for this instance
53 /// </summary>
54 public IntPtr ExtendedData { get { return _ExtendedData; } set { _ExtendedData = value; } }
55 #endregion
56 }
57 }

  ViewVC Help
Powered by ViewVC 1.1.22