![]() |
![]() |
Gwyddion Application Library Reference Manual | ![]() |
|
---|---|---|---|---|
Top | Description |
#include <app/gwyapp.h> GwyFunctionUse * gwy_func_use_new (void
); void gwy_func_use_free (GwyFunctionUse *functions
); void gwy_func_use_add (GwyFunctionUse *functions
,const gchar *name
); const gchar * gwy_func_use_get (GwyFunctionUse *functions
,guint i
); GwyFunctionUse * gwy_func_use_load (const gchar *filename
); void gwy_func_use_save (GwyFunctionUse *functions
,const gchar *filename
); gchar * gwy_func_use_get_filename (const gchar *type
); GwyFunctionUse * gwy_app_process_func_get_use (void
); void gwy_app_process_func_save_use (void
); GwyFunctionUse;
GwyFunctionUse * gwy_func_use_new (void
);
Creates new function use statistics.
Returns : |
A newly created function use statistics. |
void gwy_func_use_free (GwyFunctionUse *functions
);
Destroys function use statistics, freeing all associated resourced.
|
Function use statistics. |
void gwy_func_use_add (GwyFunctionUse *functions
,const gchar *name
);
Adds an use of a function to the statistics.
|
Function use statistics. |
|
Function name. |
const gchar * gwy_func_use_get (GwyFunctionUse *functions
,guint i
);
Gets the n-th most function from a function statistics.
|
Function use statistics. |
|
Position in the top used functions (starting from 0). |
Returns : |
The function name, or NULL if there are not more functions with
use statistics records than i . |
GwyFunctionUse * gwy_func_use_load (const gchar *filename
);
Loads function use statistics from a file.
|
A file name (in GLib encoding). |
Returns : |
A newly created function use statistics filled with data from
file filename . |
void gwy_func_use_save (GwyFunctionUse *functions
,const gchar *filename
);
Saves function use statistics data to a file.
|
Function use statistics. |
|
A file name (in GLib encoding). |
gchar * gwy_func_use_get_filename (const gchar *type
);
Gets the (preferred) name for a file to store function use statistics to.
|
Function type, that is an identifier of the type of statistics gathered. It must be a valid identifier. |
Returns : |
The file name as a newly allocated string. |
void gwy_app_process_func_save_use (void
);
Saves application data processing function statistics.