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();