aboutsummaryrefslogtreecommitdiff
path: root/iosApp/WhirlyGlobeMaplyComponent.xcframework/ios-arm64_x86_64-simulator/WhirlyGlobeMaplyComponent.framework/Headers/SLDExpressions.h
blob: 43a042d28a0f2b03b7d31f4fc48af78e3c38091e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//
//  SLDExpressions.h
//  SLDTest
//
//  Created by Ranen Ghosh on 2016-08-12.
//  Copyright 2016-2019 mousebird consulting.
//

#import <Foundation/Foundation.h>
@class DDXMLNode;
@class DDXMLElement;

/** @brief Base class for elements derived from the ogc:expression abstract element.
 @see http://schemas.opengis.net/filter/1.1.0/expr.xsd for SLD v1.1.0
 @see http://schemas.opengis.net/filter/1.0.0/expr.xsd for SLD v1.0.0
 */
@interface SLDExpression : NSObject
@property (nonatomic, strong) NSExpression * _Nonnull expression;
+ (BOOL)matchesElementNamed:(NSString * _Nonnull)elementName;
+ (SLDExpression * _Nullable)expressionForNode:(DDXMLNode * _Nonnull )node;
@end


/** @brief Class corresponding to the ogc:PropertyName element
 @see http://schemas.opengis.net/filter/1.1.0/expr.xsd for SLD v1.1.0
 @see http://schemas.opengis.net/filter/1.0.0/expr.xsd for SLD v1.0.0
 */
@interface SLDPropertyNameExpression : SLDExpression
@property (nonatomic, strong) NSString * _Nonnull propertyName;
- (_Nullable id)initWithElement:(DDXMLElement * _Nonnull)element;
@end

/** @brief Class corresponding to the ogc:Literal element
 @see http://schemas.opengis.net/filter/1.1.0/expr.xsd for SLD v1.1.0
 @see http://schemas.opengis.net/filter/1.0.0/expr.xsd for SLD v1.0.0
 */
@interface SLDLiteralExpression : SLDExpression
@property (nonatomic, strong) id _Nonnull literal;
- (_Nullable id)initWithElement:(DDXMLElement * _Nonnull)element;
@end

/** @brief Class corresponding to the ogc:BinaryOperatorType elements
 @see http://schemas.opengis.net/filter/1.1.0/expr.xsd for SLD v1.1.0
 @see http://schemas.opengis.net/filter/1.0.0/expr.xsd for SLD v1.0.0
 */
@interface SLDBinaryOperatorExpression : SLDExpression

@property (nonatomic, strong) NSString * _Nonnull elementName;

@property (nonatomic, strong) SLDExpression * _Nonnull leftExpression;
@property (nonatomic, strong) SLDExpression * _Nonnull rightExpression;

- (_Nullable id)initWithElement:(DDXMLElement * _Nonnull)element;
@end