Gsf.Outfile

g GObject.Object GObject.Object Gsf.Output Gsf.Output GObject.Object->Gsf.Output Gsf.Outfile Gsf.Outfile Gsf.Output->Gsf.Outfile

Subclasses:

Gsf.OutfileMSOle, Gsf.OutfileOpenPkg, Gsf.OutfileStdio, Gsf.OutfileZip

Methods

Inherited:

Gsf.Output (18), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

new_child (name, is_dir)

open_pkg_add_rel (name, content_type, parent, type)

Virtual Methods

Inherited:

Gsf.Output (3), GObject.Object (7)

Properties

Inherited:

Gsf.Output (6)

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

Gsf.Output

r

Class Details

class Gsf.Outfile(**kwargs)
Bases:

Gsf.Output

Abstract:

Yes

Structure:

Gsf.OutfileClass

Class representing an output file, counterpart to Gsf.Infile.

new_child(name, is_dir)
Parameters:
  • name (str) – The name of the new child to create

  • is_dir (bool) – True to create a directory, False to create a plain file

Returns:

a newly created child

Return type:

Gsf.Output

open_pkg_add_rel(name, content_type, parent, type)
Parameters:
Returns:

the new part.

Return type:

Gsf.Output

A convenience wrapper to create a child in self of content_type then create a type relation to parent