BCFData
-
class
Bcf.
BCFData
() This class contains data corresponding to the BCF file format.
Constructors
Methods
Constructors
-
BCFData.
constructor
(bcfFileName, id) Arguments: - bcfFileName (
string()
) – None - id (
number()
) – None
Return type: BCFData
- bcfFileName (
Methods
addTopic
-
BCFData.
addTopic
(topicId, topic) Arguments: - topicId (
string()
) – None - topic (
BCFTopic()
) – None
Adds a BCF topic.
Return type: void - topicId (
exportBCF
-
BCFData.
exportBCF
(filename) Arguments: - filename (
string()
) – Filename BCF data will be exported as
Exports BCF data to a file. Prompts the user to save it on their device.
Return type: Promise <void> - filename (
getTopic
-
BCFData.
getTopic
(topicId) Arguments: - topicId (
string()
) – None
Gets a BCF topic.
Return type: null | BCFTopic - topicId (
getTopics
-
BCFData.
getTopics
() Returns: A map associating BCF topic ids to BCF topic data. Return type: Map <string, BCFTopic>