summaryrefslogtreecommitdiffstats
path: root/libconfig/Data.h
blob: 64d0bebf1788bac87a6d3d67e8200e467656abfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef DATA_H
#	define DATA_H

#include "String.h"

#include <Object.h>

#include <sys/types.h>

#define MALLOC_GRANULARITY 10		/* Malloc for every 10 entries. */

/*
 * Generic Entry and Data objects.
 */
@interface DataObject: Object
-(char *)createCStr;
-(String *)createStr;
-setFromBuffer: (const char *)buffer withLength: (int)len;
@end

@interface DictEntry: Object
{
	String *key;
	DataObject *data;
	DictEntry *super;
}

-init;
-setKey: (String *)keyName;
-setData: (DataObject *)dataPtr;
-getKey;
-getData;
@end
#endif