2004-11-13 01:55:00 +00:00
|
|
|
#ifndef __ruamoko_PropertyList_h
|
|
|
|
#define __ruamoko_PropertyList_h
|
|
|
|
|
|
|
|
#include "plist.h"
|
|
|
|
#include "Object.h"
|
|
|
|
|
|
|
|
@interface PLItem: Object
|
|
|
|
{
|
|
|
|
plitem_t item;
|
|
|
|
integer own;
|
|
|
|
}
|
2011-01-09 10:41:24 +00:00
|
|
|
+ (PLItem []) newDictionary;
|
|
|
|
+ (PLItem []) newArray;
|
|
|
|
+ (PLItem []) newData:(void[]) data size:(integer) len;
|
|
|
|
+ (PLItem []) newString:(string) str;
|
|
|
|
+ (PLItem []) fromString:(string) str;
|
|
|
|
+ (PLItem []) fromFile:(QFile) file;
|
2004-11-13 01:55:00 +00:00
|
|
|
|
2006-12-02 06:51:41 +00:00
|
|
|
- initWithItem:(plitem_t) item;
|
|
|
|
- initWithOwnItem:(plitem_t) item;
|
2004-11-13 01:55:00 +00:00
|
|
|
- (string) write;
|
|
|
|
- (pltype_t) type;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface PLDictionary: PLItem
|
2011-01-09 10:41:24 +00:00
|
|
|
+ (PLDictionary []) new;
|
2004-11-13 01:55:00 +00:00
|
|
|
|
|
|
|
- (integer) count;
|
|
|
|
- (integer) numKeys;
|
2011-01-09 10:41:24 +00:00
|
|
|
- (PLItem []) getObjectForKey:(string) key;
|
|
|
|
- (PLItem []) allKeys;
|
|
|
|
- addKey:(string) key value:(PLItem []) value;
|
2004-11-13 01:55:00 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
@interface PLArray: PLItem
|
2011-01-09 10:41:24 +00:00
|
|
|
+ (PLArray []) new;
|
2004-11-13 01:55:00 +00:00
|
|
|
|
|
|
|
- (integer) count;
|
|
|
|
- (integer) numObjects;
|
2011-01-09 10:41:24 +00:00
|
|
|
- (PLItem []) getObjectAtIndex:(integer) index;
|
|
|
|
- addObject:(PLItem []) object;
|
|
|
|
- insertObject:(PLItem []) object atIndex:(integer) index;
|
2004-11-13 01:55:00 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
@interface PLData: PLItem
|
2011-01-09 10:41:24 +00:00
|
|
|
+ (PLData []) new:(void[]) data size:(integer) len;
|
2004-11-13 01:55:00 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
@interface PLString: PLItem
|
2011-01-09 10:41:24 +00:00
|
|
|
+ (PLString []) new:(string) str;
|
2004-11-13 01:55:00 +00:00
|
|
|
|
|
|
|
- (string) string;
|
|
|
|
@end
|
|
|
|
|
|
|
|
#endif//__ruamoko_PropertyList_h
|