libdap Updated for version 3.21.1
libdap4 is an implementation of OPeNDAP's DAP protocol.
getdap4.cc File Reference
#include "config.h"
#include <cstring>
#include <sstream>
#include <string>
#include <unistd.h>
#include "D4BaseTypeFactory.h"
#include "D4Connect.h"
#include "D4Group.h"
#include "D4Sequence.h"
#include "DMR.h"
#include "HTTPConnect.h"
#include "HTTPResponse.h"
#include "RCReader.h"
#include "StdinResponse.h"
#include "XMLWriter.h"
Include dependency graph for getdap4.cc:

Go to the source code of this file.

Functions

unsigned long long get_size (D4Group *grp, bool constrained=false)
 
unsigned long long get_size (DMR &dmr, bool constrained=false)
 
int main (int argc, char *argv[])
 
bool read_data (FILE *fp)
 

Variables

const char * version = CVER " (" DVR " DAP/" DAP_PROTOCOL_VERSION ")"
 

Function Documentation

◆ get_size() [1/2]

unsigned long long get_size ( D4Group * grp,
bool constrained = false )

Get the size of a response. This method looks at the variables in the DDS a computes the number of bytes in the response.

Note
This version of the method does a poor job with Sequences. A better implementation would look at row-constraint-based limitations and use them for size computations. If a row-constraint is missing, return an error.
Parameters
constrainedShould the size of the whole DDS be used or should the current constraint be taken into account?

Definition at line 174 of file getdap4.cc.

◆ get_size() [2/2]

unsigned long long get_size ( DMR & dmr,
bool constrained = false )

Definition at line 192 of file getdap4.cc.

◆ main()

int main ( int argc,
char * argv[] )

Definition at line 194 of file getdap4.cc.

◆ read_data()

bool read_data ( FILE * fp)

Definition at line 107 of file getdap4.cc.

Variable Documentation

◆ version

const char* version = CVER " (" DVR " DAP/" DAP_PROTOCOL_VERSION ")"

Definition at line 62 of file getdap4.cc.