Open CASCADE Technology  7.3.0
Public Member Functions
XmlObjMgt_Array1 Class Reference

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_ElementElement () 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...
 

Detailed Description

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++)

Constructor & Destructor Documentation

◆ XmlObjMgt_Array1() [1/2]

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() [2/2]

XmlObjMgt_Array1::XmlObjMgt_Array1 ( const XmlObjMgt_Element theParent,
const XmlObjMgt_DOMString theName 
)

for restoration from DOM_Element which is child of theParent: <theParent ...> <theName ...>

Member Function Documentation

◆ CreateArrayElement()

void XmlObjMgt_Array1::CreateArrayElement ( XmlObjMgt_Element theParent,
const XmlObjMgt_DOMString theName 
)

Create DOM_Element representing the array, under 'theParent'.

◆ Element()

const XmlObjMgt_Element& XmlObjMgt_Array1::Element ( ) const

Returns the DOM element of <me>.

◆ Length()

Standard_Integer XmlObjMgt_Array1::Length ( ) const

Returns the number of elements of <me>.

◆ Lower()

Standard_Integer XmlObjMgt_Array1::Lower ( ) const

Returns the lower bound.

◆ SetValue()

void XmlObjMgt_Array1::SetValue ( const Standard_Integer  Index,
XmlObjMgt_Element Value 
)

Set the <Index>th element of the array to .

◆ Upper()

Standard_Integer XmlObjMgt_Array1::Upper ( ) const

Returns the upper bound.

◆ Value()

XmlObjMgt_Element XmlObjMgt_Array1::Value ( const Standard_Integer  Index) const

Returns the value of <Index>th element of the array.


The documentation for this class was generated from the following file: