47 lines
1.0 KiB
C++
47 lines
1.0 KiB
C++
//-----------------------------------------------------------------------------+
|
|
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
|
|
// = FileName : TWArraysAr.h
|
|
// = Version : ver2.0
|
|
// = Author : xlc
|
|
// = CreateDate : 2002-09-09
|
|
// = Description: 类的声明
|
|
// = Maintainers:
|
|
//
|
|
//-----------------------------------------------------------------------------+
|
|
#ifndef _TWARRAYSAR_H_
|
|
#define _TWARRAYSAR_H_
|
|
|
|
#ifndef _TWARRAYAR_H_
|
|
#include "TWArrayAr.h"
|
|
#endif
|
|
|
|
#ifndef _TSPTABLE_H_
|
|
#include "TSPTable.h"
|
|
#endif
|
|
|
|
//内存数组集数据流,防止内存块过大
|
|
class GEOAPI TWArraysAr : public TWArchive
|
|
{
|
|
public:
|
|
|
|
TWArraysAr(long unitSize = 1024);
|
|
virtual ~TWArraysAr();
|
|
|
|
virtual void Clear();
|
|
virtual void Read(void *p,long size);
|
|
virtual void Write(void *p,long size);
|
|
|
|
long GetUnitSize() const;
|
|
long GetUnit(long i) const;
|
|
long GetSubIndex(long i) const;
|
|
|
|
protected:
|
|
|
|
//单元尺寸
|
|
long m_iUnitSize;
|
|
|
|
//内部每个单元GetLength()都是m_iUnitSize
|
|
TSPTable<TWArrayAr> m_bufTable;
|
|
};
|
|
|
|
#endif |