A factory interface providing methods for the creation of Pharm.FeatureContainerWriterBase instances for data output in a particular storage format.
More...
A factory interface providing methods for the creation of Pharm.FeatureContainerWriterBase instances for data output in a particular storage format.
◆ getObjectID()
int CDPL.Pharm.FeatureContainerOutputHandler.getObjectID |
( |
| ) |
|
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python FeatureContainerOutputHandler instances may reference the same underlying C++ class instance. The commonly used Python expression a is not b
thus cannot tell reliably whether the two FeatureContainerOutputHandler instances a and b reference different C++ objects. The numeric identifier returned by this method allows to correctly implement such an identity test via the simple expression a.getObjectID() != b.getObjectID()
.
- Returns
- The numeric ID of the internally referenced C++ class instance.
◆ getDataFormat()
Returns a Base.DataFormat object that provides information about the handled output data format.
- Returns
- A Base.DataFormat object that provides information about the handled data format.
◆ createWriter() [1/2]
◆ createWriter() [2/2]
Creates a FeatureContainerWriterBase instance that will write the data to the file specified by file_name.
- Parameters
-
file_name | The full path of the file to write to. |
mode | Flags specifying the file open-mode. |
- Returns
- The created FeatureContainerWriterBase instance.