https://mooseframework.inl.gov
SubChannelEnums.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
13 enum class EChannelType
14 {
15  CENTER,
16  EDGE,
17  CORNER
18 };
19 
20 // Declare the operator<< overload for EChannelType as inline
21 inline std::ostringstream &
22 operator<<(std::ostringstream & oss, const EChannelType & channelType)
23 {
24  // Convert EChannelType to string representation and stream it into oss
25  switch (channelType)
26  {
28  oss << "CENTER";
29  break;
30  case EChannelType::EDGE:
31  oss << "EDGE";
32  break;
34  oss << "CORNER";
35  break;
36  }
37  return oss;
38 }
std::ostringstream & operator<<(std::ostringstream &oss, const EChannelType &channelType)
EChannelType
Enum for describing the center, edge and corner subchannels or gap types.