/[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 93 by william, Sat Jul 17 05:09:00 2010 UTC revision 109 by william, Sun Jul 18 01:58:10 2010 UTC
# Line 110  namespace gr2lib.core.apiversion Line 110  namespace gr2lib.core.apiversion
110                                               apiversiontype.GrannyProductCustomization,                                               apiversiontype.GrannyProductCustomization,
111                                               apiversiontype.GrannyProductBuildNumber);                                               apiversiontype.GrannyProductBuildNumber);
112    
113              granny2apiloader _loader = new granny2apiloader();              granny2apiloader _loader = new granny2apiloader(true);
114              this._apiversion = new versiontype();              this._apiversion = new versiontype();
115              this._apiversionsmatch = this.GrannyVersionsMatch();              this._apiversionsmatch = this.GrannyVersionsMatch();
116              this.GetGrannyVersion();              this.GetGrannyVersion();
117    
118          }          }
119          /// <summary>          /// <summary>
120            /// Default granny2apiversion Constructor: Expect Granny2 API -> 2.7.0.30 (allow disable looking for granny api)
121            /// </summary>
122            public granny2apiversion(bool checkforgrannyapi)
123            {
124                if (checkforgrannyapi)
125                {
126                    this._expectedapiversion = new versiontype(
127                                                     apiversiontype.GrannyProductMajorVersion,
128                                                     apiversiontype.GrannyProductMinorVersion,
129                                                     apiversiontype.GrannyProductCustomization,
130                                                     apiversiontype.GrannyProductBuildNumber);
131    
132                    granny2apiloader _loader = new granny2apiloader(checkforgrannyapi);
133                    this._apiversion = new versiontype();
134                    this._apiversionsmatch = this.GrannyVersionsMatch();
135                    this.GetGrannyVersion();
136                }
137    
138            }
139            /// <summary>
140          /// granny2apiversion Constructor: set Granny2 API -> major.minor.customization.build          /// granny2apiversion Constructor: set Granny2 API -> major.minor.customization.build
141          /// </summary>          /// </summary>
142          public granny2apiversion(granny_int32x ExpectedMajorVersion, granny_int32x ExpectedMinorVersion, granny_int32x ExpectedCustomization, granny_int32x ExpectedBuildNumber)          public granny2apiversion(granny_int32x ExpectedMajorVersion, granny_int32x ExpectedMinorVersion, granny_int32x ExpectedCustomization, granny_int32x ExpectedBuildNumber)
# Line 127  namespace gr2lib.core.apiversion Line 147  namespace gr2lib.core.apiversion
147                                   ExpectedCustomization,                                   ExpectedCustomization,
148                                   ExpectedBuildNumber);                                   ExpectedBuildNumber);
149    
150              granny2apiloader _loader = new granny2apiloader();              granny2apiloader _loader = new granny2apiloader(true);
151              this._apiversion = new versiontype();              this._apiversion = new versiontype();
152              this._apiversionsmatch = this.GrannyVersionsMatch();              this._apiversionsmatch = this.GrannyVersionsMatch();
153              this.GetGrannyVersion();              this.GetGrannyVersion();
154          }          }
155          /// <summary>          /// <summary>
156            /// granny2apiversion Constructor: set Granny2 API -> major.minor.customization.build
157            /// </summary>
158            public granny2apiversion(bool checkforgrannyapi, granny_int32x ExpectedMajorVersion, granny_int32x ExpectedMinorVersion, granny_int32x ExpectedCustomization, granny_int32x ExpectedBuildNumber)
159            {
160                if (checkforgrannyapi)
161                {
162                    this._expectedapiversion = new versiontype(
163                                         ExpectedMajorVersion,
164                                         ExpectedMinorVersion,
165                                         ExpectedCustomization,
166                                         ExpectedBuildNumber);
167    
168                    granny2apiloader _loader = new granny2apiloader(checkforgrannyapi);
169                    this._apiversion = new versiontype();
170                    this._apiversionsmatch = this.GrannyVersionsMatch();
171                    this.GetGrannyVersion();
172                }
173            }
174            /// <summary>
175          /// granny2apiversion Constructor: set Granny2 API -> major.minor.customization.build (via string: "0.0.0.0")          /// granny2apiversion Constructor: set Granny2 API -> major.minor.customization.build (via string: "0.0.0.0")
176          /// </summary>          /// </summary>
177          public granny2apiversion(string ExceptedVersion)          public granny2apiversion(string ExceptedVersion)
178          {          {
179              this._expectedapiversion = new versiontype(ExceptedVersion);              this._expectedapiversion = new versiontype(ExceptedVersion);
180    
181              granny2apiloader _loader = new granny2apiloader();              granny2apiloader _loader = new granny2apiloader(true);
182              this._apiversion = new versiontype();              this._apiversion = new versiontype();
183              this._apiversionsmatch = this.GrannyVersionsMatch();              this._apiversionsmatch = this.GrannyVersionsMatch();
184              this.GetGrannyVersion();              this.GetGrannyVersion();
185          }          }
186            /// <summary>
187            /// granny2apiversion Constructor: set Granny2 API -> major.minor.customization.build (via string: "0.0.0.0")
188            /// </summary>
189            public granny2apiversion(bool checkforgrannyapi,string ExceptedVersion)
190            {
191                if (checkforgrannyapi)
192                {
193                    this._expectedapiversion = new versiontype(ExceptedVersion);
194    
195                    granny2apiloader _loader = new granny2apiloader(checkforgrannyapi);
196                    this._apiversion = new versiontype();
197                    this._apiversionsmatch = this.GrannyVersionsMatch();
198                    this.GetGrannyVersion();
199                }
200            }
201    
202          #region APIVersion Support          #region APIVersion Support
203          private class apiversiontype          private class apiversiontype

Legend:
Removed from v.93  
changed lines
  Added in v.109

  ViewVC Help
Powered by ViewVC 1.1.22