libdap Updated for version 3.21.1
libdap4 is an implementation of OPeNDAP's DAP protocol.
util_mit.cc File Reference
#include "config.h"
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctype.h>
#include <time.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
#include "util_mit.h"
#include "debug.h"
Include dependency graph for util_mit.cc:

Go to the source code of this file.

Namespaces

namespace  libdap
 top level DAP object to house generic methods
 

Macros

#define _REENTRANT   1
 
#define MAX_TIME_STR_LEN   40
 
#define TOLOWER(c)
 
#define TOUPPER(c)
 

Functions

string libdap::date_time_str (time_t *calendar, bool local)
 
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'.

Parameters
numThe double you wish to append to str.
strThe string where the textual representation of num will be appended.
Returns
void.
time_t libdap::parse_time (const char *str, bool expand)
 

Macro Definition Documentation

◆ _REENTRANT

#define _REENTRANT   1

Definition at line 54 of file util_mit.cc.

◆ MAX_TIME_STR_LEN

#define MAX_TIME_STR_LEN   40

Definition at line 55 of file util_mit.cc.

◆ TOLOWER

#define TOLOWER ( c)
Value:
tolower((int)(c))

Definition at line 75 of file util_mit.cc.

◆ TOUPPER

#define TOUPPER ( c)
Value:
toupper((int)(c))

Definition at line 76 of file util_mit.cc.