mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
33 lines
608 B
C++
33 lines
608 B
C++
#pragma once
|
|
|
|
#include "ByteStructure.h"
|
|
|
|
namespace DocFileFormat
|
|
{
|
|
class EndnoteDescriptor: public ByteStructure
|
|
{
|
|
private:
|
|
short aEndIdx;
|
|
|
|
public:
|
|
static const int STRUCTURE_SIZE = 2;
|
|
|
|
EndnoteDescriptor():
|
|
aEndIdx(0)
|
|
{
|
|
}
|
|
|
|
virtual ~EndnoteDescriptor()
|
|
{
|
|
}
|
|
|
|
virtual ByteStructure* ConstructObject( VirtualStreamReader* reader, int length )
|
|
{
|
|
EndnoteDescriptor *newObject = new EndnoteDescriptor();
|
|
|
|
newObject->aEndIdx = reader->ReadInt16();
|
|
|
|
return static_cast<ByteStructure*>( newObject );
|
|
}
|
|
};
|
|
} |