GeoConstraint.cc File Reference

#include "config.h"
#include <math.h>
#include <string.h>
#include <iostream>
#include <sstream>
#include "debug.h"
#include "dods-datatypes.h"
#include "GeoConstraint.h"
#include "Float64.h"
#include "Error.h"
#include "InternalErr.h"
#include "ce_functions.h"
#include "util.h"

Include dependency graph for GeoConstraint.cc:

Go to the source code of this file.

Functions

void remove_quotes (string &value)
bool unit_or_name_match (set< string > units, set< string > names, const string &var_units, const string &var_name)


Function Documentation

void remove_quotes ( string &  value  ) 

If an attribute value is quoted, remove the quotes.

This function only removes a starting and ending quote if both are present.

Parameters:
value A value-result parameter.

Definition at line 65 of file GeoConstraint.cc.

bool unit_or_name_match ( set< string >  units,
set< string >  names,
const string &  var_units,
const string &  var_name 
)

Look in the containers which hold the units attributes and variable name prefixes which are considered as identifying a vector as being a latitude or longitude vector.

Parameters:
units A container with a bunch of units attribute values.
names A container with a bunch of variable name prefixes.
var_units The value of the 'units' attribute for this variable.
var_name The name of the variable.
Returns:
True if the units_value matches any of the accepted attributes exactly or if the name_value starts with any of the accepted prefixes

Definition at line 105 of file GeoConstraint.cc.


Generated on Wed Jun 27 12:56:56 2007 for libdap++ by  doxygen 1.4.7