Changes between Version 13 and Version 14 of FDORfc17
- Timestamp:
- 03/25/08 08:08:05 (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FDORfc17
v13 v14 36 36 {{{ 37 37 // Utilities 38 #define BEGIN _NAMESPACE_OSGEO_FDO_UTILITIESnamespace OSGeo { namespace FDO { namespace Utilities {39 #define BEGIN _NAMESPACE_OSGEO_FDO_UTILITIES}}}}38 #define BEGIN::OSGeo::FDO::Utilities namespace OSGeo { namespace FDO { namespace Utilities { 39 #define BEGIN::OSGeo::FDO::Utilities }}}} 40 40 41 41 // Expression Engine 42 #define BEGIN_NAMESPACE_OSGEO_FDO_UTILITIES_EXPRESSIONENGINE namespace OSGeo { namespace FDO { namespace Utilities { namespace ExpressionEngine { 43 #define END_NAMESPACE_ASGEO_FDO_UTILITIES_EXPRESSIONENGINE }}}}} 44 45 // Namespaces 46 #define NAMESPACE_OSGEO_FDO_UTILITIES OSGeo::FDO::Utilities 47 #define NAMESPACE_OSGEO_FDO_UTILITIES_EXPRESSIONENGINE OSGeo::FDO::Utilities::ExpressionEngine 42 #define BEGIN::OSGeo::FDO::Utilities::ExpressionEngine namespace OSGeo { namespace FDO { namespace Utilities { namespace ExpressionEngine { 43 #define END::NAMESPACE::ASGEO::FDO::Utilities::ExpressionEngine }}}}} 48 44 }}} 49 45 … … 52 48 {{{ 53 49 54 public __gc class ExpressionEngine : public NAMESPACE_OSGEO_RUNTIME::Disposable50 public __gc class ExpressionEngine : public OSGeo::Runtime::Disposable 55 51 { 56 52 public: … … 67 63 /// Input User defined functions 68 64 /// 69 ExpressionEngine(OSG EO_FDO_COMMANDS_FEATURE::IReader* reader,70 OSG EO_FDO_SCHEMA::ClassDefinition* classDef,71 OSG EO_FDO_UTILITIES_EXPRESSIONENGINE::FunctionCollection *userDefinedFunctions);65 ExpressionEngine(OSGeo::FDO::Commands::FEATURE::IReader* reader, 66 OSGeo::FDO::Schema::ClassDefinition* classDef, 67 OSGeo::FDO::Utilities::ExpressionEngine::FunctionCollection* userDefinedFunctions); 72 68 73 69 /// \brief … … 89 85 /// Returns ExpressionEngine 90 86 /// 91 ExpressionEngine(OSG EO_FDO_COMMANDS_FEATURE::IReader* reader,92 OSG EO_FDO_SCHEMA::ClassDefinition* classDef,93 OSG EO_FDO_COMMANDS::IdentifierCollection* identifiers,94 OSG EO_FDO_UTILITIES_EXPRESSIONENGINE::FunctionCollection *userDefinedFunctions);87 ExpressionEngine(OSGeo::FDO::Commands::FEATURE::IReader* reader, 88 OSGeo::FDO::Schema::ClassDefinition* classDef, 89 OSGeo::FDO::Commands::IdentifierCollection* identifiers, 90 OSGeo::FDO::Utilities::ExpressionEngine::FunctionCollection* userDefinedFunctions); 95 91 96 92 /// \brief … … 103 99 /// Returns a literal value. This value is valid until the next Evaluate call 104 100 /// 105 OSG EO_FDO_EXPRESSION::LiteralValue* Evaluate(OSGEO_FDO_EXPRESSION::Expression *expression);101 OSGeo::FDO::Expression::LiteralValue* Evaluate(OSGeo::FDO::Expression::Expression* expression); 106 102 107 103 /// \brief … … 114 110 /// Returns a literal value. This value is valid until the next Evaluate call 115 111 /// 116 OSG EO_FDO_EXPRESSION::LiteralValue* Evaluate(System::String* name);112 OSGeo::FDO::Expression::LiteralValue* Evaluate(System::String* name); 117 113 118 114 /// \brief … … 125 121 /// Returns a literal value. This value is valid until the next Evaluate call 126 122 /// 127 OSGEO_FDO_EXPRESSION::LiteralValue* Evaluate(OSGEO_FDO_EXPRESSION::Identifier* expr); 128 123 OSGeo::FDO::Expression::LiteralValue* Evaluate(OSGeo::FDO::Expression::Identifier* expr); 129 124 130 125 /// \brief … … 134 129 /// Returns the aggragate results 135 130 /// 136 OSG EO_FDO_COMMANDS::PropertyValueCollection* RunQuery();131 OSGeo::FDO::Commands::PropertyValueCollection* RunQuery(); 137 132 138 133 /// \brief … … 145 140 /// Returns true id passes the filter, otherwise false 146 141 /// 147 System::Boolean ProcessFilter(OSG EO_FDO_FILTER::Filter *filter);142 System::Boolean ProcessFilter(OSGeo::FDO::Filter::Filter* filter); 148 143 149 144 /// \brief … … 153 148 /// Returns the functions 154 149 /// 155 OSG EO_FDO_CONNECTIONS_CAPABILITIES::FunctionDefinitionCollection *GetAllFunctions();150 OSGeo::FDO::Connections::Capabilities::FunctionDefinitionCollection* GetAllFunctions(); 156 151 157 152 /// \brief … … 161 156 /// Returns the functions 162 157 /// 163 static OSG EO_FDO_CONNECTIONS_CAPABILITIES::FunctionDefinitionCollection *GetStandardFunctions();158 static OSGeo::FDO::Connections::Capabilities::FunctionDefinitionCollection* GetStandardFunctions(); 164 159 165 160 /// \brief … … 181 176 /// Throws an exception is filter is not valid 182 177 /// 183 static System::Void ValidateFilter(OSG EO_FDO_SCHEMA::ClassDefinition *cls,184 OSG EO_FDO_FILTER::Filter *filter,185 OSG EO_FDO_COMMANDS::IdentifierCollection *selIds = NULL,186 OSG EO_FDO_CONNECTIONS_CAPABILITIES::IFilterCapabilities *filterCapabilities = NULL);178 static System::Void ValidateFilter(OSGeo::FDO::Schema::ClassDefinition *cls, 179 OSGeo::FDO::Filter::Filter *filter, 180 OSGeo::FDO::Commands::IdentifierCollection *selIds, 181 OSGeo::FDO::Connections::Capabilities::IFilterCapabilities *filterCapabilities); 187 182 188 183 /// \brief … … 195 190 /// The optimized filter 196 191 /// 197 static OSG EO_FDO_FILTER::Filter* OptimizeFilter( OSGEO_FDO_FILTER::Filter *filter );192 static OSGeo::FDO::Filter::Filter* OptimizeFilter( OSGeo::FDO::Filter::Filter *filter ); 198 193 199 194 /// \brief … … 209 204 /// True if the function is an aggregate function otherwise false 210 205 /// 211 static System::Boolean IsAggregateFunction(OSG EO_FDO_CONNECTIONS_CAPABILITIES::FunctionDefinitionCollection *funcDefs, System::String *name);206 static System::Boolean IsAggregateFunction(OSGeo::FDO::Connections::Capabilities::FunctionDefinitionCollection *funcDefs, System::String *name); 212 207 213 208 /// \brief … … 229 224 /// Returns nothing 230 225 /// 231 static System::Void GetExpressionType(OSG EO_FDO_CONNECTIONS_CAPABILITIES::FunctionDefinitionCollection *functionDefinitions,232 OSG EO_FDO_SCHEMA::ClassDefinition*originalClassDef,233 OSG EO_FDO_EXPRESSION::Expression *expr,234 OSG EO_FDO_SCHEMA::PropertyType &retPropType,235 OSG EO_FDO_SCHEMA::DataType &retDataType);226 static System::Void GetExpressionType(OSGeo::FDO::Connections::Capabilities::FunctionDefinitionCollection *functionDefinitions, 227 OSGeo::FDO::Schema::ClassDefinition *originalClassDef, 228 OSGeo::FDO::Expression::Expression *expr, 229 OSGeo::FDO::Schema::PropertyType *retPropType, 230 OSGeo::FDO::Schema::DataType *retDataType); 236 231 237 232 /// \brief … … 250 245 /// Returns nothing 251 246 /// 252 static System::Void GetExpressionType(OSG EO_FDO_SCHEMA::ClassDefinition* originalClassDef,253 OSG EO_FDO_EXPRESSION::Expression *expr,254 OSG EO_FDO_SCHEMA::PropertyType &retPropType,255 OSG EO_FDO_SCHEMA::DataType &retDataType);247 static System::Void GetExpressionType(OSGeo::FDO::Schema::ClassDefinition* originalClassDef, 248 OSGeo::FDO::Expression::Expression *expr, 249 OSGeo::FDO::Schema::PropertyType *retPropType, 250 OSGeo::FDO::Schema::DataType *retDataType); 256 251 257 252 /// \brief … … 264 259 /// Returns nothing 265 260 /// 266 static System::Void RegisterFunctions(OSGEO_FDO_UTILITIES_EXPRESSIONENGINE::FunctionCollection *userDefinedFunctions); 267 261 static System::Void RegisterFunctions(OSGeo::FDO::Utilities::ExpressionEngine::FunctionCollection *userDefinedFunctions); 268 262 }; 269 263 … … 277 271 /// 278 272 public __gc class CopyFilter : 279 public virtual OSG EO_FDO_EXPRESSION::IExpressionProcessor,280 public virtual OSG EO_FDO_FILTER::IFilterProcessor273 public virtual OSGeo::FDO::Expression::IExpressionProcessor, 274 public virtual OSGeo::FDO::Filter::IFilterProcessor 281 275 { 282 276 public: … … 289 283 /// Static methods needed for copy/constructing filter and expression objects 290 284 /// 291 static OSG EO_FDO_FILTER::Filter* Copy( OSGEO_FDO_FILTER::Filter *filter );292 static OSG EO_FDO_EXPRESSION::Expression* Copy( OSGEO_FDO_EXPRESSION::Expression *expression );293 static OSG EO_FDO_FILTER::Filter* Copy( OSGEO_FDO_FILTER::Filter *filter, OSGEO_FDO_COMMANDS::IdentifierCollection* idList );294 static OSG EO_FDO_EXPRESSION::Expression* Copy( OSGEO_FDO_EXPRESSION::Expression *expression, OSGEO_FDO_COMMANDS::IdentifierCollection* idList );285 static OSGeo::FDO::Filter::Filter* Copy( OSGeo::FDO::Filter::Filter *filter ); 286 static OSGeo::FDO::Expression::Expression* Copy( OSGeo::FDO::Expression::Expression *expression ); 287 static OSGeo::FDO::Filter::Filter* Copy( OSGeo::FDO::Filter::Filter *filter, OSGeo::FDO::Commands::IdentifierCollection* idList ); 288 static OSGeo::FDO::Expression::Expression* Copy( OSGeo::FDO::Expression::Expression *expression, OSGeo::FDO::Commands::IdentifierCollection* idList ); 295 289 296 290 /// \brief 297 291 /// Gets the FDO Expression associated to the CopyFilter 298 292 /// 299 OSG EO_FDO_EXPRESSION::Expression* GetExpression();293 OSGeo::FDO::Expression::Expression* GetExpression(); 300 294 301 295 /// \brief 302 296 /// Gets the FDO Filter associated to the CopyFilter 303 297 /// 304 OSG EO_FDO_FILTER::Filter* GetFilter();298 OSGeo::FDO::Filter::Filter* GetFilter(); 305 299 }; 306 300 }}}