IWAReader.h Source File documentation

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: */
libetonyek::IWAReader::UInt32::read
static uint32_t read(const RVNGInputStreamPtr_t &input, unsigned long length)
Definition: IWAReader.cpp:31
libetonyek
Definition: IWORKBezierElement.cpp:20
libetonyek::IWAReader::Fixed64
Definition: IWAReader.h:50
libetonyek::IWAReader::Fixed32::read
static uint32_t read(const RVNGInputStreamPtr_t &input, unsigned long length)
Definition: IWAReader.cpp:95
libetonyek::IWAReader::SInt64::read
static int64_t read(const RVNGInputStreamPtr_t &input, unsigned long length)
Definition: IWAReader.cpp:41
libetonyek::IWAReader::Fixed32
Definition: IWAReader.h:75
libetonyek::IWAReader::Bytes
Definition: IWAReader.h:65
libetonyek::IWAReader::Message::read
static IWAMessage read(const RVNGInputStreamPtr_t &input, unsigned long length)
Definition: IWAReader.cpp:88
libetonyek::IWAReader::Bool::read
static bool read(const RVNGInputStreamPtr_t &input, unsigned long length)
Definition: IWAReader.cpp:51
libetonyek::IWAReader::SInt64
Definition: IWAReader.h:40
libetonyek::IWAReader::SInt32
Definition: IWAReader.h:35
libetonyek::IWAReader::Float
Definition: IWAReader.h:80
libetonyek::IWAReader::Double
Definition: IWAReader.h:55
libetonyek::IWAReader::String::read
static std::string read(const RVNGInputStreamPtr_t &input, unsigned long length)
Definition: IWAReader.cpp:66
libetonyek::IWAReader::Double::read
static double read(const RVNGInputStreamPtr_t &input, unsigned long length)
Definition: IWAReader.cpp:61
libetonyek::RVNGInputStreamPtr_t
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr_t
Definition: libetonyek_utils.h:82
libetonyek::IWORKToken::string
Definition: IWORKToken.h:411
libetonyek::IWAReader::UInt64
Definition: IWAReader.h:30
libetonyek::IWAReader::UInt32
Definition: IWAReader.h:25
libetonyek::IWAMessage
Definition: IWAMessage.h:21
libetonyek::IWAReader::Bytes::read
static const RVNGInputStreamPtr_t read(const RVNGInputStreamPtr_t &input, unsigned long length)
Definition: IWAReader.cpp:77
libetonyek::IWAReader::Fixed64::read
static uint64_t read(const RVNGInputStreamPtr_t &input, unsigned long length)
Definition: IWAReader.cpp:56
libetonyek_utils.h
libetonyek::IWAReader::Bool
Definition: IWAReader.h:45
libetonyek::IWAReader::Float::read
static float read(const RVNGInputStreamPtr_t &input, unsigned long length)
Definition: IWAReader.cpp:100
libetonyek::IWAReader::String
Definition: IWAReader.h:60
libetonyek::IWAReader::UInt64::read
static uint64_t read(const RVNGInputStreamPtr_t &input, unsigned long length)
Definition: IWAReader.cpp:36
libetonyek::IWAReader::Message
Definition: IWAReader.h:70
libetonyek::IWAReader::SInt32::read
static int32_t read(const RVNGInputStreamPtr_t &input, unsigned long length)
Definition: IWAReader.cpp:46