-
Notifications
You must be signed in to change notification settings - Fork 0
/
OCGIForm.h
28 lines (23 loc) · 1.17 KB
/
OCGIForm.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
#pragma once
#include "cgic.h"
#import <Foundation/Foundation.h>
@interface OCGIForm : NSObject {
/* No instance field. */
}
+(NSDictionary *) stringBy:(NSString *)name length:(NSNumber *)max;
+(NSDictionary *) stringNoNewlinesBy:(NSString *)name length:(NSNumber *)max;
+(NSDictionary *) stringSpaceNeededBy:(NSString *)name;
+(NSDictionary *) integerBy:(NSString *)name defaultValue:(NSNumber *)defaultV;
+(NSDictionary *) integerBoundedBy:(NSString *)name \
min:(NSNumber *)min max:(NSNumber *)max defaultValue:(NSNumber *)defaultV;
+(NSDictionary *) doubleBy:(NSString *)name defaultValue:(NSNumber *)defaultV;
+(NSDictionary *) doubleBoundedBy:(NSString *)name \
min:(NSNumber *)min max:(NSNumber *)max defaultValue:(NSNumber *)defaultV;
+(NSDictionary *) selectSingleBy:(NSString *)name \
choices:(NSArray *)choices defaultValue:(NSNumber *)defaultV;
+(NSDictionary *) selectMultipleBy:(NSString *)name choices:(NSArray *)choices;
+(NSNumber *) checoboxSingleBy:(NSString *)name;
+(NSDictionary *) checkboxMultipleBy:(NSString *)name choices:(NSArray *)choices;
+(NSDictionary *) radioBy:(NSString *)name \
values:(NSArray *)values defaultValue:(NSNumber *)defaultV;
@end