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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

1 william 83 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 william 186 /// <summary>
11     /// LightInfo class
12     /// </summary>
13 william 83 public class LightInfo : ILightInfo
14     {
15    
16 william 186 /// <summary>
17     /// default constructor
18     /// </summary>
19 william 83 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 william 181 /// <summary>
44     /// When used in a derived class, gets the native pointer for this instance
45     /// </summary>
46 william 83 public IntPtr NativePointer { get { return _NativePointer; } set { _NativePointer = value; } }
47     #endregion
48    
49     #region IExtendedData Members
50     private IntPtr _ExtendedData;
51 william 181 /// <summary>
52     /// When used in a derived class, gets the ExtendedData pointer for this instance
53     /// </summary>
54 william 83 public IntPtr ExtendedData { get { return _ExtendedData; } set { _ExtendedData = value; } }
55     #endregion
56     }
57     }

  ViewVC Help
Powered by ViewVC 1.1.22