55 inline bool double_eq(
double lhs,
double rhs,
double epsilon = 1.0e-5)
57 return fabs(lhs - rhs) < epsilon;
66 bool unique_names(vector<BaseType *> l,
const string &var,
const string &type,
string &msg);
75 void flush_stream(iostream ios, FILE *out);
145 int glob(
const char *c,
const char *s );
146 time_t
parse_time(
const char * str,
bool expand);
147 bool size_ok(
unsigned int sz,
unsigned int nelem);
148 bool pathname_ok(
const string &path,
bool strict =
true);
151 #if COMPRESSION_FOR_SERVER3
152 FILE *compressor(FILE *output,
int &childpid);
153 bool deflate_exists();
157 FILE *text_to_temp(
string text);
160 int wmatch(
const char *pat,
const char *s);
163 string file_to_string(FILE *fp);
165 int wildcmp(
const char *wild,
const char *
string);
168 const char *dods_progress();
time_t parse_time(const char *str, bool expand)
bool is_constructor_type(Type t)
Returns true if the instance is a constructor (i.e., Structure, Sequence or Grid) type variable...
string prune_spaces(const string &name)
string extract_string_argument(BaseType *arg)
bool dir_exists(const string &dir)
bool size_ok(unsigned int sz, unsigned int nelem)
sanitize the size of an array. Test for integer overflow when dynamically allocating an array...
bool is_vector_type(Type t)
Returns true if the instance is a vector (i.e., array) type variable.
Type
Identifies the data type.
void set_array_using_double(Array *dest, double *src, int src_len)
bool pathname_ok(const string &path, bool strict)
Does the string name a potentially valid pathname? Test the given pathname to verify that it is a val...
double * extract_double_array(Array *a)
ObjectType get_type(const string &value)
string path_to_filename(string path)
bool is_quoted(const string &s)
bool is_simple_type(Type t)
Returns true if the instance is a numeric, string or URL type variable.
const char * libdap_root()
void append_long_to_string(long val, int base, string &str_val)
double extract_double_value(BaseType *arg)
string long_to_string(long val, int base)
string double_to_string(const double &num)
string remove_quotes(const string &s)
bool unique_names(vector< BaseType * > l, const string &var_name, const string &type_name, string &msg)
string type_name(Type t)
Returns the type of the class instance as a string.
const char * libdap_version()
int glob(const char *c, const char *s)
bool double_eq(double lhs, double rhs, double epsilon=1.0e-5)
bool is_integer_type(Type t)
void append_double_to_string(const double &num, string &str)
const char * libdap_name()