Nektar++
|
Functions | |
std::string | GetCompressString (void) |
std::string | GetBitSizeStr (void) |
void | BinaryStrToBase64Str (std::string &compressedDataString, std::string &base64string) |
void | Base64StrToBinaryStr (std::string &base64string, std::string &compressedDataString) |
template<class T > | |
int | ZlibEncode (std::vector< T > &in, std::string &out) |
template<class T > | |
int | ZlibEncodeToBase64Str (std::vector< T > &in, std::string &out64) |
template<class T > | |
int | ZlibDecode (std::string &in, std::vector< T > &out) |
template<class T > | |
int | ZlibDecodeFromBase64Str (std::string &in64, std::vector< T > &out) |
void Nektar::LibUtilities::CompressData::Base64StrToBinaryStr | ( | std::string & | base64string, |
std::string & | compressedDataString | ||
) |
Convert a Base 64 string into a binary string
Convert a string containing base 64 (i.e. from xml file) into a binary string
Definition at line 141 of file CompressData.cpp.
Referenced by ZlibDecodeFromBase64Str().
void Nektar::LibUtilities::CompressData::BinaryStrToBase64Str | ( | std::string & | compressedDataString, |
std::string & | base64string | ||
) |
Convert a binary string to Base 64 string
Convert a string containing compressed binary (i.e. from deflate) into a base 64 string
Definition at line 112 of file CompressData.cpp.
Referenced by ZlibEncodeToBase64Str().
std::string Nektar::LibUtilities::CompressData::GetBitSizeStr | ( | void | ) |
Definition at line 104 of file CompressData.cpp.
Referenced by Nektar::LibUtilities::FieldIOXml::v_Write(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_WriteCurves(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_WriteEdges(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_WriteHexs(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_WritePrisms(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_WritePyrs(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_WriteQuads(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_WriteTets(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_WriteTris(), and Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_WriteVertices().
std::string Nektar::LibUtilities::CompressData::GetCompressString | ( | void | ) |
Return a string describing this compression and endianness
Definition at line 99 of file CompressData.cpp.
References Nektar::LibUtilities::Endianness(), and Nektar::LibUtilities::EndianTypeMap.
Referenced by Nektar::LibUtilities::FieldIOXml::ImportFieldData(), Nektar::LibUtilities::FieldIOXml::ImportFieldDefs(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_ReadCurves(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_ReadEdges(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_ReadElements1D(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_ReadElements2D(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_ReadElements3D(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_ReadFaces(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_ReadVertices(), Nektar::LibUtilities::FieldIOXml::v_Write(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_WriteCurves(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_WriteEdges(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_WriteHexs(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_WritePrisms(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_WritePyrs(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_WriteQuads(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_WriteTets(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_WriteTris(), and Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_WriteVertices().
int Nektar::LibUtilities::CompressData::ZlibDecode | ( | std::string & | in, |
std::vector< T > & | out | ||
) |
Decompress a zlib-compressed string into a vector of NekDouble values.
Definition at line 144 of file CompressData.h.
References ASSERTL0, CHUNK, and Nektar::void.
Referenced by ZlibDecodeFromBase64Str().
int Nektar::LibUtilities::CompressData::ZlibDecodeFromBase64Str | ( | std::string & | in64, |
std::vector< T > & | out | ||
) |
Decompress a base 64 compressed binary string into a vector of NekDouble values.
Definition at line 216 of file CompressData.h.
References Base64StrToBinaryStr(), and ZlibDecode().
Referenced by Nektar::LibUtilities::FieldIOXml::ImportFieldData(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_ReadCurves(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_ReadEdges(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_ReadElements1D(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_ReadElements2D(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_ReadElements3D(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_ReadFaces(), and Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_ReadVertices().
int Nektar::LibUtilities::CompressData::ZlibEncode | ( | std::vector< T > & | in, |
std::string & | out | ||
) |
Compress a vector of NekDouble values into a string using zlib.
Definition at line 71 of file CompressData.h.
References ASSERTL0, CHUNK, and Nektar::void.
Referenced by ZlibEncodeToBase64Str().
int Nektar::LibUtilities::CompressData::ZlibEncodeToBase64Str | ( | std::vector< T > & | in, |
std::string & | out64 | ||
) |
Compress a vector of NekDouble values into a base64 string.
Definition at line 129 of file CompressData.h.
References BinaryStrToBase64Str(), and ZlibEncode().
Referenced by Nektar::LibUtilities::FieldIOXml::v_Write(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_WriteCurves(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_WriteEdges(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_WriteHexs(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_WritePrisms(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_WritePyrs(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_WriteQuads(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_WriteTets(), Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_WriteTris(), and Nektar::SpatialDomains::MeshGraphIOXmlCompressed::v_WriteVertices().