Skip to content

Commit

Permalink
IOSS: Helper class to avoid fmt includes in public headers
Browse files Browse the repository at this point in the history
  • Loading branch information
gdsjaar committed Aug 28, 2024
1 parent da0123c commit d43b819
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions packages/seacas/libraries/ioss/src/Ioss_use_fmt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// Copyright(C) 2024 National Technology & Engineering Solutions
// of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
// NTESS, the U.S. Government retains certain rights in this software.
//
// See packages/seacas/LICENSE for details

// This class should be included if you want to use the lib::fmt
// output for any of the classes shown below:
// * ZoneConnectivity
// * Field
// * BoundaryCondition

#include <fmt/ostream.h>

#if FMT_VERSION >= 90000
#include "Ioss_Field.h"
#include "Ioss_StructuredBlock.h"
#include "Ioss_ZoneConnectivity.h"

namespace fmt {
template <> struct formatter<Ioss::ZoneConnectivity> : ostream_formatter
{
};

template <> struct formatter<Ioss::Field> : ostream_formatter
{
};

template <> struct formatter<Ioss::BoundaryCondition> : ostream_formatter
{
};
} // namespace fmt
#endif

0 comments on commit d43b819

Please sign in to comment.