-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3275 from pnorbert/backward-compatibility-compres…
…sion Add backward compatible read with BLOSC compression to BP4 files crea…
- Loading branch information
Showing
24 changed files
with
682 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
source/adios2/toolkit/format/bp/bpBackCompatOperation/BPBackCompatOperation.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* Distributed under the OSI-approved Apache License, Version 2.0. See | ||
* accompanying file Copyright.txt for details. | ||
* | ||
* BPOperation.h : | ||
* | ||
* Created on: Jul 12, 2018 | ||
* Author: William F Godoy [email protected] | ||
*/ | ||
|
||
#ifndef ADIOS2_TOOLKIT_FORMAT_BP_BPOPERATION_BPOPERATION_H_ | ||
#define ADIOS2_TOOLKIT_FORMAT_BP_BPOPERATION_BPOPERATION_H_ | ||
|
||
#include <string> | ||
#include <vector> | ||
|
||
#include "adios2/common/ADIOSMacros.h" | ||
#include "adios2/core/Variable.h" | ||
#include "adios2/helper/adiosFunctions.h" | ||
#include "adios2/toolkit/format/buffer/heap/BufferSTL.h" | ||
|
||
namespace adios2 | ||
{ | ||
namespace format | ||
{ | ||
|
||
class BPBackCompatOperation | ||
{ | ||
public: | ||
BPBackCompatOperation() = default; | ||
virtual ~BPBackCompatOperation() = default; | ||
|
||
/** | ||
* Deserializes metadata in the form of parameters | ||
* @param buffer contains serialized metadata buffer | ||
* @param info parameters info from metadata buffer | ||
*/ | ||
virtual void GetMetadata(const std::vector<char> &buffer, | ||
Params &info) const noexcept = 0; | ||
|
||
virtual void GetData(const char *input, | ||
const helper::BlockOperationInfo &blockOperationInfo, | ||
char *dataOutput) const = 0; | ||
}; | ||
|
||
} // end namespace format | ||
} // end namespace adios2 | ||
|
||
#endif /* ADIOS2_TOOLKIT_FORMAT_BP_OPERATION_BPOPERATION_H_ */ |
Oops, something went wrong.