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

Comparing trunk/gr2lib/core/coreclasses/apiversion/granny2apiversion.cs (file contents):
Revision 59 by william, Thu Jul 15 08:23:03 2010 UTC vs.
Revision 60 by william, Thu Jul 15 08:28:43 2010 UTC

# Line 19 | Line 19 | namespace gr2lib.core.apiversion
19  
20      public class versiontype : Iversiontype
21      {
22 +        /// <summary>
23 +        /// default versiontype construction: 0.0.0.0
24 +        /// </summary>
25          public versiontype()
26          {
27              this.major = 0;
# Line 26 | Line 29 | namespace gr2lib.core.apiversion
29              this.customization = 0;
30              this.build = 0;
31          }
32 +        /// <summary>
33 +        /// versiontype construction: major.minor.customization.build
34 +        /// </summary>
35          public versiontype(granny_int32x major, granny_int32x minor, granny_int32x customization, granny_int32x build)
36          {
37              this.major = major;
# Line 33 | Line 39 | namespace gr2lib.core.apiversion
39              this.customization = customization;
40              this.build = build;
41          }
42 +        /// <summary>
43 +        /// versiontype construction: major.minor.customization.build (via string: "0.0.0.0")
44 +        /// </summary>
45          public versiontype(string version)
46          {
47              string[] _version = version.Split('.');
# Line 42 | Line 51 | namespace gr2lib.core.apiversion
51              this.customization = _version[2];
52              this.build = _version[3];
53          }
54 +        /// <summary>
55 +        /// Gets this version in format: major.minor.customization.build
56 +        /// </summary>
57 +        /// <returns></returns>
58          public override string ToString()
59          {
60              return this.version;
# Line 91 | Line 104 | namespace gr2lib.core.apiversion
104      /// </summary>
105      public class granny2apiversion : igranny2apiversion
106      {
107 +        /// <summary>
108 +        /// Default granny2apiversion Constructor: Expect Granny2 API -> 2.7.0.30
109 +        /// </summary>
110          public granny2apiversion()
111          {
112              this._expectedapiversion = new versiontype(
# Line 105 | Line 121 | namespace gr2lib.core.apiversion
121              this.GetGrannyVersion();
122  
123          }
124 +        /// <summary>
125 +        /// granny2apiversion Constructor: set Granny2 API -> major.minor.customization.build
126 +        /// </summary>
127          public granny2apiversion(granny_int32x ExpectedMajorVersion, granny_int32x ExpectedMinorVersion, granny_int32x ExpectedCustomization, granny_int32x ExpectedBuildNumber)
128          {
129              this._expectedapiversion = new versiontype(
# Line 118 | Line 137 | namespace gr2lib.core.apiversion
137              this._apiversionsmatch = this.GrannyVersionsMatch();
138              this.GetGrannyVersion();
139          }
140 +        /// <summary>
141 +        /// granny2apiversion Constructor: set Granny2 API -> major.minor.customization.build (via string: "0.0.0.0")
142 +        /// </summary>
143          public granny2apiversion(string ExceptedVersion)
144          {
145              this._expectedapiversion = new versiontype(ExceptedVersion);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines