| Top |
VisuDataLoadableVisuDataLoadable — a base class for all loadable representation of VisuData objects. |
GObject ╰── ToolDbgObj ╰── VisuNodeArray ╰── VisuData ╰── VisuDataLoadable ╰── VisuDataAtomic
VisuData is a memory representation of node data. This class is defining common methods for all VisuDataLoadable object that provide disk method to load VisuData objects.
GQuark
visu_data_loadable_getErrorQuark (void);
Internal function to handle error.
VisuDataLoadable *
visu_data_loadable_new_fromCLI (void);
Read the command line option and set the filenames for a new VisuData. The object is not loaded (files are not parsed), just prepared.
gboolean visu_data_loadable_checkFile (VisuDataLoadable *self,guint fileType,GError **error);
Tests if the provided file for a given fileType
is a valid file.
Since: 3.8
gboolean visu_data_loadable_load (VisuDataLoadable *self,guint iSet,GCancellable *cancel,GError **error);
Call the load class method of self
. Also store the last read time
for each file of self
.
self |
a VisuDataLoadable object. |
|
iSet |
an integer. |
|
cancel |
a cancellation object. |
[allow-none] |
error |
an error location. |
Since: 3.8
gboolean visu_data_loadable_reload (VisuDataLoadable *self,GCancellable *cancel,GError **error);
A wrapper to load again the same sub set of self.
self |
a VisuDataLoadable object. |
|
cancel |
a cancellation object. |
[allow-none] |
error |
an error location. |
Since: 3.8
struct VisuDataLoadableClass {
VisuDataClass parent;
void (*addFilename) (VisuDataLoadable *self, const gchar *filename,
guint fileType, VisuDataLoader *format);
const gchar* (*getFilename) (const VisuDataLoadable *self,
guint fileType, VisuDataLoader **format);
gboolean (*load) (VisuDataLoadable *self, guint iSet,
GCancellable *cancel, GError **error);
};
The VisuDataLoadableClass definition.
VisuDataClass |
the parent class. |
|
a method used to set the filename for a specific type. |
||
a method used to get the filename associated to specific type. |
||
the loading method. |
Since: 3.8
Thiese are flags used when reading a file with a VisuDataLoadable method.
|
Error from the VisuDataLoadable method. |
||
|
Error when opening. |
||
|
Wrongness in format. |
||
|
an error without specification. |
||
|
the VisuDataLoadable operation has been cancelled. |
“auto-refresh” property“auto-refresh” gboolean
automatically reload on modification.
Flags: Read / Write
Default value: FALSE
“label” property“label” gchar *
representation of the filenames.
Flags: Read
Default value: "No input files"
“loading” property“loading” gboolean
TRUE when a file is loading.
Flags: Read
Default value: FALSE
“n-files” property“n-files” guint
number of input files.
Flags: Read / Write / Construct Only
Allowed values: [1,10]
Default value: 1
“refresh-period” property“refresh-period” guint
Refresh period in seconds.
Flags: Read / Write
Allowed values: [1,3600]
Default value: 1