IWAReader.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3  * This file is part of the libetonyek project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  */
9 
10 #ifndef IWAREADER_H_INCLUDED
11 #define IWAREADER_H_INCLUDED
12 
13 #include <string>
14 
15 #include "libetonyek_utils.h"
16 
17 namespace libetonyek
18 {
19 
20 class IWAMessage;
21 
22 namespace IWAReader
23 {
24 
25 struct UInt32
26 {
27  static uint32_t read(const RVNGInputStreamPtr_t &input, unsigned long length);
28 };
29 
30 struct UInt64
31 {
32  static uint64_t read(const RVNGInputStreamPtr_t &input, unsigned long length);
33 };
34 
35 struct SInt32
36 {
37  static int32_t read(const RVNGInputStreamPtr_t &input, unsigned long length);
38 };
39 
40 struct SInt64
41 {
42  static int64_t read(const RVNGInputStreamPtr_t &input, unsigned long length);
43 };
44 
45 struct Bool
46 {
47  static bool read(const RVNGInputStreamPtr_t &input, unsigned long length);
48 };
49 
50 struct Fixed64
51 {
52  static uint64_t read(const RVNGInputStreamPtr_t &input, unsigned long length);
53 };
54 
55 struct Double
56 {
57  static double read(const RVNGInputStreamPtr_t &input, unsigned long length);
58 };
59 
60 struct String
61 {
62  static std::string read(const RVNGInputStreamPtr_t &input, unsigned long length);
63 };
64 
65 struct Bytes
66 {
67  static const RVNGInputStreamPtr_t read(const RVNGInputStreamPtr_t &input, unsigned long length);
68 };
69 
70 struct Message
71 {
72  static IWAMessage read(const RVNGInputStreamPtr_t &input, unsigned long length);
73 };
74 
75 struct Fixed32
76 {
77  static uint32_t read(const RVNGInputStreamPtr_t &input, unsigned long length);
78 };
79 
80 struct Float
81 {
82  static float read(const RVNGInputStreamPtr_t &input, unsigned long length);
83 };
84 
85 }
86 
87 }
88 
89 #endif
90 
91 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
static uint32_t read(const RVNGInputStreamPtr_t &input, unsigned long length)
Definition: IWAReader.cpp:31
Definition: IWORKBezierElement.cpp:18
Definition: IWAReader.h:50
Definition: IWAReader.h:75
Definition: IWAReader.h:65
Definition: IWAReader.h:40
Definition: IWAReader.h:35
Definition: IWAReader.h:80
Definition: IWAReader.h:55
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr_t
Definition: libetonyek_utils.h:82
Definition: IWORKToken.h:266
Definition: IWAReader.h:30
Definition: IWAReader.h:25
Definition: IWAMessage.h:21
Definition: IWAReader.h:45
Definition: IWAReader.h:60
Definition: IWAReader.h:70

Generated for libetonyek by doxygen 1.8.13