1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
 * NCWriteMPAS.hpp
 *
 *  nc write helper for MPAS type data (CAM)
 *  Created on: April 9, 2014
 *
 */

#ifndef NCWRITEMPAS_HPP_
#define NCWRITEMPAS_HPP_

#include "NCWriteHelper.hpp"

namespace moab
{

class NCWriteMPAS : public UcdNCWriteHelper
{
  public:
    NCWriteMPAS( WriteNC* writeNC, int fileId, const FileOptions& opts, EntityHandle fileSet )
        : UcdNCWriteHelper( writeNC, fileId, opts, fileSet )
    {
    }

    virtual ~NCWriteMPAS();

  private:
    //! Implementation of NCWriteHelper::collect_mesh_info()
    virtual ErrorCode collect_mesh_info();<--- Function in derived class<--- Function in derived class

    //! Collect data for specified variables
    virtual ErrorCode collect_variable_data( std::vector< std::string >& var_names, std::vector< int >& tstep_nums );<--- Function in derived class<--- Function in derived class

    //! Implementation of NCWriteHelper::write_nonset_variables()
    virtual ErrorCode write_nonset_variables( std::vector< WriteNC::VarData >& vdatas, std::vector< int >& tstep_nums );<--- Function in derived class<--- Function in derived class
};

}  // namespace moab

#endif