forked from urkle/libuc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathucio.h
47 lines (34 loc) · 1.17 KB
/
ucio.h
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
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* UniversalContainer library.
* Copyright Jason Denton, 2008,2010.
* Made available under the new BSD license, as described in LICENSE
*
* Send comments and bug reports to [email protected]
* http://www.greatpanic.com/code.html
*/
/*
Serializiation and deserializiation declarations, and convinence wrappers.
*/
#ifndef _UCIO_H_
#define _UCIO_H_
#include <string>
namespace JAD {
class UniversalContainer;
class Buffer;
//prototypes for serializers and deserializers
UniversalContainer uc_decode_ini(Buffer*);
Buffer* uc_encode_ini(const UniversalContainer& uc);
UniversalContainer uc_decode_form(Buffer*);
Buffer* uc_encode_form(const UniversalContainer& uc);
UniversalContainer uc_decode_binary(Buffer*);
Buffer* uc_encode_binary(const UniversalContainer&);
UniversalContainer uc_decode_json(Buffer*);
Buffer* uc_encode_json(const UniversalContainer&);
//basic print function
void print(UniversalContainer&);
//wrapper functions for ini decode/encode for ini files
UniversalContainer load_ini_file(const char*);
bool write_ini_file(const char*, UniversalContainer&);
UniversalContainer uc_from_json_file(const char*);
}
#endif