#include "ClassicFEZoneConnectivityWriter.h"
#include "NodeMap.h"
#include "SzlFileLoader.h"
#include "writeValueArray.h"
namespace tecplot { namespace ___3933 { ClassicFEZoneConnectivityWriter::ClassicFEZoneConnectivityWriter( ___4636 zone, ___4636 ___341, ___37& ___36) : ___2677(zone) , m_baseZone(___341) , ___2337(___36) , m_zoneNumberLabel(SZPLT_ZONE_NUM_DESCRIPTION) {} uint64_t ClassicFEZoneConnectivityWriter::nodeMapHeaderSizeInFile(bool ___2002) { if (___2002) return 2 * valueSizeInFile<uint32_t, false>(___2002); else return 0; } ___372 ClassicFEZoneConnectivityWriter::___4530(FileWriterInterface& file) { ___372 ___2039 = ___4226; REQUIRE(file.___2041()); if ( file.___2002() ) { writeValue<uint32_t, false, 0>(file, "nodeMapMarker*", SZPLT_NODE_MAP_MARKER); writeValue<uint32_t, false, 0>(file, m_zoneNumberLabel.c_str(), (___2677 - m_baseZone + 1)); } ENSURE(VALID_BOOLEAN(___2039)); return ___2039; } uint64_t ClassicFEZoneConnectivityWriter::cellConnectivitySizeInFile(bool ___2002) { ___2724 ___2723(&___2337, ___2677 + 1); size_t ___2795 = static_cast<size_t>(___2723.___1766()) * ___2723.___1764(); return arraySizeInFile<int32_t, false>(___2795, ___2002); } ___372 ClassicFEZoneConnectivityWriter::writeCellConnectivity(FileWriterInterface& fileWriter) { ___2724 ___2723(&___2337, ___2677 + 1); ___1965 nodeMapArray; size_t ___2795 = static_cast<size_t>(___2723.___1766()) * ___2723.___1764(); ___372 ___2039 = ___2723.___2067(); ___2039 = ___2039 && nodeMapArray.alloc(___2795); if (___2039) { for(int32_t ___449 = 0; ___449 < ___2723.___1766(); ++___449) { for(int32_t ___681 = 0; ___681 < ___2723.___1764(); ++___681) { int32_t ___2709 = static_cast<int32_t>(___2723.___1763(___449 + 1, ___681 + 1) - 1); nodeMapArray[___449 * ___2723.___1764() + ___681] = ___2709; } } ___2039 = ___2039 && ___4563<int32_t, false, 0>(fileWriter, "NodeMap", ___2745, ___2795, &nodeMapArray[0]); } ENSURE(VALID_BOOLEAN(___2039)); return ___2039; } uint64_t ClassicFEZoneConnectivityWriter::sizeInFile(bool ___2002) { return nodeMapHeaderSizeInFile(___2002) + cellConnectivitySizeInFile(___2002); } ___372 ClassicFEZoneConnectivityWriter::write(FileWriterInterface& fileWriter) { ___372 ___2039 = ___4530(fileWriter) && writeCellConnectivity(fileWriter); return ___2039; } }}
