Commit 2c7d4cb5 authored by whitlocb's avatar whitlocb
Browse files

Added XDB plugin

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@23162 18c085ea-50e0-402c-830e-de6fd14e8384
parent 20de5ad2
......@@ -666,6 +666,8 @@ OPTION(VISIT_USE_BOOST "Use system boost library." ON)
OPTION(VISIT_THREAD "Build VisIt with thread support." OFF)
OPTION(VISIT_ENABLE_XDB "Enable Intelligent Light XDB database plugin." OFF) # OFF for now
SET(VISIT_INSTALL_PROFILES_TO_HOSTS "" CACHE STRING "Install specified host profiles (no action if empty)." )
MACRO(VISIT_3RDPARTY_VAR libvar comment)
......@@ -2586,7 +2588,7 @@ ELSE (NOT WIN32)
/DINSTALL_PREFIX=${CIP_NATIVE}
/DBIN_DIR=${CBD_NATIVE}
/DCL_64=${CMAKE_CL_64}
${VISIT_WINDOWS_DIR}/installation/CreateDBSections.nsi
${VISIT_WINDOWS_DIR}/distribution/installation/CreateDBSections.nsi
COMMAND ${MAKENSIS}
/DVisItVersion=${VISIT_VERSION}
/DCOMPILER=${VISIT_MSVC_VERSION}
......
......@@ -142,8 +142,7 @@ if test -n "$visitpython"; then
# Set up Python variables so the binary will look for modules in their new
# home inside the VisIt installation instead of where Python was compiled.
if [[ -d "$visitdir/lib/python" ]]
then
if test -d "$visitdir/lib/python" ; then
export PYTHONHOME="$visitdir/lib/python"
unset PYTHONPATH
export PYTHONPATH="$PYTHONHOME/lib/python$pyver:$PYTHONHOME/lib/python$pyver/lib-dynload"
......
#****************************************************************************
#
# Copyright (c) 2000 - 2013, Lawrence Livermore National Security, LLC
# Copyright (c) 2000 - 2014, Lawrence Livermore National Security, LLC
# Produced at the Lawrence Livermore National Laboratory
# LLNL-CODE-442911
# All rights reserved.
......@@ -158,6 +158,9 @@
# Eric Brugger, Fri Dec 20 12:18:17 PST 2013
# I added the MRTest reader.
#
# Brad Whitlock, Tue Jan 14 17:20:42 PST 2014
# Add XDB plugin.
#
# Eric Brugger, Mon Jan 13 17:24:13 PST 2014
# I moved the AMRTest reader from the optional list of databases to
# build to the required list of databases to build.
......@@ -291,6 +294,13 @@ IF(VISIT_STATIC)
SET(ALL_THIRDPARTY_IO_LIB ${TMP_THIRDPARTY_IO_LIB} CACHE INTERNAL "List of all I/O libs")
ENDIF(VISIT_STATIC)
# If we're not building statically, add XDB -- if we enabled it.
IF(NOT VISIT_STATIC)
IF(VISIT_ENABLE_XDB)
SET(XDBPLUGIN XDB)
ENDIF(VISIT_ENABLE_XDB)
ENDIF(NOT VISIT_STATIC)
# These are our required plugins (no external dependencies)
SET(REQUIRED_DATABASE_PLUGINS
AMRTest
......@@ -353,6 +363,7 @@ Xmdv
lata
volimage
unv
${XDBPLUGIN}
)
IF(TARGET vtkIOEnSight)
......
#*****************************************************************************
# Copyright (c) 2014 Intelligent Light. All rights reserved.
# Work partially supported by DOE Grant SC0007548.
# FieldView XDB Export is provided expressly for use within VisIt.
# All other uses are strictly forbidden.
#*****************************************************************************
#
# Install macro that makes sure that a binary library gets installed.
#
MACRO(INSTALL_XDB_LIBRARY libfile)
IF(WIN32)
SET(XDB_INSTALL_DIR ${VISIT_INSTALLED_VERSION_BIN})
ELSE(WIN32)
SET(XDB_INSTALL_DIR ${VISIT_INSTALLED_VERSION_LIB})
ENDIF(WIN32)
INSTALL(FILES ${libfile}
DESTINATION ${XDB_INSTALL_DIR}
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
GROUP_READ GROUP_WRITE GROUP_EXECUTE
WORLD_READ WORLD_EXECUTE
)
ENDMACRO(INSTALL_XDB_LIBRARY)
#
# On Mac, we have to add back in VTK paths to the VXDB binaries so they will run
# properly in a development build.
#
MACRO(PATCH_VTK_PATHS target libfile)
IF(APPLE)
ADD_CUSTOM_TARGET(${target} ALL
COMMAND ${CMAKE_COMMAND} -E echo "Fixing VTK paths in ${libfile}"
COMMAND install_name_tool -change @rpath/lib/libvtkCommonComputationalGeometry-6.1.dylib ${VTK_LIBRARY_DIRS}/libvtkCommonComputationalGeometry-6.1.dylib ${libfile}
COMMAND install_name_tool -change @rpath/lib/libvtkCommonCore-6.1.dylib ${VTK_LIBRARY_DIRS}/libvtkCommonCore-6.1.dylib ${libfile}
COMMAND install_name_tool -change @rpath/lib/libvtkCommonDataModel-6.1.dylib ${VTK_LIBRARY_DIRS}/libvtkCommonDataModel-6.1.dylib ${libfile}
COMMAND install_name_tool -change @rpath/lib/libvtkCommonExecutionModel-6.1.dylib ${VTK_LIBRARY_DIRS}/libvtkCommonExecutionModel-6.1.dylib ${libfile}
COMMAND install_name_tool -change @rpath/lib/libvtkCommonMath-6.1.dylib ${VTK_LIBRARY_DIRS}/libvtkCommonMath-6.1.dylib ${libfile}
COMMAND install_name_tool -change @rpath/lib/libvtkCommonMisc-6.1.dylib ${VTK_LIBRARY_DIRS}/libvtkCommonMisc-6.1.dylib ${libfile}
COMMAND install_name_tool -change @rpath/lib/libvtkCommonSystem-6.1.dylib ${VTK_LIBRARY_DIRS}/libvtkCommonSystem-6.1.dylib ${libfile}
COMMAND install_name_tool -change @rpath/lib/libvtkCommonTransforms-6.1.dylib ${VTK_LIBRARY_DIRS}/libvtkCommonTransforms-6.1.dylib ${libfile}
COMMAND install_name_tool -change @rpath/lib/libvtkFiltersCore-6.1.dylib ${VTK_LIBRARY_DIRS}/libvtkFiltersCore-6.1.dylib ${libfile}
COMMAND install_name_tool -change @rpath/lib/libvtkFiltersExtraction-6.1.dylib ${VTK_LIBRARY_DIRS}/libvtkFiltersExtraction-6.1.dylib ${libfile}
COMMAND install_name_tool -change @rpath/lib/libvtkFiltersFlowPaths-6.1.dylib ${VTK_LIBRARY_DIRS}/libvtkFiltersFlowPaths-6.1.dylib ${libfile}
COMMAND install_name_tool -change @rpath/lib/libvtkFiltersGeneral-6.1.dylib ${VTK_LIBRARY_DIRS}/libvtkFiltersGeneral-6.1.dylib ${libfile}
COMMAND install_name_tool -change @rpath/lib/libvtkFiltersGeometry-6.1.dylib ${VTK_LIBRARY_DIRS}/libvtkFiltersGeometry-6.1.dylib ${libfile}
COMMAND install_name_tool -change @rpath/lib/libvtkFiltersSources-6.1.dylib ${VTK_LIBRARY_DIRS}/libvtkFiltersSources-6.1.dylib ${libfile}
COMMAND install_name_tool -change @rpath/lib/libvtkFiltersStatistics-6.1.dylib ${VTK_LIBRARY_DIRS}/libvtkFiltersStatistics-6.1.dylib ${libfile}
COMMAND install_name_tool -change @rpath/lib/libvtkIOCore-6.1.dylib ${VTK_LIBRARY_DIRS}/libvtkIOCore-6.1.dylib ${libfile}
COMMAND install_name_tool -change @rpath/lib/libvtkIOImage-6.1.dylib ${VTK_LIBRARY_DIRS}/libvtkIOImage-6.1.dylib ${libfile}
COMMAND install_name_tool -change @rpath/lib/libvtkIOLegacy-6.1.dylib ${VTK_LIBRARY_DIRS}/libvtkIOLegacy-6.1.dylib ${libfile}
COMMAND install_name_tool -change @rpath/lib/libvtkImagingCore-6.1.dylib ${VTK_LIBRARY_DIRS}/libvtkImagingCore-6.1.dylib ${libfile}
COMMAND install_name_tool -change @rpath/lib/libvtkImagingFourier-6.1.dylib ${VTK_LIBRARY_DIRS}/libvtkImagingFourier-6.1.dylib ${libfile}
COMMAND install_name_tool -change @rpath/lib/libvtkImagingHybrid-6.1.dylib ${VTK_LIBRARY_DIRS}/libvtkImagingHybrid-6.1.dylib ${libfile}
COMMAND install_name_tool -change @rpath/lib/libvtkInteractionStyle-6.1.dylib ${VTK_LIBRARY_DIRS}/libvtkInteractionStyle-6.1.dylib ${libfile}
COMMAND install_name_tool -change @rpath/lib/libvtkRenderingCore-6.1.dylib ${VTK_LIBRARY_DIRS}/libvtkRenderingCore-6.1.dylib ${libfile}
COMMAND install_name_tool -change @rpath/lib/libvtkRenderingFreeType-6.1.dylib ${VTK_LIBRARY_DIRS}/libvtkRenderingFreeType-6.1.dylib ${libfile}
COMMAND install_name_tool -change @rpath/lib/libvtkRenderingFreeTypeOpenGL-6.1.dylib ${VTK_LIBRARY_DIRS}/libvtkRenderingFreeTypeOpenGL-6.1.dylib ${libfile}
COMMAND install_name_tool -change @rpath/lib/libvtkRenderingOpenGL-6.1.dylib ${VTK_LIBRARY_DIRS}/libvtkRenderingOpenGL-6.1.dylib ${libfile}
COMMAND install_name_tool -change @rpath/lib/libvtkalglib-6.1.dylib ${VTK_LIBRARY_DIRS}/libvtkalglib-6.1.dylib ${libfile}
COMMAND install_name_tool -change @rpath/lib/libvtkfreetype-6.1.dylib ${VTK_LIBRARY_DIRS}/libvtkfreetype-6.1.dylib ${libfile}
COMMAND install_name_tool -change @rpath/lib/libvtkftgl-6.1.dylib ${VTK_LIBRARY_DIRS}/libvtkftgl-6.1.dylib ${libfile}
COMMAND install_name_tool -change @rpath/lib/libvtkjpeg-6.1.dylib ${VTK_LIBRARY_DIRS}/libvtkjpeg-6.1.dylib ${libfile}
COMMAND install_name_tool -change @rpath/lib/libvtktiff-6.1.dylib ${VTK_LIBRARY_DIRS}/libvtktiff-6.1.dylib ${libfile}
COMMAND install_name_tool -change @rpath/lib/libvtkzlib-6.1.dylib ${VTK_LIBRARY_DIRS}/libvtkzlib-6.1.dylib ${libfile}
)
ADD_DEPENDENCIES(${target} copy_vxdb_binaries_to_lib)
ENDIF(APPLE)
ENDMACRO(PATCH_VTK_PATHS)
#
# See if we have a supported platform with binaries.
#
IF(WIN32)
IF(${VISIT_MSVC_VERSION} STREQUAL "MSVC2010-x64")
SET(XDB_PLATFORM Win64)
SET(XDBLIB_LIB XDBLib1)
ELSE(${VISIT_MSVC_VERSION} STREQUAL "MSVC2010-x64")
MESSAGE(STATUS "XDB binaries for the ${VISIT_MSVC_VERSION} platform are not provided.")
ENDIF(${VISIT_MSVC_VERSION} STREQUAL "MSVC2010-x64")
ELSE(WIN32)
SET(LIBPREFIX lib)
IF(${VISIT_INSTALL_PLATFORM} STREQUAL "darwin-x86_64")
SET(XDB_PLATFORM Mac64)
SET(XDBLIB_LIB XDBLib)
ELSEIF(${VISIT_INSTALL_PLATFORM} STREQUAL "linux-x86_64")
SET(XDB_PLATFORM Linux64)
SET(XDBLIB_LIB XDBLib)
ELSE(${VISIT_INSTALL_PLATFORM} STREQUAL "darwin-x86_64")
MESSAGE(STATUS "XDB binaries for the ${VISIT_INSTALL_PLATFORM} platform are not provided.")
ENDIF(${VISIT_INSTALL_PLATFORM} STREQUAL "darwin-x86_64")
ENDIF(WIN32)
#
# If we have a supported platform, build the plugin.
#
IF(XDB_PLATFORM)
SET(VXDB_DIR ${CMAKE_CURRENT_SOURCE_DIR}/VXDB_src)
SET(VXDB_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include)
SET(VXDB_LIBRARY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/lib/${XDB_PLATFORM})
SET(VXDB_LIB_SER VXDB_ser)
SET(VXDB_LIB_PAR VXDB_par)
SET(XDBLIB_DIR ${CMAKE_CURRENT_SOURCE_DIR}/XDBLib)
SET(XDBLIB_LIBRARY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/lib/${XDB_PLATFORM})
# Build the XDB plugin.
MESSAGE(STATUS "The XDB database plugin will be built.")
ADD_SUBDIRECTORY(XDB)
IF(WIN32)
SET(XDB_LIB_DEST ${VISIT_EXECUTABLE_DIR})
ELSE(WIN32)
SET(XDB_LIB_DEST ${VISIT_LIBRARY_DIR})
ENDIF(WIN32)
# Copy the XDBLib binaries into VISIT_LIBRARY_DIR.
ADD_CUSTOM_TARGET(copy_xdb_binaries_to_lib ALL
COMMAND ${CMAKE_COMMAND} -E copy ${XDBLIB_LIBRARY_DIR}/${LIBPREFIX}${XDBLIB_LIB}${VISIT_PLUGIN_EXTENSION} ${XDB_LIB_DEST}
)
INSTALL_XDB_LIBRARY(${XDBLIB_LIBRARY_DIR}/${LIBPREFIX}${XDBLIB_LIB}${VISIT_PLUGIN_EXTENSION})
IF(EXISTS ${VXDB_DIR})
# We have sources for private VXDB library so let's build it.
# We will have XDBLib headers.
SET(XDBLIB_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/XDBLib/include)
# If the private sources exist then build them.
MESSAGE(STATUS "The VXDB database plugin support library will be built.")
ADD_SUBDIRECTORY(VXDB_src)
ELSE(EXISTS ${VXDB_DIR})
# Copy the VXDB binaries into VISIT_LIBRARY_DIR.
IF(VISIT_PARALLEL)
ADD_CUSTOM_TARGET(copy_vxdb_binaries_to_lib ALL
COMMAND ${CMAKE_COMMAND} -E copy ${VXDB_LIBRARY_DIR}/${LIBPREFIX}${VXDB_LIB_SER}${VISIT_PLUGIN_EXTENSION} ${XDB_LIB_DEST}
COMMAND ${CMAKE_COMMAND} -E copy ${VXDB_LIBRARY_DIR}/${LIBPREFIX}${VXDB_LIB_PAR}${VISIT_PLUGIN_EXTENSION} ${XDB_LIB_DEST}
)
# This is needed to make sure that the VXDB libraries work in a development build on APPLE.
PATCH_VTK_PATHS(patch_vtk_VXDB_ser ${XDB_LIB_DEST}/${LIBPREFIX}${VXDB_LIB_SER}${VISIT_PLUGIN_EXTENSION})
PATCH_VTK_PATHS(patch_vtk_VXDB_par ${XDB_LIB_DEST}/${LIBPREFIX}${VXDB_LIB_PAR}${VISIT_PLUGIN_EXTENSION})
ELSE(VISIT_PARALLEL)
ADD_CUSTOM_TARGET(copy_vxdb_binaries_to_lib ALL
COMMAND ${CMAKE_COMMAND} -E copy ${VXDB_LIBRARY_DIR}/${LIBPREFIX}${VXDB_LIB_SER}${VISIT_PLUGIN_EXTENSION} ${XDB_LIB_DEST}
)
# This is needed to make sure that the VXDB libraries work in a development build on APPLE.
PATCH_VTK_PATHS(patch_vtk_VXDB_ser ${XDB_LIB_DEST}/${LIBPREFIX}${VXDB_LIB_SER}${VISIT_PLUGIN_EXTENSION})
ENDIF(VISIT_PARALLEL)
ENDIF(EXISTS ${VXDB_DIR})
INSTALL_XDB_LIBRARY(${VXDB_LIBRARY_DIR}/${LIBPREFIX}${VXDB_LIB_SER}${VISIT_PLUGIN_EXTENSION})
IF(VISIT_PARALLEL)
INSTALL_XDB_LIBRARY(${VXDB_LIBRARY_DIR}/${LIBPREFIX}${VXDB_LIB_PAR}${VISIT_PLUGIN_EXTENSION})
ENDIF(VISIT_PARALLEL)
ENDIF(XDB_PLATFORM)
The binaries were compiled using:
=================================
Win64 - MSVC2010-x64
Mac64 - Darwin Kernel Version 12.5.0: Sun Sep 29 13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Linux64 - Linux 2.6.32-358.el6.x86_64 #1 SMP
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4)
* I hope AVT doesn't change that much or that could cause some problems.
* The binaries were built from the trunk at about svn version 21139.
# DO NOT EDIT THIS FILE! THIS FILE IS AUTOMATICALLY GENERATED BY xml2cmake
PROJECT(XDB)
INCLUDE(${VISIT_SOURCE_DIR}/CMake/PluginMacros.cmake)
SET(COMMON_SOURCES
XDBPluginInfo.C
XDBCommonPluginInfo.C
)
SET(LIBI_SOURCES
XDBPluginInfo.C
)
SET(LIBM_SOURCES
XDBMDServerPluginInfo.C
${COMMON_SOURCES}
avtXDBFileFormat.C
)
SET(LIBE_SOURCES
XDBEnginePluginInfo.C
${COMMON_SOURCES}
avtXDBFileFormat.C
avtXDBWriter.C
)
INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_SOURCE_DIR}
${VXDB_INCLUDE_DIR}
${XDBLIB_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} ${VXDB_LIBRARY_DIR} ${XDBLIB_LIBRARY_DIR} )
ADD_LIBRARY(IXDBDatabase ${LIBI_SOURCES})
TARGET_LINK_LIBRARIES(IXDBDatabase visitcommon)
SET(INSTALLTARGETS IXDBDatabase)
IF(NOT VISIT_ENGINE_ONLY AND NOT VISIT_DBIO_ONLY)
ADD_LIBRARY(MXDBDatabase ${LIBM_SOURCES} )
TARGET_LINK_LIBRARIES(MXDBDatabase visitcommon avtdbatts avtdatabase_ser ${VXDB_LIB_SER} ${XDBLIB_LIB} )
ADD_TARGET_DEFINITIONS(MXDBDatabase MDSERVER)
SET(INSTALLTARGETS ${INSTALLTARGETS} MXDBDatabase)
ENDIF(NOT VISIT_ENGINE_ONLY AND NOT VISIT_DBIO_ONLY)
ADD_LIBRARY(EXDBDatabase_ser ${LIBE_SOURCES})
TARGET_LINK_LIBRARIES(EXDBDatabase_ser visitcommon avtdatabase_ser avtpipeline_ser ${VXDB_LIB_SER} ${XDBLIB_LIB} )
ADD_TARGET_DEFINITIONS(EXDBDatabase_ser ENGINE)
SET(INSTALLTARGETS ${INSTALLTARGETS} EXDBDatabase_ser)
IF(VISIT_PARALLEL)
ADD_PARALLEL_LIBRARY(EXDBDatabase_par ${LIBE_SOURCES})
TARGET_LINK_LIBRARIES(EXDBDatabase_par visitcommon avtdatabase_par avtpipeline_par ${VXDB_LIB_PAR} ${XDBLIB_LIB} )
ADD_TARGET_DEFINITIONS(EXDBDatabase_par ENGINE)
SET(INSTALLTARGETS ${INSTALLTARGETS} EXDBDatabase_par)
ENDIF(VISIT_PARALLEL)
VISIT_INSTALL_DATABASE_PLUGINS(${INSTALLTARGETS})
VISIT_PLUGIN_TARGET_RTOD(databases ${INSTALLTARGETS})
VISIT_PLUGIN_TARGET_FOLDER(databases XDB ${INSTALLTARGETS})
Target: xml2info
Function: XDBCommonPluginInfo::GetLicense
Declaration: virtual std::string XDBCommonPluginInfo::GetLicense() const;
Definition:
// ****************************************************************************
// Method: XDBCommonPluginInfo::GetLicense
//
// Purpose: Get the copyright for the library.
//
// Programmer: Brad Whitlock
// Creation: Tue Apr 8 16:07:39 PDT 2014
//
// ****************************************************************************
#include <avtXDBWriterInternal.h>
std::string
XDBCommonPluginInfo::GetLicense() const
{
return avtXDBWriterInternal::GetCopyright();
}
<?xml version="1.0"?>
<Plugin name="XDB" type="database" label="XDB" version="1.0" enabled="true" mdspecificcode="false" onlyengine="false" noengine="false" dbtype="MTMD" haswriter="true" hasoptions="false">
<CXXFLAGS>
${VXDB_INCLUDE_DIR}
${XDBLIB_INCLUDE_DIR}
</CXXFLAGS>
<LIBS components="M">
${VXDB_LIB_SER}
${XDBLIB_LIB}
</LIBS>
<LIBS components="ESer">
${VXDB_LIB_SER}
${XDBLIB_LIB}
</LIBS>
<LIBS components="EPar">
${VXDB_LIB_PAR}
${XDBLIB_LIB}
</LIBS>
<LDFLAGS>
${VXDB_LIBRARY_DIR}
${XDBLIB_LIBRARY_DIR}
</LDFLAGS>
<FilePatterns>
*.xdb
</FilePatterns>
<Attribute name="" purpose="" persistent="true" codefile="XDB.code">
<Function name="XDBCommonPluginInfo::GetLicense" user="false" member="true">
</Function>
</Attribute>
</Plugin>
/*****************************************************************************
* Copyright (c) 2014 Intelligent Light. All rights reserved.
* Work partially supported by DOE Grant SC0007548.
* FieldView XDB Export is provided expressly for use within VisIt.
* All other uses are strictly forbidden.
*****************************************************************************/
#include <XDBPluginInfo.h>
#include <avtXDBFileFormat.h>
#include <avtMTMDFileFormatInterface.h>
#include <avtGenericDatabase.h>
// ****************************************************************************
// Method: XDBCommonPluginInfo::GetDatabaseType
//
// Purpose:
// Returns the type of a XDB database.
//
// Programmer: generated by xml2info
// Creation: omitted
//
// ****************************************************************************
DatabaseType
XDBCommonPluginInfo::GetDatabaseType()
{
return DB_TYPE_MTMD;
}
// ****************************************************************************
// Method: XDBCommonPluginInfo::SetupDatabase
//
// Purpose:
// Sets up a XDB 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 XDB database from list.
//
// Programmer: generated by xml2info
// Creation: omitted
//
// ****************************************************************************
avtDatabase *
XDBCommonPluginInfo::SetupDatabase(const char *const *list,
int nList, int nBlock)
{
// ignore any nBlocks past 1
int nTimestepGroups = nList / nBlock;
avtMTMDFileFormat **ffl = new avtMTMDFileFormat*[nTimestepGroups];
for (int i = 0 ; i < nTimestepGroups ; i++)
{
ffl[i] = new avtXDBFileFormat(list[i*nBlock]);
}
avtMTMDFileFormatInterface *inter
= new avtMTMDFileFormatInterface(ffl, nTimestepGroups);
return new avtGenericDatabase(inter);
}
// ****************************************************************************
// Method: XDBCommonPluginInfo::GetLicense
//
// Purpose: Get the copyright for the library.
//
// Programmer: Brad Whitlock
// Creation: Tue Apr 8 16:07:39 PDT 2014
//
// ****************************************************************************
#include <avtXDBWriterInternal.h>
std::string
XDBCommonPluginInfo::GetLicense() const
{
return avtXDBWriterInternal::GetCopyright();
}
/*****************************************************************************
* Copyright (c) 2014 Intelligent Light. All rights reserved.
* Work partially supported by DOE Grant SC0007548.
* FieldView XDB Export is provided expressly for use within VisIt.
* All other uses are strictly forbidden.
*****************************************************************************/
#include <XDBPluginInfo.h>
#include <avtXDBWriter.h>
// ****************************************************************************
// Function: GetEngineInfo
//
// Purpose:
// Return a new EnginePluginInfo for the XDB database.
//
// Programmer: generated by xml2info
// Creation: omitted
//
// ****************************************************************************
extern "C" DBP_EXPORT EngineDatabasePluginInfo* XDB_GetEngineInfo()
{
return new XDBEnginePluginInfo;
}
// ****************************************************************************
// Method: XDBEnginePluginInfo::GetWriter
//
// Purpose:
// Sets up a XDB writer.
//
// Returns: A XDB writer.
//
// Programmer: generated by xml2info
// Creation: omitted
//
// ****************************************************************************
avtDatabaseWriter *
XDBEnginePluginInfo::GetWriter(void)
{
return new avtXDBWriter;
}
/*****************************************************************************
* Copyright (c) 2014 Intelligent Light. All rights reserved.
* Work partially supported by DOE Grant SC0007548.
* FieldView XDB Export is provided expressly for use within VisIt.
* All other uses are strictly forbidden.
*****************************************************************************/
#include <XDBPluginInfo.h>
// ****************************************************************************
// Function: GetMDServerInfo
//
// Purpose:
// Return a new MDServerPluginInfo for the XDB database.
//
// Programmer: generated by xml2info
// Creation: omitted
//
// ****************************************************************************
extern "C" DBP_EXPORT MDServerDatabasePluginInfo* XDB_GetMDServerInfo()
{
return new XDBMDServerPluginInfo;
}
// this makes compilers happy... remove if we ever have functions here
void XDBMDServerPluginInfo::dummy()
{
}
/*****************************************************************************
* Copyright (c) 2014 Intelligent Light. All rights reserved.
* Work partially supported by DOE Grant SC0007548.
* FieldView XDB Export is provided expressly for use within VisIt.
* All other uses are strictly forbidden.
*****************************************************************************/
// ************************************************************************* //
// File: XDBPluginInfo.C
// ************************************************************************* //
#include <XDBPluginInfo.h>
#include <visit-config.h>
VISIT_PLUGIN_VERSION(XDB,DBP_EXPORT)
// ****************************************************************************
// Function: GetGeneralInfo
//
// Purpose:
// Return a new GeneralPluginInfo for the XDB database.
//
// Programmer: generated by xml2info
// Creation: omitted
//
// ****************************************************************************
extern "C" DBP_EXPORT GeneralDatabasePluginInfo* XDB_GetGeneralInfo()
{
return new XDBGeneralPluginInfo;
}
// ****************************************************************************
// Method: XDBGeneralPluginInfo::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 *
XDBGeneralPluginInfo::GetName() const
{
return "XDB";
}
// ****************************************************************************
// Method: XDBGeneralPluginInfo::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 *
XDBGeneralPluginInfo::GetVersion() const
{
return "1.0";
}
// ****************************************************************************
// Method: XDBGeneralPluginInfo::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 *
XDBGeneralPluginInfo::GetID() const
{
return "XDB_1.0";
}
// ****************************************************************************
// Method: XDBGeneralPluginInfo::EnabledByDefault
//
// Purpose:
// Return true if this plugin should be enabled by default; false otherwise.
//
// Returns: true/false
//
// Programmer: generated by xml2info
// Creation: omitted
//