71 lines
1.3 KiB
C++
71 lines
1.3 KiB
C++
#ifndef _AVIFILE_AVISUBCHUNK_HPP_
|
|
#define _AVIFILE_AVISUBCHUNK_HPP_
|
|
#ifndef _COMMON_WINDOWS_HPP_
|
|
#include <common/windows.hpp>
|
|
#endif
|
|
#ifndef _COMMON_FILE_HPP_
|
|
#include <common/file.hpp>
|
|
#endif
|
|
#ifndef _COMMON_STRING_HPP_
|
|
#include <common/string.hpp>
|
|
#endif
|
|
|
|
class AVISubChunk
|
|
{
|
|
public:
|
|
enum ChunkType{Index,Unknown};
|
|
AVISubChunk(void);
|
|
AVISubChunk(const AVISubChunk &someAVISubChunk);
|
|
virtual ~AVISubChunk();
|
|
AVISubChunk &operator=(const AVISubChunk &someAVISubChunk);
|
|
WORD operator==(AVISubChunk &someAVISubChunk)const;
|
|
ChunkType chunkType(void)const;
|
|
void chunkType(ChunkType chunkType);
|
|
bool read(File &inFile);
|
|
private:
|
|
ChunkType mChunkType;
|
|
};
|
|
|
|
inline
|
|
AVISubChunk::AVISubChunk(void)
|
|
: mChunkType(Unknown)
|
|
{
|
|
}
|
|
|
|
inline
|
|
AVISubChunk::AVISubChunk(const AVISubChunk &someAVISubChunk)
|
|
{
|
|
*this=someAVISubChunk;
|
|
}
|
|
|
|
inline
|
|
AVISubChunk::~AVISubChunk()
|
|
{
|
|
}
|
|
|
|
inline
|
|
AVISubChunk &AVISubChunk::operator=(const AVISubChunk &someAVISubChunk)
|
|
{
|
|
chunkType(someAVISubChunk.chunkType());
|
|
return *this;
|
|
}
|
|
|
|
inline
|
|
WORD AVISubChunk::operator==(AVISubChunk &someAVISubChunk)const
|
|
{
|
|
return (chunkType()==someAVISubChunk.chunkType());
|
|
}
|
|
|
|
inline
|
|
AVISubChunk::ChunkType AVISubChunk::chunkType(void)const
|
|
{
|
|
return mChunkType;
|
|
}
|
|
|
|
inline
|
|
void AVISubChunk::chunkType(ChunkType chunkType)
|
|
{
|
|
mChunkType=chunkType;
|
|
}
|
|
#endif
|