SECEditItemData Class

class SECEditItemData

SECEditItemData represents the per line data in a text document. Each line of text has a SECEditItemData object associated with it. The user can store any 32/64-bit value, depending on Win32 or Win64, in the public m_dwItemData. In addition, there is a 32-bit bit array, of which bits 0 through 15 can be used to hold user defined flags.

In class SECEdit, objects of this type are contained in an array of pointers, and also a map:

CTypedPtrArray<CPtrArray, SECEditItemData*> m_ItemDataArray;
CTypedPtrMap<CMapPtrToPtr, SECEditItemData*, void*> m_ItemDataMap;

The array is for quick access to the data for a specific line, and the map is for quick iterating through only those lines that have an SECItemData allocated.

The SECEdit class has a number of method for getting and setting for getting and setting a bit flag or the user data for a line:

SECEdit::SECEdit::SetItemDataFlag, SECEdit::SECEdit::GetItemDataFlag, SECEdit::SECEdit::SetItemData, and SECEdit::SECEdit::GetItemData

as well as for walking through all lines with a particular bit index set:

SECEdit::SECEdit::DeleteAllItemDataFlag, SECEdit::SECEdit::ToggleItemDataFlag, SECEdit::SECEdit::GetNextFlag, and SECEdit::SECEdit::CountItemDataFlag

Defined in: SECEditItemData.h

See Also

SECEdit

Class Members

Construction

EDIT_API SECEditItemData()

Constructor.

Attributes

EDIT_API BOOL IsEmpty() const

Tests a SECEditItemData object for the empty condition.

EDIT_API void SetFlag(unsigned int nFlag, BOOL bSet)

Sets or clears an indexed bit flag.

EDIT_API BOOL GetFlag(unsigned int nFlag) const

Retrieves the state of an indexed bit flag.

Public data members

SEC_DWORD m_dwItemData

User data (32/64-bit).

Protected data members

SECBitArray<32, DWORD> m_FlagDataArray

A bit array containing text line state information.