forked from apaffenholz/PolyViewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DatabaseAccess.h
54 lines (41 loc) · 1.53 KB
/
DatabaseAccess.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
//
// DatabaseAccess.h
// PolyViewer
//
// Created by Andreas Paffenholz on 08/02/14.
//
//
#import <Foundation/Foundation.h>
@interface DatabaseAccess : NSObject {
NSString * _database;
NSString * _collection;
NSString * _ID;
NSString * _reportNumberOfResults;
// A dictionary that contains additional restrictions for the database search
// in the form of property-value pairs.
// passed to polymake as hash in the form "property=>value"
NSDictionary * _additionalPropertiesDict;
// the max number of elements retrieved from the database
// passed to polymake as "limit=><amount>"
NSString * _amount;
// the number of elements of the query skipped from the beginning
// passed to polymake in the form "skip=><skip>"
NSString * _skip;
// the list of available databases
NSArray * _databases;
NSArray * _collections;
NSArray * _IDs;
}
@property (readwrite,copy) NSArray * databases;
@property (readwrite,copy) NSArray * collections;
@property (readwrite,copy) NSString * database;
@property (readwrite,copy) NSString * collection;
@property (readwrite,copy) NSString * ID;
@property (readwrite,copy) NSString * reportNumberOfResults;
@property (readwrite,retain) NSString * skip;
@property (readwrite,copy) NSString * amount;
- (IBAction)updateAdditionalPropertiesDict:(id)sender;
- (NSString *) additionalPropertiesAsString;
- (NSInteger)queryDBwithDatabase:db andCollection:coll;
- (NSArray *)getIDsForDatabase:db andCollection:coll;
@end