-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpattern.h
More file actions
38 lines (31 loc) · 906 Bytes
/
pattern.h
File metadata and controls
38 lines (31 loc) · 906 Bytes
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
//
// pattern.h
// gesture-recognition_test
//
// Created by divol on 28/06/11.
/*
* This work is based on Action Script Mouse Gesture Recognizer
*
* from Didier Brun
* @link http://www.bytearray.org/?p=91
* This class is under RECIPROCAL PUBLIC LICENSE.
* http://www.opensource.org/licenses/rpl.php
*
* Please, keep this header and the list of all authors
*/
#import <Foundation/Foundation.h>
#import "Info.h"
@interface pattern : NSObject {
NSString* name;
NSString* pathpattern;
NSString* matcher;
}
@property (nonatomic, retain) NSString* name;
@property (nonatomic, retain) NSString* pathpattern;
@property (nonatomic, retain) NSString* matcher;
+(NSArray*)getConfiguredPatterns;
//init part
-(id)initWithParams:(NSString*) aname pattern:(NSString*)apattern matcher:(NSString*)amatcher;
-(unsigned int)match:(Info *) info;
-(NSArray*) pathpatternAsNumbers;
@end