forked from stlab/adobe_source_libraries
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiomanip_xml.hpp
68 lines (41 loc) · 2.03 KB
/
iomanip_xml.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*
Copyright 2013 Adobe
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
/**************************************************************************************************/
#ifdef ADOBE_STD_SERIALIZATION
/**************************************************************************************************/
#ifndef ADOBE_IOMANIP_XML_HPP
#define ADOBE_IOMANIP_XML_HPP
/**************************************************************************************************/
#include <adobe/config.hpp>
#include <adobe/iomanip.hpp>
/**************************************************************************************************/
namespace adobe {
/**************************************************************************************************/
//!\ingroup manipulator
class xml_format : public format_base {
typedef format_base inherited_t;
public:
typedef inherited_t::stream_type stream_type;
virtual void begin_format(stream_type& os);
virtual void begin_bag(stream_type& os, const std::string& ident);
virtual void begin_sequence(stream_type& os);
virtual void begin_atom(stream_type& os, const serializable_t&);
private:
virtual void stack_event(stream_type& os, bool is_push);
void handle_atom(stream_type& os, bool is_push);
};
/**************************************************************************************************/
//!\ingroup manipulator
std::ostream& begin_xml(std::ostream& os);
//!\ingroup manipulator
std::ostream& end_xml(std::ostream& os);
/**************************************************************************************************/
} // namespace adobe
/**************************************************************************************************/
#endif
/**************************************************************************************************/
#endif
/**************************************************************************************************/