"Fossies" - the Fresh Open Source Software Archive

Member "gretl-2020b/lib/src/gretl_string_table.h" (25 Mar 2020, 2888 Bytes) of package /linux/misc/gretl-2020b.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "gretl_string_table.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 2020a_vs_2020b.

    1 /* 
    2  *  gretl -- Gnu Regression, Econometrics and Time-series Library
    3  *  Copyright (C) 2001 Allin Cottrell and Riccardo "Jack" Lucchetti
    4  * 
    5  *  This program is free software: you can redistribute it and/or modify
    6  *  it under the terms of the GNU General Public License as published by
    7  *  the Free Software Foundation, either version 3 of the License, or
    8  *  (at your option) any later version.
    9  * 
   10  *  This program is distributed in the hope that it will be useful,
   11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
   12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   13  *  GNU General Public License for more details.
   14  * 
   15  *  You should have received a copy of the GNU General Public License
   16  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
   17  * 
   18  */
   19 
   20 #ifndef GRETL_STRING_TABLE_H
   21 #define GRETL_STRING_TABLE_H
   22 
   23 typedef struct _gretl_string_table gretl_string_table;
   24 
   25 gretl_string_table *gretl_string_table_new (const int *list);
   26 
   27 int gretl_string_table_index (gretl_string_table *gst, const char *s, 
   28                   int col, int addcol, PRN *prn);
   29 
   30 int gretl_string_table_print (gretl_string_table *gst, DATASET *dset,
   31                   const char *fname, PRN *prn);
   32 
   33 int gretl_string_table_validate (gretl_string_table *gst);
   34 
   35 int gretl_string_table_save (gretl_string_table *gst, DATASET *dset);
   36 
   37 void gretl_string_table_destroy (gretl_string_table *gst);
   38 
   39 void gretl_string_table_add_extra (gretl_string_table *gst, PRN *prn);
   40 
   41 int gretl_string_table_reset_column_id (gretl_string_table *gst, 
   42                     int oldid, int newid);
   43 
   44 series_table *gretl_string_table_detach_col (gretl_string_table *gst,
   45                          int col);
   46 
   47 int in_string_table (gretl_string_table *gst, int id);
   48 
   49 int *string_table_copy_list (gretl_string_table *gst);
   50 
   51 series_table *series_table_new (char **strs, int n_strs);
   52 
   53 series_table *series_table_copy (series_table *st);
   54 
   55 void series_table_destroy (series_table *st);
   56 
   57 double series_table_get_value (series_table *st, const char *s);
   58 
   59 const char *series_table_get_string (series_table *st, double val);
   60 
   61 int series_table_add_string (series_table *st, const char *s);
   62 
   63 char **series_table_get_strings (series_table *st, int *n_strs);
   64 
   65 int *series_table_map (series_table *st_from, series_table *st_to);
   66 
   67 void gretl_insert_builtin_string (const char *name, const char *s);
   68 
   69 char *get_built_in_string_by_name (const char *name);
   70 
   71 void builtin_strings_cleanup (void);
   72 
   73 int process_string_command (const char *line, 
   74                 double ***pZ, DATASET *dset,
   75                 PRN *prn);
   76 
   77 int substitute_named_strings (char *line, int *subst);
   78 
   79 char *gretl_getenv (const char *key, int *defined, int *err);
   80 
   81 char *retrieve_date_string (int t, const DATASET *dset, int *err);
   82 
   83 char *retrieve_file_content (const char *fname, const char *codset,
   84                  int *err);
   85 
   86 char *gretl_backtick (const char *arg, int *err);
   87 
   88 #endif /* GRETL_STRING_TABLE_H */