# BCFData

class `Bcf.``BCFData`()

  This class contains data corresponding to the BCF file format.

  ## Index

  Constructors

  - `constructor`

  Methods

  - `addTopic`
  - `exportBCF`
  - `getFilename`
  - `getId`
  - `getTopic`
  - `getTopics`
  - `getVersion`
  - `setVersion`
  - `toBcfZipBlob`

## Constructors

`Bcf.BCFData.``constructor`()
  BCFData(bcfFileName: string, id: number): `BCFData`

  Parameters

  > bcfFileName: string

  > id: number

  Returns: `BCFData`

## Methods

`Bcf.BCFData.``addTopic`()
  addTopic(topicId: string, topic: `BCFTopic`): void

  Adds a BCF topic.

  Parameters

  > topicId: string

  > topic: `BCFTopic`

  Returns: void

`Bcf.BCFData.``exportBCF`()
  exportBCF(filename: string): Promise

  Exports BCF data to a file. Prompts the user to save it on their device.

  Parameters

  > filename: string

  > > Filename BCF data will be exported as

  Returns: Promise

`Bcf.BCFData.``getFilename`()
  getFilename(): string

  Gets the BCF filename.

  Returns: string

`Bcf.BCFData.``getId`()
  getId(): number

  Identifier used to keep track of loaded BCF data.

  Returns: number

`Bcf.BCFData.``getTopic`()
  getTopic(topicId: string): (None | `BCFTopic`)

  Gets a BCF topic.

  Parameters

  > topicId: string

  Returns: (None | `BCFTopic`)

`Bcf.BCFData.``getTopics`()
  getTopics(): Map

  Returns: Map

  > A map associating BCF topic ids to BCF topic data.

`Bcf.BCFData.``getVersion`()
  getVersion(): `BCFVersion`

  Gets the BCF version.

  Returns: `BCFVersion`

`Bcf.BCFData.``setVersion`()
  setVersion(version: `BCFVersion`): void

  Sets the BCF version.

  Parameters

  > version: `BCFVersion`

  Returns: void

`Bcf.BCFData.``toBcfZipBlob`()
  toBcfZipBlob(): Promise

  Creates a BCFZIP blob. The resulting blob is importable using `BcfManager.addBCFFromBuffer`.

  Returns: Promise

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your Docs generative AI assistant. Ask me anything about HOOPS Visualize Web or choose a sample question below to start a conversation:

What is HOOPS Visualize Web?
What are the latest release notes for HOOPS Visualize Web?
How do I start evaluating HOOPS Visualize Web?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...