Skip to main content
Class that provides functions to access data stored within a CFF file. #include "CffInterface/CffFileConsumer.hpp" Inheritance diagram for ansys::CffFileConsumer:

Public Member Functions

Overwrite mode vs Append Mode

Public Member Functions inherited from ansys::CffConsumer
Public Member Functions inherited from ansys::CffBase
Public Member Functions inherited from ansys::CffVersion
Public Member Functions inherited from ansys::CffFileIO

Protected Member Functions

Protected Member Functions inherited from ansys::CffConsumer
Protected Member Functions inherited from ansys::CffBase
Protected Member Functions inherited from ansys::CffFileIO

Additional Inherited Members

Static Public Member Functions inherited from ansys::CffVersion
Static Public Attributes inherited from ansys::CffBase
Protected Types inherited from ansys::CffBase
Protected Attributes inherited from ansys::CffBase

Detailed Description

Class that provides functions to access data stored within a CFF file.

Constructor & Destructor Documentation

~CffFileConsumer()

inline virtual

Member Function Documentation

closeData()

protected virtual

endWriting()

override virtual Function to end writing to a file associated with a class of data. The filename must have already been set using ansys::CffFileIO::setFile. Parameters Returns
  • true if file is ready for writing, false in case of failure.
See also setFile, isWriting, startWriting Reimplemented from ansys::CffConsumer.

openData()

protected virtual

setAppendOn()

virtual Set whether when opening a file, it should be opened for append. This function should be called before calling startWriting.
This function isn’t currently supported for all operations and is limited to appending new meshes not specific zones to an existing mesh.
Parameters

setCombineContinuousZones()

virtual Set whether zones should be combined into a single dataset where possible when reading. By default each zone of data is written to a separate dataset.
This functionality is implementation dependent and is only currently available when writing HDF5 based files.
Parameters

setDatasetNameOfPhase()

virtual Do not use.

setDatasetNameOfVariable()

virtual Do not use.

setOverrideSettingsOn()

virtual Set whether settings already found in the file should be overwritten when writing automatically (append mode only). This function should be called before calling startWriting. Parameters See also setAppendOn, setOverrideSettingsOn

setWriteSettingsOn()

virtual Set whether settings should be written automatically. This function should be called before calling startWriting.
In append mode, settings are not overwritten unless explicitly overridden by calling setWriteSettingsOn with true.
Parameters See also setWriteSettingsOn, setOverrideSettingsOn

startWriting() [1/2]

Start writing data of the specified class to the file passed as an argument. This function is equivilent to calling setFile and then startWriting with the same dataClass for each function. Parameters Returns
  • true if file is ready for writing, false in case of failure.
See also setFile, isWriting, endWriting

startWriting() [2/2]

override virtual Start writing a class of data. The filename must have already been set using ansys::CffFileIO::setFile. Parameters Returns
  • true if file is ready for writing, false in case of failure.
See also setFile, isWriting, endWriting Reimplemented from ansys::CffConsumer.

writeCommonSettings()

protected

writeGenericSettings()

Directly write a dataset containing some settings. Parameters