/usr/include/gwyddion/libgwyddion/gwyresults.h is in libgwyddion20-dev 2.50-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 | /*
* $Id: gwyresults.h 20677 2017-12-18 18:22:52Z yeti-dn $
* Copyright (C) 2017 David Necas (Yeti).
* E-mail: yeti@gwyddion.net.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef __GWY_RESULTS_H__
#define __GWY_RESULTS_H__
#include <glib.h>
#include <libgwyddion/gwymacros.h>
#include <libgwyddion/gwysiunit.h>
G_BEGIN_DECLS
typedef enum {
GWY_RESULTS_VALUE_FLOAT = 1,
GWY_RESULTS_VALUE_STRING = 2,
GWY_RESULTS_VALUE_INT = 3,
GWY_RESULTS_VALUE_YESNO = 4,
} GwyResultsValueType;
typedef enum {
GWY_RESULTS_REPORT_COLON = 0,
GWY_RESULTS_REPORT_TABSEP = 1,
GWY_RESULTS_REPORT_CSV = 2,
GWY_RESULTS_REPORT_MACHINE = (1 << 8),
} GwyResultsReportType;
#define GWY_TYPE_RESULTS (gwy_results_get_type())
#define GWY_RESULTS(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GWY_TYPE_RESULTS, GwyResults))
#define GWY_RESULTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GWY_TYPE_RESULTS, GwyResultsClass))
#define GWY_IS_RESULTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GWY_TYPE_RESULTS))
#define GWY_IS_RESULTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GWY_TYPE_RESULTS))
#define GWY_RESULTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GWY_TYPE_RESULTS, GwyResultsClass))
typedef struct _GwyResults GwyResults;
typedef struct _GwyResultsClass GwyResultsClass;
struct _GwyResults {
GObject parent_instance;
struct _GwyResultsPrivate *priv;
};
struct _GwyResultsClass {
GObjectClass parent_class;
/*< private >*/
void (*reserved1)(void);
void (*reserved2)(void);
};
GType gwy_results_get_type (void) G_GNUC_CONST;
GwyResults* gwy_results_new (void) G_GNUC_MALLOC;
GwyResults* gwy_results_copy (GwyResults *results) G_GNUC_MALLOC;
void gwy_results_add_header (GwyResults *results,
const gchar *label);
void gwy_results_add_separator (GwyResults *results);
void gwy_results_add_value (GwyResults *results,
const gchar *id,
const gchar *label,
...) G_GNUC_NULL_TERMINATED;
void gwy_results_add_format (GwyResults *results,
const gchar *id,
const gchar *label,
gboolean translate_format,
const gchar *format,
...) G_GNUC_NULL_TERMINATED;
void gwy_results_add_value_str (GwyResults *results,
const gchar *id,
const gchar *label);
void gwy_results_add_value_x (GwyResults *results,
const gchar *id,
const gchar *label);
void gwy_results_add_value_z (GwyResults *results,
const gchar *id,
const gchar *label);
void gwy_results_add_value_plain (GwyResults *results,
const gchar *id,
const gchar *label);
void gwy_results_add_value_int (GwyResults *results,
const gchar *id,
const gchar *label);
void gwy_results_add_value_angle (GwyResults *results,
const gchar *id,
const gchar *label);
void gwy_results_add_value_percents (GwyResults *results,
const gchar *id,
const gchar *label);
void gwy_results_add_value_yesno (GwyResults *results,
const gchar *id,
const gchar *label);
void gwy_results_add_covariance_matrix (GwyResults *results,
const gchar *id,
const gchar *label,
...);
void gwy_results_add_covariance_matrixv (GwyResults *results,
const gchar *id,
const gchar *label,
guint n,
const gchar **symbols);
void gwy_results_bind_formats (GwyResults *results,
const gchar *id,
...) G_GNUC_NULL_TERMINATED;
void gwy_results_unbind_formats (GwyResults *results,
const gchar *id,
...) G_GNUC_NULL_TERMINATED;
void gwy_results_set_unit (GwyResults *results,
const gchar *name,
GwySIUnit *unit);
void gwy_results_set_unit_str (GwyResults *results,
const gchar *name,
const gchar *unitstr);
void gwy_results_fill_values (GwyResults *results,
...) G_GNUC_NULL_TERMINATED;
void gwy_results_fill_values_with_errors(GwyResults *results,
...) G_GNUC_NULL_TERMINATED;
void gwy_results_fill_format (GwyResults *results,
const gchar *id,
...) G_GNUC_NULL_TERMINATED;
void gwy_results_fill_covariance_matrix (GwyResults *results,
const gchar *id,
const gboolean *fixed_params,
const gdouble *covar_matrix);
void gwy_results_set_na (GwyResults *results,
const gchar *id,
...) G_GNUC_NULL_TERMINATED;
void gwy_results_set_nav (GwyResults *results,
guint n,
const gchar **id);
gchar* gwy_results_create_report (GwyResults *results,
GwyResultsReportType report_type) G_GNUC_MALLOC;
const gchar* gwy_results_get_label (GwyResults *results,
const gchar *id);
const gchar* gwy_results_get_symbol (GwyResults *results,
const gchar *id);
const gchar* gwy_results_get_label_with_symbol (GwyResults *results,
const gchar *id);
const gchar* gwy_results_get_value (GwyResults *results,
const gchar *id);
const gchar* gwy_results_get_error (GwyResults *results,
const gchar *id);
const gchar* gwy_results_get_value_with_error (GwyResults *results,
const gchar *id);
const gchar* gwy_results_get_units (GwyResults *results,
const gchar *id);
const gchar* gwy_results_get_full (GwyResults *results,
const gchar *id);
gboolean gwy_results_value_is_na (GwyResults *results,
const gchar *id);
void gwy_format_result_table_row (GString *str,
GwyResultsReportType report_type,
guint n,
...);
void gwy_format_result_table_rowv (GString *str,
GwyResultsReportType report_type,
guint n,
const gdouble *values);
void gwy_format_result_table_strings (GString *str,
GwyResultsReportType report_type,
guint n,
...);
void gwy_format_result_table_stringsv (GString *str,
GwyResultsReportType report_type,
guint n,
const gchar **values);
G_END_DECLS
#endif /* __GWY_RESULTS_H__ */
/* vim: set cin et ts=4 sw=4 cino=>1s,e0,n0,f0,{0,}0,^0,\:1s,=0,g1s,h0,t0,+1s,c3,(0,u0 : */
|