67 | | class FdoWmsGetImageFormatsCommand : public FdoWmsCommand<FdoIGetImageFormats> |
68 | | { |
69 | | friend class FdoWmsConnection; |
70 | | |
71 | | protected: |
72 | | // |
73 | | // Prevent the use of the copy constructor by definning it and not implemeting it. |
74 | | // DO NOT IMPLEMENT |
75 | | FdoWmsGetImageFormatsCommand (const FdoWmsGetImageFormatsCommand &right); |
76 | | |
77 | | /// <summary>Constructs an instance of a command for the given connection. </summary> |
78 | | /// <returns>Returns nothing</returns> |
79 | | FdoWmsGetImageFormatsCommand (FdoIConnection* connection); |
80 | | |
81 | | /// <summary>Virtual Destructor.</summary> |
82 | | /// <returns>Returns nothing</returns> |
83 | | virtual ~ FdoWmsGetImageFormatsCommand (void); |
84 | | |
85 | | /// <summary>Dispose this object.</summary> |
86 | | /// <returns>Returns nothing</returns> |
87 | | virtual void Dispose (); |
88 | | |
89 | | // Prevent the use of the Assignment Operation by definning it and not implemeting it. |
90 | | // DO NOT IMPLEMENT |
91 | | FdoWmsGetImageFormatsCommand & operator= (const FdoWmsGetImageFormatsCommand &right); |
92 | | |
93 | | public: |
94 | | // |
95 | | /// <summary> |
96 | | /// Executes the GetFormats command and returns a |
97 | | /// FdoStringCollection, which contains all image formats supported by WMS service. |
98 | | /// <returns> |
99 | | /// Returns the image format collection supported by WMS service. |
100 | | /// </returns> |
101 | | virtual FdoStringCollection* Execute (); |
102 | | |
103 | | }; |
147 | | class FdoWmsGetFeatureClassStylesCommand : public FdoWmsCommand< FDOIGetFeatureClassStyles > |
148 | | { |
149 | | friend class FdoWmsConnection; |
150 | | |
151 | | protected: |
152 | | // |
153 | | // Prevent the use of the copy constructor by definning it and not implemeting it. |
154 | | // DO NOT IMPLEMENT |
155 | | FdoWmsGetFeatureClassStylesCommand (const FdoWmsGetFeatureClassStylesCommand &right); |
156 | | |
157 | | // <summary>Constructs an instance of a command for the given connection. </summary> |
158 | | // <returns>Returns nothing</returns> |
159 | | FdoWmsGetFeatureClassStylesCommand (FdoIConnection* connection); |
160 | | |
161 | | // <summary>Virtual Destructor.</summary> |
162 | | // <returns>Returns nothing</returns> |
163 | | virtual ~ FdoWmsGetFeatureClassStylesCommand (void); |
164 | | |
165 | | // <summary>Dispose this object.</summary> |
166 | | // <returns>Returns nothing</returns> |
167 | | virtual void Dispose (); |
168 | | |
169 | | // Prevent the use of the Assignment Operation by definning it and not implemeting it. |
170 | | // DO NOT IMPLEMENT |
171 | | FdoWmsGetFeatureClassStylesCommand & operator= (const FdoWmsGetFeatureClassStylesCommand &right); |
172 | | |
173 | | public: |
174 | | // |
175 | | /// <summary>Gets the name of the feature class to get all supported styles. </summary> |
176 | | /// <returns>Returns the feature class name</returns> |
177 | | virtual FdoString* GetFeatureClassName (); |
178 | | |
179 | | /// <summary>Sets the name of the FeatureClass to get all supported styles |
180 | | /// This function is mandatory; if not specified, |
181 | | /// execution of the command will throw exception. |
182 | | /// </summary> |
183 | | /// <param name="value">Input the FeatureClass name</param> |
184 | | /// <returns>Returns nothing</returns> |
185 | | virtual void SetFeatureClassName (FdoString* value); |
186 | | |
187 | | /// <summary> |
188 | | /// Executes the GetFeatureClassStyles command and returns a |
189 | | /// FdoStringCollection, which contains entire styles supported by feature class. |
190 | | /// and all styles supported by its ancestors, because WMS service supports Style |
191 | | /// declarations are inherited by child Layers. |
192 | | /// |
193 | | /// </summary> |
194 | | /// <returns> Returns the style collection supported by FeatureClass. </returns> |
195 | | virtual FdoStringCollection* Execute (); |
196 | | |
197 | | private: |
198 | | FdoStringP mFeatureClassName; |
199 | | }; |
244 | | class FdoWmsGetFeatureClassCRSNamesCommand: public FdoWmsCommand< FdoIGetFeatureClassCRSNames > |
245 | | { |
246 | | friend class FdoWmsConnection; |
247 | | |
248 | | protected: |
249 | | // |
250 | | // Prevent the use of the copy constructor by definning it and not implemeting it. |
251 | | // DO NOT IMPLEMENT |
252 | | FdoWmsGetFeatureClassCRSNamesCommand (const FdoWmsGetFeatureClassCRSNamesCommand &right); |
253 | | |
254 | | // <summary>Constructs an instance of a command for the given connection. </summary> |
255 | | // <returns>Returns nothing</returns> |
256 | | FdoWmsGetFeatureClassCRSNamesCommand (FdoIConnection* connection); |
257 | | |
258 | | // <summary>Virtual Destructor.</summary> |
259 | | // <returns>Returns nothing</returns> |
260 | | virtual ~ FdoWmsGetFeatureClassCRSNamesCommand (void); |
261 | | |
262 | | // <summary>Dispose this object.</summary> |
263 | | // <returns>Returns nothing</returns> |
264 | | virtual void Dispose (); |
265 | | |
266 | | // Prevent the use of the Assignment Operation by defining it and not implementing it. |
267 | | // DO NOT IMPLEMENT |
268 | | FdoWmsGetFeatureClassCRSNamesCommand & operator= (const FdoWmsGetFeatureClassCRSNamesCommand &right); |
269 | | |
270 | | public: |
271 | | // |
272 | | /// <summary> Gets the name of the FeatureClass to get all supported CRS names. </summary> |
273 | | /// <returns>Returns the FeatureClass name</returns> |
274 | | virtual FdoString* GetFeatureClassName (); |
275 | | |
276 | | /// <summary> Sets the name of the FeatureClass to get all supported CRS names. |
277 | | /// This function is mandatory; if not specified, |
278 | | /// execution of the command will throw exception. |
279 | | /// </summary> |
280 | | /// <param name="value">Input the FeatureClass name</param> |
281 | | /// <returns>Returns nothing</returns> |
282 | | virtual void SetFeatureClassName (FdoString* value); |
283 | | |
284 | | /// <summary> |
285 | | /// Executes the GetFeatureClassCRSNames command and returns a |
286 | | /// FdoStringCollection, which contains entire CRS names supported by feature class. |
287 | | /// and all CRS names supported by its ancestors, because WMS service supports CRS |
288 | | /// declarations are inherited by child Layers. |
289 | | /// </summary> |
290 | | /// <returns> Returns the CRS names collection supported by FeatureClass.</returns> |
291 | | virtual FdoStringCollection* Execute (); |
292 | | |
293 | | private: |
294 | | FdoStringP mFeatureClassName; |
295 | | }; |