Files
envi-code/SourceCode/Code2026/tg_shs/inc/subgeo/TWArrayAr.h
T
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

43 lines
919 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