You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mitlib.pub/MITLIB/Utility/MyStringArray.h

53 lines
1.5 KiB
C++

// MyStringArray.h: interface for the CMyStringArray class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MYSTRINGARRAY_H__606CE77F_F408_4BF8_8A79_FB967D9DE1F5__INCLUDED_)
#define AFX_MYSTRINGARRAY_H__606CE77F_F408_4BF8_8A79_FB967D9DE1F5__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifdef BUILD_UTILITYDLL
#define UTILITYDLL __declspec(dllexport)
#else
#define UTILITYDLL __declspec(dllimport)
#endif
class UTILITYDLL CMyStringArray : public CStringArray
{
public:
// default constructor
CMyStringArray();
// copy constructor for CMyStringArray data type
CMyStringArray(const CMyStringArray &rhs);
// copy constructor for CStringArray data type
CMyStringArray(const CStringArray &rhs);
// copy constructor for CString data type
CMyStringArray(const CString &rhs);
// copy constructor for char data type
CMyStringArray(const char *rhs);
// default destructor
virtual ~CMyStringArray();
// overload = operator form CMyStringArray to CMyStringArray data type
void operator=(const CMyStringArray &rhs);
// overload = operator from CStringArray to CMyStringArray data type
void operator=(const CStringArray &rhs);
// overload = operator from CString to CMyStringArray data type
void operator=(const CString &rhs);
// overload = operator from char to CStringArray data type
void operator=(const char *rhs);
};
#endif // !defined(AFX_MYSTRINGARRAY_H__606CE77F_F408_4BF8_8A79_FB967D9DE1F5__INCLUDED_)