|
OPeNDAP Hyrax Back End Server (BES)
Updated for version 3.8.3
|
#include <assert.h>#include <sstream>#include <string>#include "BESDebug.h"#include "BESInternalError.h"#include "BESSyntaxUserError.h"#include "BESNotFoundError.h"

Go to the source code of this file.
Macros | |
| #define | BESDEBUG_FUNC(channel, info) BESDEBUG( (channel), "[" << std::string(NCML_MODULE_FUNCTION_NAME_MACRO) << "]: " << info ) |
| #define | NCML_ASSERT(cond) { if (!(cond)) { THROW_NCML_INTERNAL_ERROR(std::string("ASSERTION FAILED: ") + std::string(#cond)); } } |
| #define | NCML_ASSERT_MSG(cond, msg) |
| #define | NCML_MODULE_DBG_CHANNEL "ncml" |
| #define | NCML_MODULE_DBG_CHANNEL_2 "ncml:2" |
| #define | NCML_MODULE_FUNCTION_NAME_MACRO __PRETTY_FUNCTION__ |
| #define | THROW_NCML_INTERNAL_ERROR(msg) |
| #define | THROW_NCML_PARSE_ERROR(parseLine, msg) |
| #define | VALID_PTR(ptr) NCML_ASSERT_MSG((ptr), std::string("Null pointer:" + std::string(#ptr))); |
| #define BESDEBUG_FUNC | ( | channel, | |
| info | |||
| ) | BESDEBUG( (channel), "[" << std::string(NCML_MODULE_FUNCTION_NAME_MACRO) << "]: " << info ) |
Definition at line 58 of file NCMLDebug.h.
Referenced by agg_util::ArrayJoinExistingAggregation::ArrayJoinExistingAggregation(), agg_util::GridAggregationBase::copyProtoMapsIntoThisGrid(), agg_util::GridJoinExistingAggregation::makeAggregatedOuterMapVector(), agg_util::ArrayAggregationBase::read(), agg_util::GridAggregationBase::read(), and agg_util::ArrayJoinExistingAggregation::readConstrainedGranuleArraysAndAggregateDataHook().
| #define NCML_ASSERT | ( | cond | ) | { if (!(cond)) { THROW_NCML_INTERNAL_ERROR(std::string("ASSERTION FAILED: ") + std::string(#cond)); } } |
Definition at line 80 of file NCMLDebug.h.
Referenced by ncml_module::AggregationElement::AggregationElement(), ncml_module::NCMLBaseArray::cacheSuperclassStateIfNeeded(), ncml_module::NCMLArray< T >::cacheValuesIfNeeded(), ncml_module::NCMLArray< T >::copyDataFrom(), ncml_module::NetcdfElement::getAggMemberDataset(), ncml_module::Shape::getRowMajorIndex(), ncml_module::AggregationElement::handleBegin(), agg_util::ArrayJoinExistingAggregation::readConstrainedGranuleArraysAndAggregateDataHook(), agg_util::RCObject::removeFromPool(), and agg_util::AggregationUtil::validateArrayTypesAndShapesMatch().
| #define NCML_ASSERT_MSG | ( | cond, | |
| msg | |||
| ) |
Definition at line 83 of file NCMLDebug.h.
Referenced by agg_util::AggregationUtil::addDatasetArrayDataToAggregationOutputArray(), ncml_module::NetcdfElement::VariableValueValidator::addVariableToValidate(), agg_util::ArrayJoinExistingAggregation::ArrayJoinExistingAggregation(), ncml_module::NetcdfElement::borrowResponseObject(), ncml_module::NCMLArray< T >::cacheValuesIfNeeded(), ncml_module::NCMLParser::convertNcmlTypeToCanonicalType(), agg_util::GridAggregationBase::copyProtoMapsIntoThisGrid(), agg_util::AggregationUtil::couldBeCoordinateVariable(), ncml_module::NCMLBaseArray::createFromArray(), ncml_module::NetcdfElement::getNcoordsAsUnsignedInt(), ncml_module::VariableAggElement::getParentAggregation(), ncml_module::ValuesElement::handleBegin(), ncml_module::AggregationElement::handleBegin(), ncml_module::ValuesElement::handleContent(), ncml_module::ValuesElement::handleEnd(), ncml_module::ScanElement::handleEnd(), agg_util::AggregationUtil::joinArrayData(), agg_util::GridJoinExistingAggregation::makeAggregatedOuterMapVector(), ncml_module::NCMLRequestHandler::ncml_build_data(), ncml_module::Shape::IndexIterator::operator*(), ncml_module::NCMLParser::parseInto(), agg_util::AggregationUtil::produceOuterDimensionJoinedArray(), agg_util::TopLevelGridMapArrayGetter::readAndGetArray(), agg_util::ArrayAggregationBase::readConstrainedGranuleArraysAndAggregateDataHook(), agg_util::ArrayAggregateOnOuterDimension::readConstrainedGranuleArraysAndAggregateDataHook(), ncml_module::RenamedArrayWrapper::RenamedArrayWrapper(), ncml_module::NCMLElement::setParser(), ncml_module::NetcdfElement::VariableValueValidator::setVariableGotValues(), agg_util::AggregationUtil::transferArrayConstraints(), agg_util::ArrayAggregationBase::transferOutputConstraintsIntoGranuleTemplateHook(), ncml_module::NetcdfElement::unborrowResponseObject(), agg_util::AggregationUtil::unionAttrsInto(), and agg_util::RCObject::~RCObject().
| #define NCML_MODULE_DBG_CHANNEL "ncml" |
Definition at line 48 of file NCMLDebug.h.
| #define NCML_MODULE_DBG_CHANNEL_2 "ncml:2" |
Definition at line 51 of file NCMLDebug.h.
| #define NCML_MODULE_FUNCTION_NAME_MACRO __PRETTY_FUNCTION__ |
Definition at line 56 of file NCMLDebug.h.
| #define THROW_NCML_INTERNAL_ERROR | ( | msg | ) |
Definition at line 61 of file NCMLDebug.h.
Referenced by ncml_module::NetcdfElement::addDimension(), ncml_module::NCMLParser::checkDataIsValidForCanonicalTypeOrThrow(), ncml_module::NCMLArray< T >::createAndSetConstrainedValueBuffer(), ncml_module::NetcdfElement::createResponseObject(), agg_util::DDSLoader::getActionForType(), agg_util::DDSLoader::getActionNameForType(), ncml_module::Shape::getRowMajorIndex(), agg_util::DDSLoader::loadInto(), ncml_module::MyBaseTypeFactory::makeArrayTemplateVariable(), agg_util::DDSLoader::makeResponseForType(), ncml_module::MyBaseTypeFactory::makeVariable(), ncml_module::NetcdfElement::NetcdfElement(), ncml_module::OtherXMLParser::onEndDocument(), ncml_module::OtherXMLParser::onStartDocument(), ncml_module::NCMLParser::parseInto(), ncml_module::NetcdfElement::setChildAggregation(), and agg_util::GridAggregationBase::transferConstraintsToSubGridHook().
| #define THROW_NCML_PARSE_ERROR | ( | parseLine, | |
| msg | |||
| ) |
Definition at line 69 of file NCMLDebug.h.
Referenced by ncml_module::AggregationElement::addAggregationVariable(), ncml_module::NCMLParser::checkDataIsValidForCanonicalTypeOrThrow(), ncml_module::ScanElement::getDatasetList(), ncml_module::NetcdfElement::getNcoordsAsUnsignedInt(), ncml_module::ScanElement::getOlderThanAsSeconds(), ncml_module::ExplicitElement::handleBegin(), ncml_module::ReadMetadataElement::handleBegin(), ncml_module::VariableAggElement::handleBegin(), ncml_module::ValuesElement::handleBegin(), ncml_module::ScanElement::handleBegin(), ncml_module::DimensionElement::handleBegin(), ncml_module::NetcdfElement::handleBegin(), ncml_module::AggregationElement::handleBegin(), ncml_module::RemoveElement::handleContent(), ncml_module::ExplicitElement::handleContent(), ncml_module::ReadMetadataElement::handleContent(), ncml_module::ValuesElement::handleContent(), ncml_module::AttributeElement::handleContent(), ncml_module::DimensionElement::handleContent(), ncml_module::VariableElement::handleContent(), ncml_module::NetcdfElement::handleContent(), ncml_module::AggregationElement::handleContent(), ncml_module::NCMLElement::handleContent(), ncml_module::ValuesElement::handleEnd(), ncml_module::NetcdfElement::handleEnd(), ncml_module::AggregationElement::handleEnd(), ncml_module::OtherXMLParser::onParseError(), ncml_module::NCMLParser::onParseError(), ncml_module::OtherXMLParser::onParseWarning(), ncml_module::NCMLCacheAggXMLCommand::parse_request(), agg_util::ArrayJoinExistingAggregation::readConstrainedGranuleArraysAndAggregateDataHook(), agg_util::ArrayAggregateOnOuterDimension::readConstrainedGranuleArraysAndAggregateDataHook(), ncml_module::ValuesElement::setAttributes(), ncml_module::NetcdfElement::VariableValueValidator::validate(), and ncml_module::NCMLElement::validateAttributes().
| #define VALID_PTR | ( | ptr | ) | NCML_ASSERT_MSG((ptr), std::string("Null pointer:" + std::string(#ptr))); |
Definition at line 88 of file NCMLDebug.h.
Referenced by ncml_module::AggregationElement::addChildDataset(), ncml_module::NetcdfElement::addDimension(), ncml_module::AggregationElement::addScanElement(), ncml_module::NetcdfElement::VariableValueValidator::addVariableToValidate(), agg_util::AggregationUtil::collectVariableArraysInOrder(), ncml_module::NCMLArray< T >::copyDataFrom(), agg_util::GridAggregationBase::copyProtoMapsIntoThisGrid(), ncml_module::NCMLUtil::copyVariablesAndAttributesInto(), ncml_module::NCMLArray< T >::createAndSetConstrainedValueBuffer(), ncml_module::NCMLBaseArray::createFromArray(), ncml_module::NetcdfElement::createResponseObject(), agg_util::AggMemberDatasetWithDimensionCacheBase::fillDimensionCacheByUsingDataDDS(), ncml_module::NetcdfElement::VariableValueValidator::findVariableElementForLibdapVar(), ncml_module::NetcdfElement::getAggMemberDataset(), agg_util::ArrayAggregationBase::getArrayGetterInterface(), ncml_module::ScanElement::getDatasetList(), ncml_module::NetcdfElement::getDimensionInLocalScope(), agg_util::ArrayAggregationBase::getGranuleTemplateArray(), ncml_module::RemoveElement::handleBegin(), ncml_module::ReadMetadataElement::handleBegin(), ncml_module::ExplicitElement::handleBegin(), ncml_module::VariableAggElement::handleBegin(), ncml_module::ValuesElement::handleBegin(), ncml_module::DimensionElement::handleBegin(), ncml_module::VariableElement::handleBegin(), ncml_module::ValuesElement::handleContent(), ncml_module::ScanElement::handleEnd(), agg_util::AggregationUtil::joinArrayData(), agg_util::DDSLoader::loadInto(), ncml_module::NCMLElement::Factory::makeElement(), ncml_module::NCMLRequestHandler::ncml_build_das(), ncml_module::NCMLRequestHandler::ncml_build_data(), ncml_module::NCMLRequestHandler::ncml_build_dds(), ncml_module::NCMLRequestHandler::ncml_build_dmr(), ncml_module::NCMLParser::onCharacters(), ncml_module::NCMLParser::onEndElement(), ncml_module::NCMLParser::onEndElementWithNamespace(), ncml_module::NCMLParser::onStartElement(), ncml_module::NCMLParser::onStartElementWithNamespace(), ncml_module::NCMLParser::parseInto(), agg_util::AggregationUtil::performUnionAggregation(), ncml_module::NCMLUtil::populateDASFromDDS(), agg_util::AggregationUtil::produceOuterDimensionJoinedArray(), agg_util::GridAggregationBase::read(), agg_util::GridAggregationBase::readProtoSubGrid(), agg_util::GridAggregationBase::setShapeFrom(), ncml_module::NetcdfElement::VariableValueValidator::setVariableGotValues(), ncml_module::NCMLUtil::setVariableNameProperly(), agg_util::AggregationUtil::transferArrayConstraints(), agg_util::GridJoinExistingAggregation::transferConstraintsToSubGridHook(), agg_util::GridAggregateOnOuterDimension::transferConstraintsToSubGridHook(), agg_util::AggregationUtil::unionAttrsInto(), agg_util::AggregationUtil::validateArrayTypesAndShapesMatch(), and ncml_module::NCMLElement::validateAttributes().