Gsf.Infile¶
- Subclasses:
Gsf.InfileMSOle
,Gsf.InfileMSVBA
,Gsf.InfileStdio
,Gsf.InfileTar
,Gsf.InfileZip
,Gsf.StructuredBlob
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Gsf.Infile(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
Class representing an input file.
- child_by_aname(names)¶
- Parameters:
names ([
str
]) – ANone
terminated array of names (e.g. fromGLib.strsplit
)- Returns:
a newly created child which must be unrefed.
- Return type:
This function finds a child that is several directory levels down the tree. If, for example, the names “foo”, “bar”, and “baz” are given, then this function first finds the “foo” directory in the root infile, then locates “bar” within that directory, and finally locates “baz” within that and returns the “baz” child. In other words, this function finds the “foo/bar/baz” child.
New in 1.14.9.
- child_by_index(i)¶
- Parameters:
i (
int
) – target index- Returns:
a newly created child which must be unrefed.
- Return type:
TODO : For 2.0 api will change to include a
GLib.Error
.
- child_by_name(name)¶
- Parameters:
name (
str
) – target name- Returns:
a newly created child which must be unrefed.
- Return type:
The function returns a named child of the given infile. This only works for an immediate child. If you need to go several levels down use
Gsf.Infile.child_by_aname
, for example.TODO : For 2.0 api will change to include a
GLib.Error
.
- name_by_index(i)¶
- num_children()¶
- Returns:
the number of children the storage has, or -1 if the storage can not have children.
- Return type:
- do_name_by_index(i) virtual¶