Commit 1789e694 authored by allens's avatar allens
Browse files

added new thirdparty reader for mdsplus data

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@12267 18c085ea-50e0-402c-830e-de6fd14e8384
parent 2dae025a
#*****************************************************************************
#
# Copyright (c) 2000 - 2010, Lawrence Livermore National Security, LLC
# Produced at the Lawrence Livermore National Laboratory
# LLNL-CODE-400142
# All rights reserved.
#
# This file is part of VisIt. For details, see https://visit.llnl.gov/. The
# full copyright notice is contained in the file COPYRIGHT located at the root
# of the VisIt distribution or at http://www.llnl.gov/visit/copyright.html.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# - Redistributions of source code must retain the above copyright notice,
# this list of conditions and the disclaimer below.
# - Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the disclaimer (as noted below) in the
# documentation and/or other materials provided with the distribution.
# - Neither the name of the LLNS/LLNL nor the names of its contributors may
# be used to endorse or promote products derived from this software without
# specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL LAWRENCE LIVERMORE NATIONAL SECURITY,
# LLC, THE U.S. DEPARTMENT OF ENERGY OR CONTRIBUTORS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
# DAMAGE.
#
# Modifications:
#
#****************************************************************************/
# Use the MDSPLUS_DIR hint from the config-site .cmake file
INCLUDE(${VISIT_SOURCE_DIR}/CMake/SetUpThirdParty.cmake)
IF (WIN32)
SET_UP_THIRD_PARTY(MDSPLUS lib/${VISIT_MSVC_VERSION} include MdsLib)
ELSE (WIN32)
IF("${VISIT_CMAKE_PLATFORM}" STREQUAL "Linux")
# Linux requires librt to resolve "clock_gettime"
# add this as a general dep:
SET(MDSPLUS_LIBDEP /usr/lib rt "${MDSPLUS_LIBDEP}")
ENDIF("${VISIT_CMAKE_PLATFORM}" STREQUAL "Linux")
SET_UP_THIRD_PARTY(MDSPLUS lib include MdsLib_client)
ENDIF (WIN32)
......@@ -398,6 +398,7 @@ VISIT_3RDPARTY_VAR(VISIT_SILO_DIR "Path containing the Silo library's inclu
VISIT_3RDPARTY_DEP(VISIT_SILO_LIBDEP "Silo library dependencies" SILO_LIBDEP)
VISIT_3RDPARTY_VAR(VISIT_VISUS_DIR "Path containing the ViSUS library's include and lib" VISUS_DIR)
VISIT_3RDPARTY_VAR(VISIT_XDMF_DIR "Path containing the Xdmf library's include and lib" XDMF_DIR)
VISIT_3RDPARTY_VAR(VISIT_MDSPLUS_DIR "Path containing the MDSplus library's include and lib" MDSPLUS_DIR)
#-----------------------------------------------------------------------------
# Read the version
#-----------------------------------------------------------------------------
......@@ -870,6 +871,12 @@ IF(XDMF_FOUND)
SET(HAVE_LIBXDMF 1)
ENDIF(XDMF_FOUND)
# Configure MDSplus support.
INCLUDE(${VISIT_SOURCE_DIR}/CMake/FindMDSplus.cmake)
IF(MDSPLUS_FOUND)
SET(HAVE_LIBMDSPLUS 1)
ENDIF(MDSPLUS_FOUND)
IF(CMAKE_HOST_UNIX)
SET(ZLIB_LIB z)
......
......@@ -156,6 +156,7 @@ Velodyne
Vs
${XDMF_READER}
)
THIRDPARTY_DEPENDENT_PLUGINS(MDSPLUS MDSPlus)
THIRDPARTY_DEPENDENT_PLUGINS(H5PART H5Part)
THIRDPARTY_DEPENDENT_PLUGINS(MILI Mili)
THIRDPARTY_DEPENDENT_PLUGINS(NETCDF NETCDF S3D)
......@@ -241,8 +242,8 @@ VTK
WavefrontOBJ
XYZ
Xmdv
paraDIS
paraDIS_tecplot
#paraDIS
#paraDIS_tecplot
)
IF (NOT WIN32)
......
# DO NOT EDIT THIS FILE! THIS FILE IS AUTOMATICALLY GENERATED BY xml2cmake
PROJECT(MDSplus)
SET(COMMON_SOURCES
MDSplusPluginInfo.C
MDSplusCommonPluginInfo.C
)
SET(LIBI_SOURCES
MDSplusPluginInfo.C
)
SET(LIBM_SOURCES
MDSplusMDServerPluginInfo.C
${COMMON_SOURCES}
avtMDSplusFileFormat.C
avtMDSplusOptions.C
#mdsPlusReader.cc
mdsPlusAPI.c
)
SET(LIBE_SOURCES
MDSplusEnginePluginInfo.C
${COMMON_SOURCES}
avtMDSplusFileFormat.C
avtMDSplusOptions.C
#mdsPlusReader.cc
mdsPlusAPI.c
)
INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_SOURCE_DIR}
${MDSPLUS_INCLUDE_DIR}
${VISIT_COMMON_INCLUDES}
${VISIT_INCLUDE_DIR}/avt/DBAtts/MetaData
${VISIT_INCLUDE_DIR}/avt/DBAtts/SIL
${VISIT_INCLUDE_DIR}/avt/Database/Database
${VISIT_INCLUDE_DIR}/avt/Database/Formats
${VISIT_INCLUDE_DIR}/avt/Database/Ghost
${VISIT_INCLUDE_DIR}/avt/FileWriter
${VISIT_INCLUDE_DIR}/avt/Filters
${VISIT_INCLUDE_DIR}/avt/MIR/Base
${VISIT_INCLUDE_DIR}/avt/MIR/Tet
${VISIT_INCLUDE_DIR}/avt/MIR/Zoo
${VISIT_INCLUDE_DIR}/avt/Math
${VISIT_INCLUDE_DIR}/avt/Pipeline/AbstractFilters
${VISIT_INCLUDE_DIR}/avt/Pipeline/Data
${VISIT_INCLUDE_DIR}/avt/Pipeline/Pipeline
${VISIT_INCLUDE_DIR}/avt/Pipeline/Sinks
${VISIT_INCLUDE_DIR}/avt/Pipeline/Sources
${VISIT_INCLUDE_DIR}/avt/VisWindow/VisWindow
${VISIT_INCLUDE_DIR}/visit_vtk/full
${VISIT_INCLUDE_DIR}/visit_vtk/lightweight
${VTK_INCLUDE_DIRS}
)
LINK_DIRECTORIES(${VISIT_LIBRARY_DIR} ${VTK_LIBRARY_DIRS} ${MDSPLUS_LIBRARY_DIR} )
ADD_LIBRARY(IMDSplusDatabase ${LIBI_SOURCES})
TARGET_LINK_LIBRARIES(IMDSplusDatabase visitcommon)
SET(INSTALLTARGETS IMDSplusDatabase)
IF(NOT VISIT_ENGINE_ONLY AND NOT VISIT_DBIO_ONLY)
ADD_LIBRARY(MMDSplusDatabase ${LIBM_SOURCES} )
TARGET_LINK_LIBRARIES(MMDSplusDatabase visitcommon avtdbatts avtdatabase_ser ${MDSPLUS_LIB} )
ADD_TARGET_DEFINITIONS(MMDSplusDatabase MDSERVER)
SET(INSTALLTARGETS ${INSTALLTARGETS} MMDSplusDatabase)
ENDIF(NOT VISIT_ENGINE_ONLY AND NOT VISIT_DBIO_ONLY)
ADD_LIBRARY(EMDSplusDatabase_ser ${LIBE_SOURCES})
TARGET_LINK_LIBRARIES(EMDSplusDatabase_ser visitcommon avtdatabase_ser avtpipeline_ser ${MDSPLUS_LIB} )
ADD_TARGET_DEFINITIONS(EMDSplusDatabase_ser ENGINE)
SET(INSTALLTARGETS ${INSTALLTARGETS} EMDSplusDatabase_ser)
IF(VISIT_PARALLEL)
ADD_PARALLEL_LIBRARY(EMDSplusDatabase_par ${LIBE_SOURCES})
TARGET_LINK_LIBRARIES(EMDSplusDatabase_par visitcommon avtdatabase_par avtpipeline_par ${MDSPLUS_LIB} )
ADD_TARGET_DEFINITIONS(EMDSplusDatabase_par ENGINE)
SET(INSTALLTARGETS ${INSTALLTARGETS} EMDSplusDatabase_par)
ENDIF(VISIT_PARALLEL)
VISIT_INSTALL_DATABASE_PLUGINS(${INSTALLTARGETS})
VISIT_PLUGIN_TARGET_PREFIX(${INSTALLTARGETS})
<?xml version="1.0"?>
<Plugin name="MDSplus" type="database" label="avtMDSplus" version="1.0" enabled="true" mdspecificcode="false" engspecificcode="false" onlyengine="false" noengine="false" dbtype="MTSD" haswriter="false" hasoptions="true" filePatternsStrict="false" opensWholeDirectory="false">
<CXXFLAGS>
${MDSPLUS_INCLUDE_DIR}
</CXXFLAGS>
<LDFLAGS>
${MDSPLUS_LIBRARY_DIR}
</LDFLAGS>
<LIBS>
${MDSPLUS_LIB}
</LIBS>
<FilePatterns>
*.mdsplus
</FilePatterns>
<Files components="M">
avtMDSplusFileFormat.C
avtMDSplusOptions.C
</Files>
<Files components="E">
avtMDSplusFileFormat.C
avtMDSplusOptions.C
</Files>
<Attribute name="" purpose="" persistent="false" keyframe="true" exportAPI="" exportInclude="">
</Attribute>
</Plugin>
/*****************************************************************************
*
* Copyright (c) 2000 - 2010, Lawrence Livermore National Security, LLC
* Produced at the Lawrence Livermore National Laboratory
* LLNL-CODE-442911
* All rights reserved.
*
* This file is part of VisIt. For details, see https://visit.llnl.gov/. The
* full copyright notice is contained in the file COPYRIGHT located at the root
* of the VisIt distribution or at http://www.llnl.gov/visit/copyright.html.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
* this list of conditions and the disclaimer below.
* - Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the disclaimer (as noted below) in the
* documentation and/or other materials provided with the distribution.
* - Neither the name of the LLNS/LLNL nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL LAWRENCE LIVERMORE NATIONAL SECURITY,
* LLC, THE U.S. DEPARTMENT OF ENERGY OR CONTRIBUTORS BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
* DAMAGE.
*
*****************************************************************************/
#include <MDSplusPluginInfo.h>
#include <avtMDSplusFileFormat.h>
#include <avtMTSDFileFormatInterface.h>
#include <avtGenericDatabase.h>
#include <avtMDSplusOptions.h>
// ****************************************************************************
// Method: MDSplusCommonPluginInfo::GetDatabaseType
//
// Purpose:
// Returns the type of a MDSplus database.
//
// Programmer: generated by xml2info
// Creation: omitted
//
// ****************************************************************************
DatabaseType
MDSplusCommonPluginInfo::GetDatabaseType()
{
return DB_TYPE_MTSD;
}
// ****************************************************************************
// Method: MDSplusCommonPluginInfo::SetupDatabase
//
// Purpose:
// Sets up a MDSplus database.
//
// Arguments:
// list A list of file names.
// nList The number of timesteps in list.
// nBlocks The number of blocks in the list.
//
// Returns: A MDSplus database from list.
//
// Programmer: generated by xml2info
// Creation: omitted
//
// ****************************************************************************
avtDatabase *
MDSplusCommonPluginInfo::SetupDatabase(const char *const *list,
int nList, int nBlock)
{
int nTimestepGroups = nList / nBlock;
avtMTSDFileFormat ***ffl = new avtMTSDFileFormat**[nTimestepGroups];
for (int i = 0 ; i < nTimestepGroups ; i++)
{
ffl[i] = new avtMTSDFileFormat*[nBlock];
for (int j = 0 ; j < nBlock ; j++)
{
ffl[i][j] = new avtMDSplusFileFormat(list[i*nBlock + j], readOptions);
}
}
avtMTSDFileFormatInterface *inter
= new avtMTSDFileFormatInterface(ffl, nTimestepGroups, nBlock);
return new avtGenericDatabase(inter);
}
// ****************************************************************************
// Method: MDSplusCommonPluginInfo::GetReadOptions
//
// Purpose:
// Gets the read options.
//
// Programmer: generated by xml2info
// Creation: omitted
//
// ****************************************************************************
DBOptionsAttributes *
MDSplusCommonPluginInfo::GetReadOptions() const
{
return GetMDSplusReadOptions();
}
// ****************************************************************************
// Method: MDSplusCommonPluginInfo::GetWriteOptions
//
// Purpose:
// Gets the write options.
//
// Programmer: generated by xml2info
// Creation: omitted
//
// ****************************************************************************
DBOptionsAttributes *
MDSplusCommonPluginInfo::GetWriteOptions() const
{
return GetMDSplusWriteOptions();
}
/*****************************************************************************
*
* Copyright (c) 2000 - 2010, Lawrence Livermore National Security, LLC
* Produced at the Lawrence Livermore National Laboratory
* LLNL-CODE-442911
* All rights reserved.
*
* This file is part of VisIt. For details, see https://visit.llnl.gov/. The
* full copyright notice is contained in the file COPYRIGHT located at the root
* of the VisIt distribution or at http://www.llnl.gov/visit/copyright.html.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
* this list of conditions and the disclaimer below.
* - Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the disclaimer (as noted below) in the
* documentation and/or other materials provided with the distribution.
* - Neither the name of the LLNS/LLNL nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL LAWRENCE LIVERMORE NATIONAL SECURITY,
* LLC, THE U.S. DEPARTMENT OF ENERGY OR CONTRIBUTORS BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
* DAMAGE.
*
*****************************************************************************/
#include <MDSplusPluginInfo.h>
// ****************************************************************************
// Function: GetEngineInfo
//
// Purpose:
// Return a new EnginePluginInfo for the MDSplus database.
//
// Programmer: generated by xml2info
// Creation: omitted
//
// ****************************************************************************
extern "C" DBP_EXPORT EngineDatabasePluginInfo* MDSplus_GetEngineInfo()
{
return new MDSplusEnginePluginInfo;
}
// ****************************************************************************
// Method: MDSplusEnginePluginInfo::GetWriter
//
// Purpose:
// Sets up a MDSplus writer.
//
// Returns: A MDSplus writer.
//
// Programmer: generated by xml2info
// Creation: omitted
//
// ****************************************************************************
avtDatabaseWriter *
MDSplusEnginePluginInfo::GetWriter(void)
{
return NULL;
}
/*****************************************************************************
*
* Copyright (c) 2000 - 2010, Lawrence Livermore National Security, LLC
* Produced at the Lawrence Livermore National Laboratory
* LLNL-CODE-442911
* All rights reserved.
*
* This file is part of VisIt. For details, see https://visit.llnl.gov/. The
* full copyright notice is contained in the file COPYRIGHT located at the root
* of the VisIt distribution or at http://www.llnl.gov/visit/copyright.html.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
* this list of conditions and the disclaimer below.
* - Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the disclaimer (as noted below) in the
* documentation and/or other materials provided with the distribution.
* - Neither the name of the LLNS/LLNL nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL LAWRENCE LIVERMORE NATIONAL SECURITY,
* LLC, THE U.S. DEPARTMENT OF ENERGY OR CONTRIBUTORS BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
* DAMAGE.
*
*****************************************************************************/
#include <MDSplusPluginInfo.h>
// ****************************************************************************
// Function: GetMDServerInfo
//
// Purpose:
// Return a new MDServerPluginInfo for the MDSplus database.
//
// Programmer: generated by xml2info
// Creation: omitted
//
// ****************************************************************************
extern "C" DBP_EXPORT MDServerDatabasePluginInfo* MDSplus_GetMDServerInfo()
{
return new MDSplusMDServerPluginInfo;
}
// this makes compilers happy... remove if we ever have functions here
void MDSplusMDServerPluginInfo::dummy()
{
}
/*****************************************************************************
*
* Copyright (c) 2000 - 2010, Lawrence Livermore National Security, LLC
* Produced at the Lawrence Livermore National Laboratory
* LLNL-CODE-442911
* All rights reserved.
*
* This file is part of VisIt. For details, see https://visit.llnl.gov/. The
* full copyright notice is contained in the file COPYRIGHT located at the root
* of the VisIt distribution or at http://www.llnl.gov/visit/copyright.html.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
* this list of conditions and the disclaimer below.
* - Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the disclaimer (as noted below) in the
* documentation and/or other materials provided with the distribution.
* - Neither the name of the LLNS/LLNL nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL LAWRENCE LIVERMORE NATIONAL SECURITY,
* LLC, THE U.S. DEPARTMENT OF ENERGY OR CONTRIBUTORS BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
* DAMAGE.
*
*****************************************************************************/
// ************************************************************************* //
// File: MDSplusPluginInfo.C
// ************************************************************************* //
#include <MDSplusPluginInfo.h>
#include <visit-config.h>
extern "C" DBP_EXPORT const char *MDSplusVisItPluginVersion = VISIT_VERSION;
// ****************************************************************************
// Function: GetGeneralInfo
//
// Purpose:
// Return a new GeneralPluginInfo for the MDSplus database.
//
// Programmer: generated by xml2info
// Creation: omitted
//
// ****************************************************************************
extern "C" DBP_EXPORT GeneralDatabasePluginInfo* MDSplus_GetGeneralInfo()
{
return new MDSplusGeneralPluginInfo;
}
// ****************************************************************************
// Method: MDSplusGeneralPluginInfo::GetName
//
// Purpose:
// Return the name of the database plugin.
//
// Returns: A pointer to the name of the database plugin.
//
// Programmer: generated by xml2info
// Creation: omitted
//
// ****************************************************************************
const char *
MDSplusGeneralPluginInfo::GetName() const
{
return "MDSplus";
}
// ****************************************************************************
// Method: MDSplusGeneralPluginInfo::GetVersion
//
// Purpose:
// Return the version of the database plugin.
//
// Returns: A pointer to the version of the database plugin.
//
// Programmer: generated by xml2info
// Creation: omitted
//
// ****************************************************************************
const char *
MDSplusGeneralPluginInfo::GetVersion() const
{
return "1.0";
}
// ****************************************************************************
// Method: MDSplusGeneralPluginInfo::GetID
//
// Purpose:
// Return the id of the database plugin.
//
// Returns: A pointer to the id of the database plugin.
//
// Programmer: generated by xml2info
// Creation: omitted
//
// ****************************************************************************
const char *
MDSplusGeneralPluginInfo::GetID() const
{
return "MDSplus_1.0";
}
// ****************************************************************************
// Method: MDSplusGeneralPluginInfo::EnabledByDefault
//
// Purpose:
// Return true if this plugin should be enabled by default; false otherwise.
//
// Returns: true/false
//
// Programmer: generated by xml2info
// Creation: omitted
//
// ****************************************************************************
bool
MDSplusGeneralPluginInfo::EnabledByDefault() const
{
return true;
}
// ****************************************************************************
// Method: MDSplusGeneralPluginInfo::HasWriter
//
// Purpose:
// Return true if this plugin has a database writer.
//
// Returns: true/false
//
// Programmer: generated by xml2info
// Creation: omitted
//
// ****************************************************************************