stlab.adobe.com Adobe Systems Incorporated
iomanip_pdf.hpp
Go to the documentation of this file.
1 /*
2  Copyright 2005-2007 Adobe Systems Incorporated
3  Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
4  or a copy at http://stlab.adobe.com/licenses.html)
5 */
6 
7 /*************************************************************************************************/
8 
9 #ifdef ADOBE_STD_SERIALIZATION
10 
11 /*************************************************************************************************/
12 
13 #ifndef ADOBE_IOMANIP_PDF_HPP
14 #define ADOBE_IOMANIP_PDF_HPP
15 
16 /*************************************************************************************************/
17 
18 #include <adobe/config.hpp>
19 
20 #include <adobe/iomanip.hpp>
21 
22 /*************************************************************************************************/
23 
24 namespace adobe {
25 
26 /*************************************************************************************************/
27 
29 class pdf_format : public format_base
30 {
31  typedef format_base inherited_t;
32 
33 public:
35 
36  virtual void begin_format(stream_type& os);
37 
38  virtual void begin_bag(stream_type& os, const std::string& ident);
39 
40  virtual void begin_sequence(stream_type& os);
41 
42  virtual void begin_atom(stream_type& os, const any_regular_t&);
43 
44 private:
45  virtual void stack_event(stream_type& os, bool is_push);
46 
47  void handle_atom(stream_type& os, bool is_push);
48 };
49 
50 /*************************************************************************************************/
51 
53 inline std::ostream& begin_pdf(std::ostream& os)
54 {
55  replace_pword<format_base, pdf_format>(os, format_base_idx());
56  return os << begin_format;
57 }
58 
59 /*************************************************************************************************/
60 
62 inline std::ostream& end_pdf(std::ostream& os)
63 { return os << end_format; }
64 
65 /*************************************************************************************************/
66 
67 } // namespace adobe
68 
69 /*************************************************************************************************/
70 
71 #endif
72 
73 /*************************************************************************************************/
74 
75 #endif
76 
77 /*************************************************************************************************/

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google