view Question.h @ 49:a62e033117fa

sequence controller now generated new. but doesn't fix the bug. bad access cropping up...
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Mon, 12 Jan 2015 18:40:00 +0000
parents a223551fdc1f
children
line wrap: on
line source
//
//  Question.h
//  sonicZoom
//
//  Created by Robert Tubb on 21/01/2013.
//
// included by Qviewcont
#define NUM_CHOICES 5

#import <Foundation/Foundation.h>
typedef enum QuestionType{AGREE_DISAGREE, SLIDERS_ZOOMER} QuestionType;

@interface Question : NSObject
{
  
    
}
@property (strong, nonatomic) NSString *questionText;
@property QuestionType questionType;
@property int answer; // answer 0 means no answer was given (the blank line in picker) this distiguishes between "neither" and "don't know / no answer"

-(id)initWithTextAndType:(NSString *)text:(QuestionType)type;
+ (int)count;
+(NSArray *)answersWithType:(QuestionType)type;
@end