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
17namespace libetonyek
18{
19
20class IWAMessage;
21
22namespace 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::IWAMessage
Definition IWAMessage.h:22
libetonyek_utils.h
libetonyek::IWAReader
Definition IWAReader.cpp:29
libetonyek
Definition IWORKBezierElement.cpp:21
libetonyek::RVNGInputStreamPtr_t
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr_t
Definition libetonyek_utils.h:82
libetonyek::IWAReader::Bool
Definition IWAReader.h:46
libetonyek::IWAReader::Bool::read
static bool read(const RVNGInputStreamPtr_t &input, unsigned long length)
Definition IWAReader.cpp:51
libetonyek::IWAReader::Bytes
Definition IWAReader.h:66
libetonyek::IWAReader::Bytes::read
static const RVNGInputStreamPtr_t read(const RVNGInputStreamPtr_t &input, unsigned long length)
Definition IWAReader.cpp:77
libetonyek::IWAReader::Double
Definition IWAReader.h:56
libetonyek::IWAReader::Double::read
static double read(const RVNGInputStreamPtr_t &input, unsigned long length)
Definition IWAReader.cpp:61
libetonyek::IWAReader::Fixed32
Definition IWAReader.h:76
libetonyek::IWAReader::Fixed32::read
static uint32_t read(const RVNGInputStreamPtr_t &input, unsigned long length)
Definition IWAReader.cpp:95
libetonyek::IWAReader::Fixed64
Definition IWAReader.h:51
libetonyek::IWAReader::Fixed64::read
static uint64_t read(const RVNGInputStreamPtr_t &input, unsigned long length)
Definition IWAReader.cpp:56
libetonyek::IWAReader::Float
Definition IWAReader.h:81
libetonyek::IWAReader::Float::read
static float read(const RVNGInputStreamPtr_t &input, unsigned long length)
Definition IWAReader.cpp:100
libetonyek::IWAReader::Message
Definition IWAReader.h:71
libetonyek::IWAReader::Message::read
static IWAMessage read(const RVNGInputStreamPtr_t &input, unsigned long length)
Definition IWAReader.cpp:88
libetonyek::IWAReader::SInt32
Definition IWAReader.h:36
libetonyek::IWAReader::SInt32::read
static int32_t read(const RVNGInputStreamPtr_t &input, unsigned long length)
Definition IWAReader.cpp:46
libetonyek::IWAReader::SInt64
Definition IWAReader.h:41
libetonyek::IWAReader::SInt64::read
static int64_t read(const RVNGInputStreamPtr_t &input, unsigned long length)
Definition IWAReader.cpp:41
libetonyek::IWAReader::String
Definition IWAReader.h:61
libetonyek::IWAReader::String::read
static std::string read(const RVNGInputStreamPtr_t &input, unsigned long length)
Definition IWAReader.cpp:66
libetonyek::IWAReader::UInt32
Definition IWAReader.h:26
libetonyek::IWAReader::UInt32::read
static uint32_t read(const RVNGInputStreamPtr_t &input, unsigned long length)
Definition IWAReader.cpp:31
libetonyek::IWAReader::UInt64
Definition IWAReader.h:31
libetonyek::IWAReader::UInt64::read
static uint64_t read(const RVNGInputStreamPtr_t &input, unsigned long length)
Definition IWAReader.cpp:36