OCCT3D OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    XmlObjMgt_Array1 Class Reference

    The class Array1 represents unidimensional array of fixed size known at run time. The range of the index is user defined. Warning: Programs clients of such class must be independent 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 int Low, const int Up)
     Create an array of lower bound <Low> and upper bound <Up>. Range error is raised when <Up> is less than <Low>.
     XmlObjMgt_Array1 (const XmlObjMgt_Element &theParent, const XmlObjMgt_DOMString &theName)
     for restoration from DOM_Element which is child of theParent: <theParent ...> <theName ...>
    void CreateArrayElement (XmlObjMgt_Element &theParent, const XmlObjMgt_DOMString &theName)
     Create DOM_Element representing the array, under 'theParent'.
    const XmlObjMgt_ElementElement () const
     Returns the DOM element of <me>.
    int Length () const
     Returns the number of elements of <me>.
    int Lower () const
     Returns the lower bound.
    int Upper () const
     Returns the upper bound.
    void SetValue (const int Index, XmlObjMgt_Element &Value)
     Set the <Index>th element of the array to .
    XmlObjMgt_Element Value (const int Index) const
     Returns the value of <Index>th element of the array.

    Detailed Description

    The class Array1 represents unidimensional array of fixed size known at run time. The range of the index is user defined. Warning: Programs clients of such class must be independent 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 int Low,
    const int 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()

    int XmlObjMgt_Array1::Length ( ) const

    Returns the number of elements of <me>.

    ◆ Lower()

    int XmlObjMgt_Array1::Lower ( ) const

    Returns the lower bound.

    ◆ SetValue()

    void XmlObjMgt_Array1::SetValue ( const int Index,
    XmlObjMgt_Element & Value )

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

    ◆ Upper()

    int XmlObjMgt_Array1::Upper ( ) const

    Returns the upper bound.

    ◆ Value()

    XmlObjMgt_Element XmlObjMgt_Array1::Value ( const int Index) const

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


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