Debian Codegraph @

packages/seacas/libraries/ioss/src/visualization/catalyst/ioss2catalyst/IossRegionReport.h

raw
1 // Copyright(C) 1999-2021 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
7 #ifndef Ioss_Region_Report_h
8 #define Ioss_Region_Report_h
9
10 #include "Ioss_Region.h"
11 #include <iostream>
12 #include <string>
13 #include <vector>
14
15 namespace ioss_region_report {
16
17 using Message = std::string;
18 using Key = std::string;
19
20 struct Messages
21 {
22 std::string begin{""};
23 std::vector<Message> messages;
24
25 Messages &operator+=(const Message &rhs)
26 {
27 messages.push_back(begin + rhs);
28 return *this;
29 }
30
31 Messages &operator+=(const Messages &rhs)
32 {
33 for (auto msg : rhs.messages)
34 messages.push_back(begin + msg);
35 return *this;
36 }
37 };
38
39 std::ostream &operator<<(std::ostream &os, const Messages &messages);
40 Messages region_report(const Ioss::Region &region);
41
42 } // namespace ioss_region_report
43
44 #endif