File: BCUtilCGI.h

package info (click to toggle)
biococoa 2.2.2-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,184 kB
  • sloc: objc: 21,348; makefile: 17; ansic: 4
file content (32 lines) | stat: -rw-r--r-- 1,051 bytes parent folder | download | duplicates (5)
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
//
//  BCUtilCGI.h
//  BioCocoa
//////////////////////////////////////////////////////////////////////////////////
//
//  Static methods that are useful when called from main() within the
//  context of a CGI app
//
//////////////////////////////////////////////////////////////////////////////////
//  Created by John Timmer on Fri Jul 30 2004.
//  Copyright (c) 2004 The BioCocoa Project. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface BCUtilCGI : NSObject {

}

// finds any data sent to the CGI application from the form which triggers it
// each data item is a dictionary entry with its name as the key.
// this will return nil if there was no input or trouble readin the input.
+ (NSDictionary *) retrieveFormData;

// allows an informative error message to be sent as HTML output, typically prior
// to exiting the application (it allows you to avoid having your whole application
// be a series of nested if statements before dumping any output to stdout).
+ (void) errorOutWithMessage: (NSString *)theMessage;


@end