## class XGStringList

> Declared in <XHandle.h>
> Declared from XGHandle

> This manages a list of strings, used by various pieces of the YAAF code. Not only does this store a string list, but this also provides a mechanism for storing "extra" bytes. These extra bytes, no more than a few dozen fixed bytes per string, provide a way to store extra data, such as an index or a pointer to another object.

Construction/Destruction

> XGStringList::XGStringList
> XGStringList::~XGStringList

String List Interface

> XGStringList::Append
> XGStringList::Delete
> XGStringList::DeleteAll
> XGStringList::GetExtra
> XGStringList::GetNumStrings
> XGStringList::GetString
> XGStringList::Insert
> XGStringList::SetExtra
> XGStringList::SetString

Construction/Destruction

XGStringList::XGStringList

> Usage: XGString&XGString::operator=(const char*x)

> Initialize my handle. This creates an empty string list.

XGStringList::~XGStringList

> Usage: XGStringList::~XGStringList()

> Delete the string list and release resources.

String List Interface

XGStringList::Append

> Usage: void Append(const char*str=0)

> Appends the specified string to the end of this string list.

XGStringList::Delete

> Usage: void XGStringList::Delete(long x)

> Delete the specified string

XGStringList::DeleteAll

> Usage: void XGStringList::DeleteAll()

> Delete all the strings

XGStringList::GetExtra

> Usage: void XGStringList::GetExtra(long x,void*data)const

> Get the extra data. This is the data that is associated with my string

XGStringList::GetNumStrings

> Usage: short GetNumStrings()const

> Returns the number of strings that are stored in this XGStringList object

XGStringList::GetString

> Usage: void XGStringList::GetString(long x,char*str)const

> Get the specified string. This is a zero-based index.

XGStringList::Insert

> Usage: void XGStringList::Insert(long x,const char*str)

> Insert a string into the offset specified. If index is set to zero, this puts the string at the start. If the index is set to the length of this thing, the string is appended to the end.

XGStringList::SetExtra

> Usage: void XGStringList::SetExtra(long x,const void*data)

> Set the extra data. This is the data that is associated with my string

XGStringList::SetString

> Usage: void XGStringList::SetString(long x,const char*str)

> Set to the specified string