Oolite 1.91.0.7645-241119-222d325
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
32// whereFrom is an optional description of the data source, for error reporting.
33id OOPropertyListFromData(NSData *data, NSString *whereFrom);
34id OOPropertyListFromFile(NSString *path);
35
36// Wrappers which ensure that the plist contains the right type of object.
37NSDictionary *OODictionaryFromData(NSData *data, NSString *whereFrom);
38NSDictionary *OODictionaryFromFile(NSString *path);
39
40NSArray *OOArrayFromData(NSData *data, NSString *whereFrom);
41NSArray *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)