35 #include "FreeFormCPP.h"
39 #include "InternalErr.h"
40 #include "dods-datatypes.h"
44 const int Msgt_size = 255;
46 void free_ff_char_vector(
char **v,
int len);
48 const string ff_types(
Type dods_type);
49 int ff_prec(
Type dods_type);
51 const string make_output_format(
const string &name,
Type type,
54 const string makeND_output_format(
const string &name,
Type type,
55 const int width,
int ndim,
56 const long *start,
const long *edge,
const
57 long * stride,
string *dname);
59 const string &format_extension(
const string &new_extension =
"");
60 const string &format_delimiter(
const string &new_delimiter =
"");
64 const string find_ancillary_formats(
const string &dataset,
65 const string &delimiter = format_delimiter(),
66 const string &extension = format_extension());
68 const string find_ancillary_rss_formats(
const string &dataset,
69 const string &delimiter = format_delimiter(),
70 const string &extension = format_extension());
72 const string find_ancillary_rss_das(
const string &dataset,
73 const string &delimiter = format_delimiter(),
74 const string &extension = format_extension());
77 long Records(
const string &filename);
79 bool file_exist(
const char * filename);
81 long read_ff(
const char *dataset,
const char *if_file,
const char *o_format,
82 char *o_buffer,
unsigned long size);
84 bool is_integer_type(BaseType *btp);
85 bool is_float_type(BaseType *btp);
86 dods_uint32 get_integer_value(BaseType *var)
throw(InternalErr);
87 dods_float64 get_float_value(BaseType *var)
throw(InternalErr);
89 string get_Regex_format_file(
const string &filename);