Commit 6a98e801 authored by Kitware Robot's avatar Kitware Robot Committed by Ben Boeckel

visit-databases 2019-02-15 (d1980aea)

Code extracted from:

    https://gitlab.kitware.com/third-party/visit.git

at commit d1980aea57ed5976988fe60c2962d39c09ae52f7 (for/paraview-20190215-trunk-r30784).
parent ff066fc9
......@@ -29,53 +29,19 @@ SET(SOURCES
NETCDFFileObject.C
)
#needed by cmake to properly generate the correct readers in the interface collection
#for each reader in the interface we need: name, type, and name of header it is defined in
set(READER_NAMES
avtADAPTFileFormat
avtLODIFileFormat
avtLODIParticleFileFormat
avtFVCOM_STSDFileFormat
avtFVCOM_MTMDFileFormat
avtFVCOM_MTSDFileFormat
avtFVCOMParticleFileFormat
avtCCSM_MTSD_FileFormat
avtCCSM_STSD_FileFormat
avtBOUTFileFormat
)
set(READER_TYPES
STSD
MTSD
MTSD
STSD
MTMD
MTSD
MTSD
MTSD
STSD
MTMD
)
set(READER_INCLUDES
avtADAPTFileFormat
avtLODIFileFormat
avtLODIParticleFileFormat
avtFVCOM_STSDFileFormat
avtFVCOM_MTMDFileFormat
avtFVCOM_MTSDFileFormat
avtFVCOMParticleFileFormat
avtCCSMFileFormat
avtCCSMFileFormat
avtBOUTFileFormat
)
ADD_VISIT_INTERFACE_READER(VisItNETCDF "1.0"
VISIT_READER_NAMES ${READER_NAMES}
VISIT_READER_TYPES ${READER_TYPES}
VISIT_READER_INCLUDES ${READER_INCLUDES}
VISIT_READERS
NAME avtADAPTFileFormat TYPE STSD
NAME avtLODIFileFormat TYPE MTSD
NAME avtLODIParticleFileFormat TYPE MTSD
NAME avtFVCOM_STSDFileFormat TYPE STSD
NAME avtFVCOM_MTMDFileFormat TYPE MTMD
NAME avtFVCOM_MTSDFileFormat TYPE MTSD
NAME avtFVCOMParticleFileFormat TYPE MTSD
NAME avtCCSM_MTSD_FileFormat TYPE MTSD INCLUDE avtCCSMFileFormat
NAME avtCCSM_STSD_FileFormat TYPE STSD INCLUDE avtCCSMFileFormat
NAME avtBOUTFileFormat TYPE MTM
VISIT_INTERFACE_CALL ${INTERFACE_MACRO_CALL}
VISIT_INTERFACE_FILE ${INTERFACE_MACRO_FILE}
VISIT_INTERFACE_EXEMPT_CLASSES ${INTERFACE_EXEMPT_CLASSES}
SERVER_SOURCES ${SOURCES}
)
/*=========================================================================
Program: ParaView
Module: $RCSfile: @PLUGIN_NAME@@ARG_VISIT_INTERFACE_FILE@.h,v $
Module: $RCSfile: @_add_visit_reader_plugin_name@@_add_visit_reader_VISIT_INTERFACE_FILE@.h,v $
Copyright (c) 2005-2008 Sandia Corporation, Kitware Inc.
All rights reserved.
......@@ -30,25 +30,23 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
=========================================================================*/
#ifndef _@PLUGIN_NAME@@ARG_VISIT_INTERFACE_FILE@_h
#define _@PLUGIN_NAME@@ARG_VISIT_INTERFACE_FILE@_h
#ifndef @_add_visit_reader_plugin_name@@_add_visit_reader_VISIT_INTERFACE_FILE@_h
#define @_add_visit_reader_plugin_name@@_add_visit_reader_VISIT_INTERFACE_FILE@_h
#include "NETCDFFileObject.h"
#include "@ARG_VISIT_INCLUDE_NAME@.h"
#cmakedefine VISIT_READER_USES_INTERFACE
#include "@_add_visit_reader_VISIT_INCLUDE_NAME@.h"
namespace @PLUGIN_NAME@@ARG_VISIT_INTERFACE_FILE@
namespace @_add_visit_reader_plugin_name@@_add_visit_reader_VISIT_INTERFACE_FILE@
{
bool ValidNETCDFFile(const char *fname)
{
bool valid = true;
#ifdef VISIT_READER_USES_INTERFACE
#if _add_visit_reader_uses_interface
NETCDFFileObject *f = new NETCDFFileObject(fname);
valid = @ARG_VISIT_READER_NAME@::Identify(f);
valid = @_add_visit_reader_name@::Identify(f);
delete f;
#endif
#endif
return valid;
}
}
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment