Commit 6729677e authored by Spencer Sherwin's avatar Spencer Sherwin
Browse files

Modified call to check on COMPRESSED attribute from a ->Attribute call to a...

Modified call to check on COMPRESSED attribute from a ->Attribute call to a ->QueryStringAttribute call in TinyXML
parent 073c5b69
......@@ -390,8 +390,10 @@ namespace Nektar
zmove = expEvaluator.Evaluate(expr_id);
}
const char *IsCompressed = element->Attribute("COMPRESSED");
if(IsCompressed)
string IsCompressed;
element->QueryStringAttribute("COMPRESSED",&IsCompressed);
if(IsCompressed.size())
{
if(boost::iequals(IsCompressed,
LibUtilities::CompressData::GetCompressString()))
......@@ -1256,9 +1258,10 @@ namespace Nektar
return;
}
const char *IsCompressed = field->Attribute("COMPRESSED");
string IsCompressed;
field->QueryStringAttribute("COMPRESSED",&IsCompressed);
if(IsCompressed)
if(IsCompressed.size())
{
ASSERTL0(boost::iequals(IsCompressed,
LibUtilities::CompressData::GetCompressString()),
......
......@@ -114,8 +114,10 @@ namespace Nektar
while (segment)
{
const char *IsCompressed = segment->Attribute("COMPRESSED");
if(IsCompressed)
string IsCompressed;
segment->QueryStringAttribute("COMPRESSED",&IsCompressed);
if(IsCompressed.size())
{
ASSERTL0(boost::iequals(IsCompressed,
LibUtilities::CompressData::GetCompressString()),
......
......@@ -107,8 +107,10 @@ namespace Nektar
ASSERTL0(field, "Unable to find EDGE tag in file.");
const char *IsCompressed = field->Attribute("COMPRESSED");
if(IsCompressed)
string IsCompressed;
field->QueryStringAttribute("COMPRESSED",&IsCompressed);
if(IsCompressed.size())
{
ASSERTL0(boost::iequals(IsCompressed,
LibUtilities::CompressData::GetCompressString()),
......@@ -256,8 +258,10 @@ namespace Nektar
ASSERTL0(elementType == "Q" || elementType == "T",
(std::string("Unknown 2D element type: ") + elementType).c_str());
const char *IsCompressed = element->Attribute("COMPRESSED");
if(IsCompressed)
string IsCompressed;
element->QueryStringAttribute("COMPRESSED",&IsCompressed);
if(IsCompressed.size())
{
ASSERTL0(boost::iequals(IsCompressed,
LibUtilities::CompressData:: GetCompressString()),
......
......@@ -109,8 +109,10 @@ namespace Nektar
ASSERTL0(field, "Unable to find EDGE tag in file.");
const char *IsCompressed = field->Attribute("COMPRESSED");
if(IsCompressed)
string IsCompressed;
field->QueryStringAttribute("COMPRESSED",&IsCompressed);
if(IsCompressed.size())
{
ASSERTL0(boost::iequals(IsCompressed,
LibUtilities::CompressData::GetCompressString()),
......@@ -256,8 +258,10 @@ namespace Nektar
(std::string("Unknown 3D face type: ") + elementType).c_str());
const char *IsCompressed = element->Attribute("COMPRESSED");
if(IsCompressed)
string IsCompressed;
element->QueryStringAttribute("COMPRESSED",&IsCompressed);
if(IsCompressed.size())
{
ASSERTL0(boost::iequals(IsCompressed,
LibUtilities::CompressData:: GetCompressString()),
......@@ -526,8 +530,10 @@ namespace Nektar
(std::string("Unknown 3D element type: ") + elementType).c_str());
const char *IsCompressed = element->Attribute("COMPRESSED");
if(IsCompressed)
string IsCompressed;
element->QueryStringAttribute("COMPRESSED",&IsCompressed);
if(IsCompressed.size())
{
ASSERTL0(boost::iequals(IsCompressed,
LibUtilities::CompressData:: GetCompressString()),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment