libdap Updated for version 3.21.1
libdap4 is an implementation of OPeNDAP's DAP protocol.
|
Go to the source code of this file.
Namespaces | |
namespace | libdap |
top level DAP object to house generic methods | |
Functions | |||||||
string | libdap::D2type_name (Type t) | ||||||
Returns the type of the class instance as a string. Supports all DAP2 types and not the DAP4-only types. Also returns Url (DAP2) and not "URL" (DAP4) for the URL type. | |||||||
string | libdap::D4type_name (Type t) | ||||||
Returns the type of the class instance as a string. Supports all DAP4 types and not the DAP2-only types. Also returns URL (DAP4) and not "Url" (DAP2) for the URL type. | |||||||
bool | libdap::dir_exists (const string &dir) | ||||||
bool | libdap::double_eq (double lhs, double rhs, double epsilon=1.0e-5) | ||||||
void | libdap::downcase (string &s) | ||||||
double * | libdap::extract_double_array (Array *a) | ||||||
void | libdap::extract_double_array (Array *a, vector< double > &dest) | ||||||
double | libdap::extract_double_value (BaseType *arg) | ||||||
string | libdap::extract_string_argument (BaseType *arg) | ||||||
Type | libdap::get_type (const char *name) | ||||||
bool | libdap::is_constructor_type (Type t) | ||||||
Returns true if the instance is a constructor (i.e., Structure, Sequence or Grid) type variable. | |||||||
bool | libdap::is_host_big_endian () | ||||||
Does this host use big-endian byte order? | |||||||
bool | libdap::is_integer_type (Type t) | ||||||
bool | libdap::is_quoted (const string &s) | ||||||
bool | libdap::is_simple_type (Type t) | ||||||
Returns true if the instance is a numeric, string or URL type variable. | |||||||
bool | libdap::is_vector_type (Type t) | ||||||
Returns true if the instance is a vector (i.e., array) type variable. | |||||||
const char * | libdap::libdap_name () | ||||||
const char * | libdap::libdap_root () | ||||||
const char * | libdap::libdap_version () | ||||||
string | libdap::prune_spaces (const string &name) | ||||||
string | libdap::remove_quotes (const string &s) | ||||||
void | libdap::set_array_using_double (Array *dest, double *src, int src_len) | ||||||
string | libdap::systime () | ||||||
string | libdap::type_name (Type t) | ||||||
bool | libdap::unique_names (vector< BaseType * > l, const string &var_name, const string &type_name, string &msg) | ||||||
Integer to string conversion functions | |||||||
Fast, safe conversions from long to a character representation which gets appended to a string. This method will take a long value 'val' and it will recursively divide it by 'base' in order to "extract" one by one the digits which compose it; these digits will be appended to the string
| |||||||
void | libdap::append_long_to_string (long val, int base, string &str_val) | ||||||
string | libdap::long_to_string (long val, int base) | ||||||
Double to string conversion functions | |||||||
Conversions from double to a character representation which gets appended to a string. This function depends on the standard routine sprintf to convert a double to a textual representation which gets appended to the string 'str'.
| |||||||
void | libdap::append_double_to_string (const double &num, string &str) | ||||||
string | libdap::double_to_string (const double &num) | ||||||
int | libdap::glob (const char *c, const char *s) | ||||||
time_t | libdap::parse_time (const char *str, bool expand) | ||||||
string | libdap::path_to_filename (string path) | ||||||
Security functions | |||||||
string | libdap::dap_version () | ||||||
string | libdap::open_temp_fstream (ofstream &f, const string &name_template, const string &suffix) | ||||||
bool | libdap::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 valid name. We define this as: Contains only printable characters; and Is less than 256 characters. If strict is true, test that the pathname consists of only letters, digits, and underscore, dash and dot characters instead of the more general case where a pathname can be composed of any printable characters. | |||||||
bool | libdap::size_ok (unsigned int sz, unsigned int nelem) | ||||||
sanitize the size of an array. Test for integer overflow when dynamically allocating an array. | |||||||