-
Notifications
You must be signed in to change notification settings - Fork 0
/
export.hpp
48 lines (30 loc) · 1.05 KB
/
export.hpp
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
48
#ifndef TOKOX_CPP_JSON_EXPORT_HPP
#define TOKOX_CPP_JSON_EXPORT_HPP
#include <sstream>
#include <stdexcept>
#include "object.hpp"
namespace tokox::json
{
template<class IT>
IT& format(const object& obj, IT& it, int tab);
std::string& format(const object& obj, std::string& out_str, int tab = -1);
std::string format(const object& obj, int tab = -1);
std::ostream& format(const object& obj, std::ostream& out_stream, int tab = -1);
std::ostream& operator<<(std::ostream& out_stream, const object& obj);
template<class IT>
IT& format_null(const object& obj, IT& it, int = -1);
template<class IT>
IT& format_bool(const object& obj, IT& it, int = -1);
template<class IT>
IT& format_int(const object& obj, IT& it, int = -1);
template<class IT>
IT& format_float(const object& obj, IT& it, int = -1);
template<class IT>
IT& format_string(const object& obj, IT& it, int = -1);
template<class IT>
IT& format_vector(const object& obj, IT& it, int tab = -1);
template<class IT>
IT& format_map(const object& obj, IT& it, int tab = -1);
}
#include "export.cpp"
#endif