OpenCascade.js
API ReferenceApplicationFrameworkTKCDF

CDF

OCCT package CDF: CDF_Application, CDF_Directory, CDF_FWOSDriver, CDF_MetaDataDriver, and 7 more bound classes.

CDF_Application

Static methods(2)

Instance methods(15)

  • NewDocument(theFormat: TCollection_ExtendedString): { theDoc: CDM_Document; [Symbol.dispose](): void }

    Constructs an new empty document. This document will have the specified format. If InitDocument() is redefined for a specific application, the new document is handled by the applicative session.

    Parameters (1)
    • theFormat
    Returns

    A result object with fields:

    • theDoc: owned by the returned envelope.
      Dispose the returned envelope to release owned Handle fields.
  • InitDocument(theDoc: CDM_Document): void

    Initialize a document for the applicative session. This virtual function is called by NewDocument and should be redefined for each specific application.

    Parameters (1)
    • theDoc
  • Open(aDocument: CDM_Document): void

    puts the document in the current session directory and calls the virtual method Activate on it.

    Parameters (1)
    • aDocument
  • Parameters (1)
    • aDocument
  • Close(aDocument: CDM_Document): void

    removes the document of the current session directory and closes the document;

    Parameters (1)
    • aDocument
  • Parameters (3)
    • theFolder
    • theName
    • theAppendMode
  • Parameters (4)
    • theFolder
    • theName
    • theVersion
    • theAppendMode
  • Checks status after Retrieve.

  • Returns instance of read driver for specified format.
    Default implementation uses plugin mechanism to load reader dynamically. For this to work, application resources should define GUID of the plugin as value of [Format].RetrievalPlugin, and "Plugin" resource should define name of plugin library to be loaded as value of [GUID].Location. Plugin library should provide method PLUGINFACTORY returning instance of the reader for the same GUID (see Plugin_Macro.hxx).
    In case if reader is not available, will raise Standard_NoSuchObject or other exception if raised by plugin loader.

    Parameters (1)
    • aFormat
  • Returns instance of storage driver for specified format.
    Default implementation uses plugin mechanism to load driver dynamically. For this to work, application resources should define GUID of the plugin as value of [Format].StoragePlugin, and "Plugin" resource should define name of plugin library to be loaded as value of [GUID].Location. Plugin library should provide method PLUGINFACTORY returning instance of the reader for the same GUID (see Plugin_Macro.hxx).
    In case if driver is not available, will raise Standard_NoSuchObject or other exception if raised by plugin loader.

    Parameters (1)
    • aFormat
  • try to retrieve a Format directly in the file or in application resource by using extension. returns True if found

    Parameters (2)
    • aFileName
    • theFormat
      Mutated in place; read the updated value from this argument after the call.
  • DefaultFolder(): string
  • SetDefaultFolder(aFolder: string): boolean
    Parameters (1)
    • aFolder
  • returns MetaDatdDriver of this application

Properties(1)

CDF_Directory

A directory is a collection of documents. There is only one instance of a given document in a directory. put.

Constructors(1)

Static methods(2)

Instance methods(7)

  • Add(aDocument: CDM_Document): void

    adds a document into the directory.

    Parameters (1)
    • aDocument
  • Remove(aDocument: CDM_Document): void

    removes the document.

    Parameters (1)
    • aDocument
  • Contains(aDocument: CDM_Document): boolean

    Returns true if the document aDocument is in the directory.

    Parameters (1)
    • aDocument
  • returns the last document (if any) which has been added in the directory.

  • Length(): number

    returns the number of documents of the directory.

  • IsEmpty(): boolean

    returns true if the directory is empty.

CDF_FWOSDriver

Constructors(1)

Static methods(2)

Instance methods(8)

CDF_MetaDataDriver

this class list the method that must be available for a specific DBMS

Static methods(2)

Instance methods(16)

CDF_Store

Constructors(1)

Instance methods(25)

CDF_StoreList

Constructors(1)

Static methods(2)

Instance methods(7)