ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/gr2lib/trunk/gr2lib/core/coreclasses/header/granny_file.cs
(Generate patch)

Comparing trunk/gr2lib/core/coreclasses/header/granny_file.cs (file contents):
Revision 97 by william, Sat Jul 17 05:53:44 2010 UTC vs.
Revision 102 by william, Sat Jul 17 13:54:18 2010 UTC

--- trunk/gr2lib/core/coreclasses/header/granny_file.cs	2010/07/17 05:53:44	97
+++ trunk/gr2lib/core/coreclasses/header/granny_file.cs	2010/07/17 13:54:18	102
@@ -55,6 +55,7 @@ namespace gr2lib.core.header
 
             // process
 
+            
             managed.IsByteReversed = native.IsByteReversed;
             managed.SectionCount = native.SectionCount;
             managed.Sections = native.Sections;
@@ -134,6 +135,10 @@ namespace gr2lib.core.header
         public bool Marshalled { get { return _Marshalled; } set { _Marshalled = value; } }
         public bool IsUserMemory { get { return _IsUserMemory; } set { _IsUserMemory = value; } }
         public IntPtr ConversionBuffer { get { return _ConversionBuffer; } set { _ConversionBuffer = value; } }
+
+
+        public bool HaveHeader { get { if (Header == null) return false; return true; } }
+        public bool HaveMagic { get { if (SourceMagicValue == null) return false; return true; } }
         #endregion
     }
 }