"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/metgm/MetGmCDMVariableProfile.h" between
fimex-1.4.1.tar.gz and fimex-1.4.2.tar.gz

About: Fimex is a the File Interpolation, Manipulation and EXtraction library for gridded geospatial data. It converts between different, extensible dataformats (currently netcdf, NcML, grib1/2 and felt).

MetGmCDMVariableProfile.h  (fimex-1.4.1):MetGmCDMVariableProfile.h  (fimex-1.4.2)
/* /*
* Fimex * Fimex
* *
* (C) Copyright 2011, met.no * (C) Copyright 2011-2019, met.no
* *
* Project Info: https://wiki.met.no/fimex/start * Project Info: https://wiki.met.no/fimex/start
* *
* This library is free software; you can redistribute it and/or modify it * This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by * under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or * the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This library is distributed in the hope that it will be useful, but * This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
skipping to change at line 45 skipping to change at line 45
//fimex //fimex
// //
#include "fimex/CDMVariable.h" #include "fimex/CDMVariable.h"
// standard // standard
// //
#include <memory> #include <memory>
#include <set> #include <set>
#include <string> #include <string>
#include <vector>
namespace MetNoFimex { namespace MetNoFimex {
struct MetGmCDMVariableProfile { struct MetGmCDMVariableProfile {
MetGmCDMVariableProfile(short pid, const std::string& cdmName, std::shar ed_ptr<MetGmTags> tags) MetGmCDMVariableProfile(short pid, const std::string& cdmName, std::shar ed_ptr<MetGmTags> tags)
: p_id_(pid) : p_id_(pid)
, cdmName_(cdmName) , cdmName_(cdmName)
, pTags_(tags) , pTags_(tags)
{ {
skipping to change at line 72 skipping to change at line 73
std::string cdmName_; std::string cdmName_;
std::string standardName_; std::string standardName_;
std::string units_; std::string units_;
std::string zDimensionName_; std::string zDimensionName_;
std::string addOffset_; std::string addOffset_;
std::string scaleFactor_; std::string scaleFactor_;
std::string fillValue_; std::string fillValue_;
std::shared_ptr<MetGmTags> pTags_; std::shared_ptr<MetGmTags> pTags_;
}; };
typedef std::set<MetGmCDMVariableProfile> cdm_configuration; typedef std::vector<MetGmCDMVariableProfile> cdm_configuration;
struct MetGmCDMVariableProfileByPId struct MetGmCDMVariableProfileByPId
{ {
bool operator()(const MetGmCDMVariableProfile& a, const MetGmCDMVariable Profile& b) const { return a.p_id_ < b.p_id_; } bool operator()(const MetGmCDMVariableProfile& a, const MetGmCDMVariable Profile& b) const { return a.p_id_ < b.p_id_; }
bool operator()(cdm_configuration::const_iterator a, cdm_configuration:: const_iterator b) const { return this->operator()(*a, *b); } bool operator()(cdm_configuration::const_iterator a, cdm_configuration:: const_iterator b) const { return this->operator()(*a, *b); }
}; };
struct MetGmCDMVariableProfileEqPId struct MetGmCDMVariableProfileEqPId
{ {
short p_id_; short p_id_;
 End of changes. 3 change blocks. 
2 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)