OpenCascade.js
API ReferenceApplicationFrameworkTKCDF

LDOM

OCCT package LDOM: LDOM_Attr, LDOM_BasicAttribute, LDOM_BasicElement, LDOM_BasicNode, and 19 more bound classes.

LDOM_Document

Constructors(2)

Static methods(1)

Instance methods(7)

LDOM_Element

Constructors(2)

Instance methods(11)

LDOM_MemManager

Constructors(1)

Static methods(4)

Instance methods(4)

LDOM_OSStream

Standard_OStream

Subclass if std::ostream allowing to increase performance of outputting data into a string avoiding reallocation of buffer. Class LDOM_OSStream implements output into a sequence of strings and getting the result as a string. It inherits Standard_OStream (std::ostream). Beside methods of std::ostream, it also has additional useful methods: str(), Length() and Clear().

Constructors(1)

Instance methods(3)

LDOM_SBuffer

streambuf

Class LDOM_SBuffer inherits std::streambuf and redefines some virtual methods of it (overflow() and xsputn()). This class contains pointers on first and current element of sequence, also it has methods for the sequence management.

Constructors(1)

  • constructor(theMaxBuf: number): LDOM_SBuffer

    Constructor. Sets a default value for the length of each sequence element.

    Parameters (1)
    • theMaxBuf

Instance methods(6)

  • str(): string

    Concatenates strings of all sequence elements into one string. Space for output string is allocated with operator new. Caller of this function is responsible for memory release after the string usage.

  • Length(): number

    Returns full length of data contained.

  • Clear(): void

    Clears first element of sequence and removes all others.

  • overflow(c?: number): number
    Parameters (1)
    • c
  • underflow(): number
  • xsputn(s: string, n: number): number
    Parameters (2)
    • s
    • n

LDOMBasicString

Constructors(6)

Instance methods(4)