Browse CVS Repository
Contents of /hos/tools/cvssync/StringVector.h
Parent Directory
| Revision Log
| Revision Graph
Revision 1.2 -
( show annotations)
( download)
( as text)
Sat Jul 27 04:48:31 2002 UTC
(21 years, 8 months ago)
by ryuz
Branch: MAIN
CVS Tags: ver_0_04, HEAD
Changes since 1.1: +4 -4 lines
File MIME type: text/x-chdr
change copyright
| 1 |
// --------------------------------------------------------------------------- |
| 2 |
// 文字列配列クラス |
| 3 |
// |
| 4 |
// Copyright (C) 2002 by Project HOS |
| 5 |
// --------------------------------------------------------------------------- |
| 6 |
|
| 7 |
|
| 8 |
#ifndef __StringVector_h__ |
| 9 |
#define __StringVector_h__ |
| 10 |
|
| 11 |
|
| 12 |
#define STRVCT_ALLOC_SIZE 32 // メモリ拡張時の割り当て単位 |
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
// 文字列配列クラス |
| 17 |
class CStringVector |
| 18 |
{ |
| 19 |
public: |
| 20 |
CStringVector(); // コンストラクタ |
| 21 |
~CStringVector(); // デストラクタ |
| 22 |
|
| 23 |
int Add(LPCTSTR lpszString); // 文字列の追加 |
| 24 |
LPCTSTR Get(int iIndex); // 文字列の取得 |
| 25 |
int GetCount(void) { return m_iCount; } // 要素数の取得 |
| 26 |
|
| 27 |
protected: |
| 28 |
LPTSTR* m_pszVector; // 文字列データの配列 |
| 29 |
int m_iSize; // 配列の実際のサイズ |
| 30 |
int m_iCount; // 要素数 |
| 31 |
}; |
| 32 |
|
| 33 |
|
| 34 |
#endif // __StringVector_h__ |
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
// --------------------------------------------------------------------------- |
| 39 |
// Copyright (C) 2002 by Project HOS |
| 40 |
// --------------------------------------------------------------------------- |
|