00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef __MK__ScorefileVar_H___
00031 #define __MK__ScorefileVar_H___
00032
00033 #import <Foundation/NSObject.h>
00034
00035
00036 #import "_MKParameter.h"
00037 #import "tokens.h"
00038
00039 @interface _ScorefileVar : NSObject
00040 {
00041 _MKToken token;
00042 _MKParameter *myParameter;
00043 BOOL (*preDaemon)();
00044
00045
00046
00047
00048
00049 void (*postDaemon)();
00050
00051
00052
00053
00054 BOOL readOnly;
00055 NSString *s;
00056 }
00057
00058 - copy;
00059 - writeScorefileStream:(NSMutableData *)aStream;
00060 - (NSString *) varName;
00061 - (void)dealloc;
00062
00063 @end
00064
00065 extern _MKParameter *_MKSFVarGetParameter(_ScorefileVar *sfVar);
00066 extern _ScorefileVar *_MKNewScorefileVar(_MKParameter *aPar, NSString * name, BOOL untyped, BOOL isReadOnly);
00067 extern int _MKSFVarInternalType(_ScorefileVar *sfVar);
00068 extern _MKParameterUnion *_MKSFVarRaw(_ScorefileVar *sfVar);
00069 extern int _MKSetDoubleSFVar(_ScorefileVar *sfVar, double floval);
00070 extern int _MKSetIntSFVar(_ScorefileVar *sfVar, int intval);
00071 extern int _MKSetStringSFVar(_ScorefileVar *sfVar, NSString *strval);
00072 extern int _MKSetEnvSFVar(_ScorefileVar *sfVar, id envelope);
00073 extern int _MKSetWaveSFVar(_ScorefileVar *sfVar, id waveTable);
00074 extern int _MKSetObjSFVar(_ScorefileVar *sfVar, id anObj);
00075 extern id _MKSetScorefileVarPreDaemon();
00076 extern id _MKSetScorefileVarPostDaemon();
00077 extern id _MKSetReadOnlySFVar(_ScorefileVar *sfVar, BOOL yesOrNo);
00078 void _MKSFSetPrintfunc();
00079
00080 #endif