#include <IXMLReferenceListData.h>
|
| enum | { kDefaultIID = IID_IXMLREFERENCELISTDATA } |
| |
| enum | _Placement { kBeginningIndex = 0, kEndIndex = -2, kInvalidIndex = -1 } |
| |
Data interface for passing a list of XMLReference; from client code, use IXMLElementCommands methods rather than process low-level commands directly.
Enumeration giving positions in list for inserts
| virtual void IXMLReferenceListData::Clear | ( | void | | ) | |
| pure virtual |
| virtual XMLReference IXMLReferenceListData::Get | ( | int32 | index | ) | const |
| pure virtual |
Accessor for XMLReference at given index
- Parameters
| index | specifies index of element of interest |
- Returns
- reference to object at given index
| virtual int32 IXMLReferenceListData::GetIndex | ( | const XMLReference & | xmlRef | ) | const |
| pure virtual |
Return index given an XMLReference
- Parameters
- Returns
- int32 where in the list of objects it is located; -1 if not found
| virtual void IXMLReferenceListData::Insert | ( | const XMLReference & | xmlRef, | | | int32 | pos = kEndIndex | | ) | | |
| pure virtual |
Add new XMLReference by default at end of list
- Parameters
| xmlRef | specifies object to add |
| pos | location to add at (one of _Placement values) |
| virtual void IXMLReferenceListData::Remove | ( | const XMLReference & | xmlRef | ) | |
| pure virtual |
Remove supplied XMLReference from list
- Parameters
| xmlRef | specifies object to remove |
| virtual void IXMLReferenceListData::Set | ( | int32 | index, | | | const XMLReference & | newXMLRef | | ) | | |
| pure virtual |
Mutate item at specified index to be supplied XMLReference
- Parameters
| index | location of the element |
| newXMLRef | element to put in this new location |
| virtual int32 IXMLReferenceListData::Size | ( | void | | ) | const |
| pure virtual |
Count of XMLReference's stored on this interface
- Returns
- int32 giving count of objects in list stored