v_sim.DataLoader¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class v_sim.DataLoader(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An opaque structure.
- classmethod ascii_getStatic()¶
- Returns:
a
v_sim.DataLoaderowned by V_Sim.- Return type:
Retrieve the instance of the atomic loader used to parse ASCII files.
New in version 3.8.
- classmethod d3_getStatic()¶
- Returns:
a
v_sim.DataLoaderowned by V_Sim.- Return type:
Retrieve the instance of the atomic loader used to parse d3 files.
New in version 3.8.
- classmethod new(descr, patterns, restricted, func, priority, *data)¶
- Parameters:
- Returns:
a newly created
v_sim.DataLoaderobject.- Return type:
Creates a new
v_sim.DataLoaderwith the given description.New in version 3.8.
- classmethod xyz_getStatic()¶
- Returns:
a
v_sim.DataLoaderowned by V_Sim.- Return type:
Retrieve the instance of the atomic loader used to parse XYZ files.
New in version 3.8.
- classmethod yaml_getStatic()¶
- Returns:
a
v_sim.DataLoaderowned by V_Sim.- Return type:
Retrieve the instance of the atomic loader used to parse YAML files.
New in version 3.8.
- comparePriority(b)¶
- Parameters:
b (
v_sim.DataLoader) – av_sim.DataLoaderobject.- Returns:
-1 if self is at a lower priority than b, +1 otherwise and 0 in case of equality.
- Return type:
Compare the priority of self and b.
New in version 3.8.
- load(data, type, iSet, cancel)¶
- Parameters:
data (
v_sim.DataLoadable) – av_sim.DataLoadableobject to be populated.type (
int) – a file type.iSet (
int) – an integer.cancel (
Gio.CancellableorNone) – a cancellation object.
- Raises:
- Returns:
Trueif filename is of a format handled by self.- Return type:
Try to load filename as a file format corresponding to self. error is not set if filename is not of this format, simply
Falseis returned.New in version 3.8.
- setStatus(status)¶
- Parameters:
status (
str) – a string.
Change the current status of self. This can be used to notify changes when
v_sim.DataLoader.load() is taking long time.New in version 3.8.