#include <dotXSITemplate.h>
Public Member Functions |
|
| CdotXSITemplates () | |
| CdotXSITemplates (SI_Bool in_bDeleteOnExit) | |
| virtual | ~CdotXSITemplates () |
| SI_Int | GetCount () |
| SI_Int | GetTotalCount () |
| SI_Void | Add (CdotXSITemplate *i_Template, SI_Int i_nPosition=-1) |
| SI_Void | Item (SI_Int i_nPosition, CdotXSITemplate **o_Template) |
| CdotXSITemplate * | Item (SI_Int i_nPosition) |
| SI_Void | Remove (SI_Int i_nPosition) |
| SI_Void | Clear () |
| SI_Bool | IsSupported (CSIBCString *i_sName, SI_Int &o_nInd) |
| SI_Bool | Find (CSIBCString *i_sTemplateName, CSIBCString *i_sInstanceName, CdotXSITemplate **o_pTemplate) |
| CdotXSITemplate * | FindByType (CSIBCString in_name) |
| CdotXSITemplates * | ChildrenOfType (CSIBCString in_type) |
| SI_Void | MoveChild (int in_iTemplate, int in_iNewPos) |
This class supports methods for grouping CdotXSITemplate objects together, including indexing of objects, finding objects, etc.
| CdotXSITemplates | ( | ) |
Default constructor. Creates a CdotXSITemplates object. Sets the m_bDeleteOnExit flag to true by default.
| CdotXSITemplates | ( | SI_Bool | in_bDeleteOnExit | ) |
Constructor. Creates a CdotXSITemplates object. Sets the m_bDeleteOnExit flag to the input parameter value
| in_bDeleteOnExit | This flag has no effect. |
Destructor.
| SI_Int GetCount | ( | ) |
Get the number of elements in this particular template hierarchy level.
Get the total number of elements (recursive, including child templates).
Add a CdotXSITemplate element to this container, in the specified position.
| i_Template | Pointer to the object to add to this container. | |
| i_nPosition | Position in which to add the item. -1 == Current position. Default of -1. |
Gets the specified element (indirectly). This call is equivalent to Item(SI_Int), except that it stores the return in an out parameter, rather than returning the pointer directly from the function itself.
| i_nPosition | Position of the item to receive. | |
| o_Template | Double pointer to receive the pointer to the item. (NULL if | |
| i_nPosition | is invalid). |
| CdotXSITemplate* Item | ( | SI_Int | i_nPosition | ) |
Get the specified element (directly). This call is equivalent to Item(SI_Int, CdotXSITemplate **), except that it returns the pointer directly from the function instead of storing the return in an out parameter.
| i_nPosition | Position of the item to receive. |
| i_nPosition. | (NULL if | |
| i_nPosition | is invalid). |
Remove the specified element.
| i_nPosition | The position of the element to remove. If | |
| i_nPosition | is invalid, nothing is removed. |
Removes all elements from the container.
Checks whether a template of a given type name is contained within this container.
| i_sName | Type name of the template to search for. | |
| o_nInd | Set to the position of the first element of the type given by | |
| i_sName. | If none was found, this parameter is set to -1. |
| SI_Bool Find | ( | CSIBCString * | i_sTemplateName, | |
| CSIBCString * | i_sInstanceName, | |||
| CdotXSITemplate ** | o_pTemplate | |||
| ) |
Searches all templates, and all children of templates contained within this container for a CdotXSITemplate whose type name is given by i_sTemplateName, and whose instance name is given by i_sInstanceName.
| i_sTemplateName | The type name of the template to find. (Required). | |
| i_sInstanceName | The instance name of the template to find. (Required). | |
| o_pTemplate | Double pointer to receive the pointer to the item. If no item is found this parameter is set to NULL. |
Search all templates contained within this container for a CdotXSITemplate that has a type name of in_name.
| in_name | Type name of the template to search for. |
in_name parameter. (NULL if there is no match).
Creates a new container object that contains all elements within this container that have a type name that matches in_type
| in_type | Type name of the elements to put in the new container. |
in_type, the container is empty (but is still valid). Reorders the children template