IOSS 2.0
Loading...
Searching...
No Matches
IossRegionReport.h
Go to the documentation of this file.
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
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
26 {
27 messages.push_back(begin + rhs);
28 return *this;
29 }
30
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);
41
42} // namespace ioss_region_report
43
44#endif
A grouping entity that contains other grouping entities.
Definition Ioss_Region.h:93
Definition IossRegionReport.h:15
Messages region_report(const Ioss::Region &region)
std::string Message
Definition IossRegionReport.h:17
std::ostream & operator<<(std::ostream &os, const Messages &messages)
std::string Key
Definition IossRegionReport.h:18
Definition IossRegionReport.h:21
std::vector< Message > messages
Definition IossRegionReport.h:23
Messages & operator+=(const Messages &rhs)
Definition IossRegionReport.h:31
std::string begin
Definition IossRegionReport.h:22
Messages & operator+=(const Message &rhs)
Definition IossRegionReport.h:25