"Fossies" - the Fresh Open Source Software Archive

Member "fimex-1.4.2/src/metgm/MetGmCommentAttributeParser.h" (6 Jan 2020, 2232 Bytes) of package /linux/privat/fimex-1.4.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "MetGmCommentAttributeParser.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 1.4.1_vs_1.4.2.

    1 /*
    2  * Fimex
    3  *
    4  * (C) Copyright 2011-2019, met.no
    5  *
    6  * Project Info:  https://wiki.met.no/fimex/start
    7  *
    8  * This library is free software; you can redistribute it and/or modify it
    9  * under the terms of the GNU Lesser General Public License as published by
   10  * the Free Software Foundation; either version 2.1 of the License, or
   11  * (at your option) any later version.
   12  *
   13  * This library is distributed in the hope that it will be useful, but
   14  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
   15  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
   16  * License for more details.
   17  *
   18  * You should have received a copy of the GNU Lesser General Public
   19  * License along with this library; if not, write to the Free Software
   20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
   21  * USA.
   22  */
   23 
   24 #ifndef METGM_COMMENTATTRIBUTEPARSER_HPP
   25 #define METGM_COMMENTATTRIBUTEPARSER_HPP
   26 
   27 // fimex
   28 //
   29 #include "fimex/CDMReaderDecl.h"
   30 
   31 #include <memory>
   32 
   33 namespace MetNoFimex {
   34 
   35 extern const std::string FREE_TEXT;
   36 extern const std::string VERSION;
   37 extern const std::string ANALYSIS_DATE_TIME;
   38 extern const std::string START_DATE_TIME;
   39 extern const std::string DATA_TYPE;
   40 extern const std::string MODEL_TYPE;
   41 extern const std::string PRODUCTION_NATION;
   42 
   43 class MetGmCommentAttributeParser
   44 {
   45 public:
   46     static std::shared_ptr<MetGmCommentAttributeParser> createMetGmCommentAttributeParser(const CDMReader_p& pCdmReader);
   47 
   48     const std::string& freeText() const { return freeText_; }
   49     const std::string& version() const { return version_; }
   50     const std::string& dataType() const { return dataType_; }
   51     const std::string& modelType() const { return modelType_; }
   52     const std::string& productNation() const { return productNation_; }
   53     const std::string& analysisDateTime() const { return analysisDateTime_; }
   54     const std::string& startDateTime() const { return startDateTime_; }
   55 
   56 private:
   57     MetGmCommentAttributeParser() {}
   58 
   59     std::string freeText_;
   60     std::string version_;
   61     std::string dataType_;
   62     std::string modelType_;
   63     std::string productNation_;
   64     std::string analysisDateTime_;
   65     std::string startDateTime_;
   66 };
   67 
   68 } // namespace MetNoFimex
   69 
   70 #endif