43 lines
905 B
C++
43 lines
905 B
C++
//-----------------------------------------------------------------------------+
|
|
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
|
|
// = FileName : TWArrayAr.h
|
|
// = Version : ver2.0
|
|
// = Author : xlc
|
|
// = CreateDate : 2002-09-09
|
|
// = Description: 类的声明
|
|
// = Maintainers:
|
|
//
|
|
//-----------------------------------------------------------------------------+
|
|
#ifndef _TWARRAYAR_H_
|
|
#define _TWARRAYAR_H_
|
|
|
|
#ifndef _TWARCHIVE_H_
|
|
#include "TWArchive.h"
|
|
#endif
|
|
|
|
#ifndef _TSQTABLE_H_
|
|
#include "TSqTable.h"
|
|
#endif
|
|
|
|
//内存数组数据流
|
|
class GEOAPI TWArrayAr : public TWArchive
|
|
{
|
|
public:
|
|
TWArrayAr(long spaceSize = 1024, long unit = 1024);
|
|
|
|
virtual ~TWArrayAr();
|
|
|
|
virtual void Clear();
|
|
virtual void Read(void *p, long size);
|
|
virtual void Write(void *p, long size);
|
|
|
|
char& operator [] (long i);
|
|
|
|
void SetLength(long len);
|
|
|
|
protected:
|
|
|
|
TSqTable<char> m_buf;
|
|
};
|
|
|
|
#endif |