/[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

--- trunk/gr2lib/core/coreclasses/apiversion/granny2apiversion.cs	2010/07/15 08:23:03	55
+++ trunk/gr2lib/core/coreclasses/apiversion/granny2apiversion.cs	2010/07/15 08:28:43	60
@@ -19,6 +19,9 @@
 
     public class versiontype : Iversiontype
     {
+        /// <summary>
+        /// default versiontype construction: 0.0.0.0
+        /// </summary>
         public versiontype()
         {
             this.major = 0;
@@ -26,6 +29,9 @@
             this.customization = 0;
             this.build = 0;
         }
+        /// <summary>
+        /// versiontype construction: major.minor.customization.build
+        /// </summary>
         public versiontype(granny_int32x major, granny_int32x minor, granny_int32x customization, granny_int32x build)
         {
             this.major = major;
@@ -33,6 +39,9 @@
             this.customization = customization;
             this.build = build;
         }
+        /// <summary>
+        /// versiontype construction: major.minor.customization.build (via string: "0.0.0.0")
+        /// </summary>
         public versiontype(string version)
         {
             string[] _version = version.Split('.');
@@ -42,6 +51,10 @@
             this.customization = _version[2];
             this.build = _version[3];
         }
+        /// <summary>
+        /// Gets this version in format: major.minor.customization.build
+        /// </summary>
+        /// <returns></returns>
         public override string ToString()
         {
             return this.version;
@@ -91,6 +104,9 @@
     /// </summary>
     public class granny2apiversion : igranny2apiversion
     {
+        /// <summary>
+        /// Default granny2apiversion Constructor: Expect Granny2 API -> 2.7.0.30
+        /// </summary>
         public granny2apiversion()
         {
             this._expectedapiversion = new versiontype(
@@ -105,6 +121,9 @@
             this.GetGrannyVersion();
  
         }
+        /// <summary>
+        /// granny2apiversion Constructor: set Granny2 API -> major.minor.customization.build
+        /// </summary>
         public granny2apiversion(granny_int32x ExpectedMajorVersion, granny_int32x ExpectedMinorVersion, granny_int32x ExpectedCustomization, granny_int32x ExpectedBuildNumber)
         {
             this._expectedapiversion = new versiontype(
@@ -118,6 +137,9 @@
             this._apiversionsmatch = this.GrannyVersionsMatch();
             this.GetGrannyVersion();
         }
+        /// <summary>
+        /// granny2apiversion Constructor: set Granny2 API -> major.minor.customization.build (via string: "0.0.0.0")
+        /// </summary>
         public granny2apiversion(string ExceptedVersion)
         {
             this._expectedapiversion = new versiontype(ExceptedVersion);

 

  ViewVC Help
Powered by ViewVC 1.1.22