Files
core/ASCOfficePDFReader/Array.h

52 lines
812 B
C++

#ifndef _ARRAY_H
#define _ARRAY_H
#include "Object.h"
class XRef;
//------------------------------------------------------------------------
// Array
//------------------------------------------------------------------------
class Array
{
public:
Array(XRef *pXRef);
~Array();
int AddRef()
{
return ++m_nRef;
}
int Release()
{
return --m_nRef;
}
int GetCount()
{
return m_nCount;
}
void Add(Object *pItem);
Object *Get(int nIndex, Object *pObject);
Object *GetCopy(int nIndex, Object *pObject);
private:
XRef *m_pXRef; // Òàáëèöà Xref äëÿ äàííîãî PDF äîêóìåíòà
Object *m_arrItems; // Ìàññèâ ýëåìåíòîâ
int m_nItemSize; // Ðàçìåð ýëåìåíòà
int m_nCount; // ×èëñî ýëåìåíòîâ â ìàññèâå
int m_nRef; // Ñ÷åò÷èê ññûëîê
};
#endif /* _ARRAY_H */