/[gr2lib]/trunk/gr2lib/core/coreclasses/apiversion/granny2apiversion.cs
ViewVC logotype

Diff of /trunk/gr2lib/core/coreclasses/apiversion/granny2apiversion.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 42 by william, Thu Jul 15 04:37:01 2010 UTC revision 45 by william, Thu Jul 15 04:40:28 2010 UTC
# Line 71  namespace gr2lib.core.apiversion Line 71  namespace gr2lib.core.apiversion
71      #endregion      #endregion
72    
73      #region public class Granny2APIVersion      #region public class Granny2APIVersion
74      public interface Igranny2apiversion      public interface igranny2apiversion
75      {      {
76          bool apiversionsmatch { get; }          bool apiversionsmatch { get; }
77          versiontype apiversion { get; }          versiontype apiversion { get; }
# Line 80  namespace gr2lib.core.apiversion Line 80  namespace gr2lib.core.apiversion
80      /// <summary>      /// <summary>
81      /// Handle's the checking of the Loaded Granny2 API Version      /// Handle's the checking of the Loaded Granny2 API Version
82      /// </summary>      /// </summary>
83      public class granny2apiversion : Igranny2apiversion      public class granny2apiversion : igranny2apiversion
84      {      {
85          public granny2apiversion()          public granny2apiversion()
86          {          {
87              this._APIVersion = new versiontype();              this._apiversion = new versiontype();
88              this._APIVersionsMatch = this.GrannyVersionsMatch();              this._apiversionsmatch = this.GrannyVersionsMatch();
89              this.GetGrannyVersion();              this.GetGrannyVersion();
90          }            }  
91          #region APIVersion Support          #region APIVersion Support
# Line 109  namespace gr2lib.core.apiversion Line 109  namespace gr2lib.core.apiversion
109          }          }
110          private void GetGrannyVersion()          private void GetGrannyVersion()
111          {          {
112              granny_int32x Major = 0;              granny_int32x major = 0;
113              granny_int32x Minor = 0;              granny_int32x minor = 0;
114              granny_int32x Customization = 0;              granny_int32x customization = 0;
115              granny_int32x Build = 0;              granny_int32x build = 0;
116    
117              gr2lib.core.coreapi.GrannyGetVersion(              gr2lib.core.coreapi.GrannyGetVersion(
118                  ref Major,                  ref major,
119                  ref Minor,                  ref minor,
120                  ref Customization,                  ref customization,
121                  ref Build);                  ref build);
122    
123              this._APIVersion = new versiontype(Major, Minor, Customization, Build);              this._apiversion = new versiontype(major, minor, customization, build);
124    
125          }          }
126          private string GrannyGetVersionString()          private string GrannyGetVersionString()
# Line 130  namespace gr2lib.core.apiversion Line 130  namespace gr2lib.core.apiversion
130          #endregion          #endregion
131    
132          #region IGranny2APIVersion Members          #region IGranny2APIVersion Members
133          private bool _APIVersionsMatch = false;          private bool _apiversionsmatch = false;
134          /// <summary>          /// <summary>
135          /// Indicates that the Loaded Granny2 API Version matches the version that the core library was built against          /// Indicates that the Loaded Granny2 API Version matches the version that the core library was built against
136          /// </summary>          /// </summary>
137          public bool apiversionsmatch { get { return _APIVersionsMatch; } }          public bool apiversionsmatch { get { return _apiversionsmatch; } }
138          private versiontype _APIVersion;          private versiontype _apiversion;
139          /// <summary>          /// <summary>
140          /// Gets the Loaded Granny2 API Version          /// Gets the Loaded Granny2 API Version
141          /// </summary>          /// </summary>
142          public versiontype apiversion { get { return _APIVersion; } }          public versiontype apiversion { get { return _apiversion; } }
143          /// <summary>          /// <summary>
144          /// Gets the Expected Granny2 API Version          /// Gets the Expected Granny2 API Version
145          /// </summary>          /// </summary>

Legend:
Removed from v.42  
changed lines
  Added in v.45

  ViewVC Help
Powered by ViewVC 1.1.22