resonance 1.0.1
Loading...
Searching...
No Matches
hxchunkheader.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4
6
7class HxStream;
8
22public:
29 HxChunkHeader() : mName("????"), mSize(0), mIsList(0) {
30 }
31
42 HxChunkHeader(const HxChunkName &name, int nSize, int nIsList)
43 : mName(name), mSize(nSize), mIsList(nIsList) {
44 }
45
54 HxChunkName Name() const {
55 return mName;
56 }
57
71
80 void Print(std::ostream &stream);
81
83 int mSize;
84 int mIsList;
85};
86
Header of one RIFF or Standard MIDI File chunk: its name, its size, and whether it is a list.
Definition hxchunkheader.h:21
int mIsList
Definition hxchunkheader.h:84
void Print(std::ostream &stream)
Write the header to a diagnostic stream as LIST: for a list, the four characters, and the size in ang...
HxChunkHeader(const HxChunkName &name, int nSize, int nIsList)
Construct a header from its three fields.
Definition hxchunkheader.h:42
HxStream & Read(HxStream &stream)
Read the header from a stream.
HxChunkHeader()
Construct an unread header named ?
Definition hxchunkheader.h:29
HxChunkName Name() const
Report the chunk name by value.
Definition hxchunkheader.h:54
int mSize
Definition hxchunkheader.h:83
HxChunkName mName
Definition hxchunkheader.h:82
Seekable data source interface, unrelated to IBStream and OBStream.
Definition hxstream.h:35
HxStream & operator>>(HxStream &stream, HxChunkHeader &id)
Read a chunk header from a stream.
Four-character name of a RIFF or Standard MIDI File chunk.
Definition hxchunkname.h:19