Oolite
Loading...
Searching...
No Matches
OOPListParsing.h
Go to the documentation of this file.
1/*
2
3OOPListParsing.h
4
5Property list parser. Tries to use native Foundation property list parsing,
6then falls back on Oolite ad-hoc parser for backwards-compatibility (Oolite's
7XML plist parser is more lenient than Foundation on OS X).
8
9Oolite
10Copyright (C) 2004-2013 Giles C Williams and contributors
11
12This program is free software; you can redistribute it and/or
13modify it under the terms of the GNU General Public License
14as published by the Free Software Foundation; either version 2
15of the License, or (at your option) any later version.
16
17This program is distributed in the hope that it will be useful,
18but WITHOUT ANY WARRANTY; without even the implied warranty of
19MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20GNU General Public License for more details.
21
22You should have received a copy of the GNU General Public License
23along with this program; if not, write to the Free Software
24Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
25MA 02110-1301, USA.
26
27*/
28
29#import <Foundation/Foundation.h>
30
31// whereFrom is an optional description of the data source, for error reporting.
32id OOPropertyListFromData(NSData* data, NSString* whereFrom);
33id OOPropertyListFromFile(NSString* path);
34
35// Wrappers which ensure that the plist contains the right type of object.
36NSDictionary* OODictionaryFromData(NSData* data, NSString* whereFrom);
37NSDictionary* OODictionaryFromFile(NSString* path);
38
39NSArray* OOArrayFromData(NSData* data, NSString* whereFrom);
40NSArray* OOArrayFromFile(NSString* path);
NSArray * OOArrayFromData(NSData *data, NSString *whereFrom)
id OOPropertyListFromData(NSData *data, NSString *whereFrom)
id OOPropertyListFromFile(NSString *path)
NSDictionary * OODictionaryFromFile(NSString *path)
NSArray * OOArrayFromFile(NSString *path)
NSDictionary * OODictionaryFromData(NSData *data, NSString *whereFrom)