Debian Codegraph @

packages/seacas/applications/conjoin/CJ_ExodusFile.h

raw
1 // Copyright(C) 1999-2020, 2022, 2023, 2024, 2025 National Technology & Engineering Solutions
2 // of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
3 // NTESS, the U.S. Government retains certain rights in this software.
4 //
5 // See packages/seacas/LICENSE for details
6 #pragma once
7
8 #include "CJ_CodeTypes.h"
9 #include <string>
10 #include <vector>
11
12 namespace Excn {
13
14 class SystemInterface;
15 class ExodusFile
16 {
17 public:
18 explicit ExodusFile(size_t which);
19 ~ExodusFile();
20
21 ExodusFile(const ExodusFile &) = delete;
22 ExodusFile operator=(const ExodusFile &) = delete;
23
24 static size_t part_count() { return filenames_.size(); }
25 static bool initialize(const SystemInterface &si);
26 static bool create_output(const SystemInterface &si);
27 static bool ints_64_bit();
28 static void close_all();
29
30 static int output();
31 static int io_word_size() { return ioWordSize_; }
32 operator int() const;
33 static int max_name_length() { return maximumNameLength_; }
34
35 private:
36 size_t myLocation_;
37 static std::vector<std::string>
38 filenames_; // If using changesets, these are the changeset names.
39 static std::vector<int> fileids_;
40 static std::string baseFilename_; // If using changesets, this is the filename
41 static std::string outputFilename_;
42 static int outputId_;
43 static int ioWordSize_;
44 static int cpuWordSize_;
45 static int maximumNameLength_;
46 static int exodusMode_;
47 static bool keepOpen_;
48 static bool usingChangeSets_;
49 };
50 } // namespace Excn