AuxData_s.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #pragma once
  2. #include "MASTER.h"
  3. #include "GLOBAL.h"
  4. #include "ThirdPartyHeadersBegin.h"
  5. #include <boost/make_shared.hpp>
  6. #include <boost/shared_ptr.hpp>
  7. #include <vector>
  8. #include "ThirdPartyHeadersEnd.h"
  9. #include "fileio.h"
  10. struct AuxData_s
  11. {
  12. typedef boost::shared_ptr<AuxData_s> Ptr;
  13. struct AuxDataItem
  14. {
  15. AuxDataItem(AuxDataType_e auxDataType, ___372 ___3361, std::string const &___2685, std::string const &___4314) : m_auxDataType(auxDataType), m_retain(___3361), ___2495(___2685), ___2667(___4314) {}
  16. AuxDataType_e m_auxDataType;
  17. ___372 m_retain;
  18. std::string ___2495;
  19. std::string ___2667;
  20. AuxDataItem() {}
  21. void writeToFile(tecplot::___3933::FileWriterInterface &outputFile, bool ___4480) const
  22. {
  23. tecplot::tecioszl::writeScalar(outputFile, (uint32_t)m_auxDataType, ___4480);
  24. tecplot::tecioszl::writeScalar(outputFile, m_retain, ___4480);
  25. tecplot::tecioszl::___4544(outputFile, ___2495, ___4480);
  26. tecplot::tecioszl::___4544(outputFile, ___2667, ___4480);
  27. }
  28. uint64_t sizeInFile(bool ___4480) const { return tecplot::tecioszl::scalarSizeInFile((uint32_t)m_auxDataType, ___4480) + tecplot::tecioszl::scalarSizeInFile(m_retain, ___4480) + tecplot::tecioszl::stringSizeInFile(___2495, ___4480) + tecplot::tecioszl::stringSizeInFile(___2667, ___4480); }
  29. AuxDataItem(tecplot::___3933::___1399 &inputFile, bool readASCII)
  30. {
  31. READ_ENUM(m_auxDataType, AuxDataType_e, inputFile, readASCII);
  32. tecplot::tecioszl::readScalar(inputFile, m_retain, readASCII);
  33. tecplot::tecioszl::readString(inputFile, ___2495, readASCII);
  34. tecplot::tecioszl::readString(inputFile, ___2667, readASCII);
  35. }
  36. };
  37. std::vector<AuxDataItem> m_auxDataItems;
  38. AuxData_s() {}
  39. void writeToFile(tecplot::___3933::FileWriterInterface &outputFile, bool ___4480) const { tecplot::tecioszl::writeVectorOfObjects(outputFile, m_auxDataItems, ___4480); }
  40. uint64_t sizeInFile(bool ___4480) const { return tecplot::tecioszl::vectorOfObjectsSizeInFile(m_auxDataItems, ___4480); }
  41. static Ptr makePtr(tecplot::___3933::___1399 &inputFile, bool readASCII)
  42. {
  43. Ptr ___3358 = boost::make_shared<AuxData_s>();
  44. tecplot::tecioszl::readVectorOfObjects(inputFile, ___3358->m_auxDataItems, readASCII);
  45. return ___3358;
  46. }
  47. };