-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ILStockIndex.h
67 lines (39 loc) · 1.31 KB
/
ILStockIndex.h
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
56
57
58
59
60
61
62
63
64
65
66
67
@import Foundation;
#import <Soup/ILSoupIndex.h>
NS_ASSUME_NONNULL_BEGIN
@protocol ILSoup;
// MARK: -
@interface ILStockIndex : NSObject <ILSoupIndex>
@end
// MARK: -
@interface ILStockIdentityIndex : ILStockIndex <ILSoupIdentityIndex>
@end
// MARK: -
@interface ILStockAncestryIndex : ILStockIdentityIndex <ILSoupAncestryIndex>
@end
// MARK: -
@interface ILStockTextIndex : ILStockIndex <ILSoupTextIndex>
@end
// MARK: -
@interface ILStockNumberIndex : ILStockIndex <ILSoupNumberIndex>
@end
// MARK: -
@interface ILStockDateIndex : ILStockIndex <ILSoupDateIndex>
@end
// MARK: -
/// a stock cursor, which contains the entries provided
@interface ILStockCursor : NSObject <ILSoupCursor>
- (instancetype) initWithEntries:(NSArray<id<ILSoupEntry>>*) entries;
@end
// MARK: -
/// a cursor of Aliases, and the soup from which they can be fetched
@interface ILStockAliasCursor : NSObject <ILSoupCursor>
/// @brief init the cursor with:
/// @param aliases - an array of entry aliiases in the provided
/// @param sourceSoup - if provided, use this soup to resolve aliases to entries, if not provided
- (instancetype) initWithAliases:(NSArray<NSString*>*) aliases inSoup:(id<ILSoup> _Nullable) sourceSoup;
// MARK: -
/// - Returns: the next alias in the cursor
- (nullable NSString*) nextAlias;
@end
NS_ASSUME_NONNULL_END