Open CASCADE Technology
6.9.1
|
The class Array1 represents unidimensionnal array of fixed size known at run time. The range of the index is user defined. Warning: Programs clients of such class must be independant of the range of the first element. Then, a C++ for loop must be written like this for (i = A->Lower(); i <= A->Upper(); i++) More...
#include <XmlObjMgt_Array1.hxx>
Public Member Functions | |
XmlObjMgt_Array1 (const Standard_Integer Low, const Standard_Integer Up) | |
Create an array of lower bound <Low> and upper bound <Up>. Range error is raised when <Up> is less than <Low>. More... | |
XmlObjMgt_Array1 (const XmlObjMgt_Element &theParent, const XmlObjMgt_DOMString &theName) | |
for restoration from DOM_Element which is child of theParent: <theParent ...> <theName ...> More... | |
void | CreateArrayElement (XmlObjMgt_Element &theParent, const XmlObjMgt_DOMString &theName) |
Create DOM_Element representing the array, under 'theParent'. More... | |
const XmlObjMgt_Element & | Element () const |
Returns the DOM element of <me>. More... | |
Standard_Integer | Length () const |
Returns the number of elements of <me>. More... | |
Standard_Integer | Lower () const |
Returns the lower bound. More... | |
Standard_Integer | Upper () const |
Returns the upper bound. More... | |
void | SetValue (const Standard_Integer Index, XmlObjMgt_Element &Value) |
Set the <Index>th element of the array to . More... | |
XmlObjMgt_Element | Value (const Standard_Integer Index) const |
Returns the value of <Index>th element of the array. More... | |
The class Array1 represents unidimensionnal array of fixed size known at run time. The range of the index is user defined. Warning: Programs clients of such class must be independant of the range of the first element. Then, a C++ for loop must be written like this for (i = A->Lower(); i <= A->Upper(); i++)
XmlObjMgt_Array1::XmlObjMgt_Array1 | ( | const Standard_Integer | Low, |
const Standard_Integer | Up | ||
) |
Create an array of lower bound <Low> and upper bound <Up>. Range error is raised when <Up> is less than <Low>.
XmlObjMgt_Array1::XmlObjMgt_Array1 | ( | const XmlObjMgt_Element & | theParent, |
const XmlObjMgt_DOMString & | theName | ||
) |
for restoration from DOM_Element which is child of theParent: <theParent ...> <theName ...>
void XmlObjMgt_Array1::CreateArrayElement | ( | XmlObjMgt_Element & | theParent, |
const XmlObjMgt_DOMString & | theName | ||
) |
Create DOM_Element representing the array, under 'theParent'.
const XmlObjMgt_Element& XmlObjMgt_Array1::Element | ( | ) | const |
Returns the DOM element of <me>.
Standard_Integer XmlObjMgt_Array1::Length | ( | ) | const |
Returns the number of elements of <me>.
Standard_Integer XmlObjMgt_Array1::Lower | ( | ) | const |
Returns the lower bound.
void XmlObjMgt_Array1::SetValue | ( | const Standard_Integer | Index, |
XmlObjMgt_Element & | Value | ||
) |
Set the <Index>th element of the array to .
Standard_Integer XmlObjMgt_Array1::Upper | ( | ) | const |
Returns the upper bound.
XmlObjMgt_Element XmlObjMgt_Array1::Value | ( | const Standard_Integer | Index | ) | const |
Returns the value of <Index>th element of the array.