quakeforge/tools/Forge/Bundles/MapEdit/Dict.h

41 lines
889 B
C
Raw Normal View History

#ifndef Dict_h
#define Dict_h
#include <AppKit/AppKit.h>
#include "Storage.h"
2010-10-02 12:00:15 +00:00
struct script_s;
@interface Dict: NSObject
2010-09-11 16:41:18 +00:00
{
struct plitem_s *plist;
}
- (id) initFromData: (NSData *)data;
- (int) getValueUnits: (const char *)key;
- (struct plitem_s *) getArrayFor: (const char *)name;
- (const char *) getStringFor: (const char *)name;
- (unsigned int) getValueFor: (const char *)name;
- (id) changeStringFor: (const char *)key to: (const char *)value;
2010-09-11 10:06:04 +00:00
- (id) writeBlockTo: (FILE *)fp;
- (id) writeFile: (const char *)path;
2010-09-11 10:06:04 +00:00
2010-09-11 16:41:18 +00:00
@end
2010-09-11 16:41:18 +00:00
int GetNextChar (FILE * fp);
void CopyUntilWhitespc (FILE * fp, char *buffer);
void CopyUntilQuote (FILE * fp, char *buffer);
int FindBrace (FILE * fp);
int FindQuote (FILE * fp);
int FindWhitespc (FILE * fp);
int FindNonwhitespc (FILE * fp);
char *FindWhitespcInBuffer (char *buffer);
char *FindNonwhitespcInBuffer (char *buffer);
2010-09-11 10:06:04 +00:00
#endif // Dict_h