//----------------------------------------------------------------------------- // // File: strlist.h // Copyright (C) 1994-1997 Microsoft Corporation // All rights reserved. // // // //----------------------------------------------------------------------------- #ifndef ESPUTIL_STRLIST_H #define ESPUTIL_STRLIST_H const UINT NO_INDEX = (DWORD) -1; template class CLocThingList { public: NOTHROW CLocThingList(); UINT NOTHROW GetIndex(void) const; const CArray &GetStringArray(void) const; BOOL NOTHROW AdditionsAllowed(void) const; void SetThingList(const CArray &); UINT AddThing(T &); void InsertThing(UINT idxInsert, T & tNew); BOOL DeleteThing(UINT); BOOL NOTHROW SetIndex(UINT); void NOTHROW SetAdditionsAllowed(BOOL); UINT GetSize(); const CLocThingList &operator=(const CLocThingList &); int NOTHROW operator==(const CLocThingList &) const; int NOTHROW operator!=(const CLocThingList &) const; NOTHROW ~CLocThingList(); private: CLocThingList(const CLocThingList &); UINT m_uiIndex; CArray m_aThings; BOOL m_fAdditionsAllowed; }; #include "strlist.inl" #endif