Newer
Older
/*
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*
* BPFileReader.tcc
*
* Created on: Feb 27, 2017
* Author: William F Godoy godoywf@ornl.gov
*/
#ifndef ADIOS2_ENGINE_BP_BPFILEREADER_TCC_
#define ADIOS2_ENGINE_BP_BPFILEREADER_TCC_
#include "BPFileReader.h"
namespace adios2
{
template <class T>
void BPFileReader::GetSyncCommon(Variable<T> &variable, T *data)
{
const std::map<std::string, SubFileInfoMap> variableSubfileInfo =
m_BP3Deserializer.GetSyncVariableSubFileInfo(variable);
ReadVariables(m_IO, variableSubfileInfo);
}
template <class T>
void BPFileReader::GetDeferredCommon(Variable<T> &variable, T *data)
{
// returns immediately
m_BP3Deserializer.GetDeferredVariable(variable, data);
} // end namespace adios2
#endif /* ADIOS2_ENGINE_BP_BPFILEREADER_TCC_ */