Debian Codegraph @

packages/seacas/applications/exodiff/util.h

raw
1 /*
2 * Copyright(C) 1999-2024 National Technology & Engineering Solutions
3 * of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
4 * NTESS, the U.S. Government retains certain rights in this software.
5 *
6 * See packages/seacas/LICENSE for details
7 */
8 #pragma once
9 #include "vector_data.h"
10 #include <fmt/color.h>
11 #include <sstream>
12 #include <string>
13
14 using NameList = std::vector<std::string>;
15
16 int name_length();
17 char **get_name_array(int size, int length);
18 void free_name_array(char **names, int size);
19
20 [[noreturn]] void Error(const std::string &x);
21 [[noreturn]] void Error(std::ostringstream &buf);
22 void Warning(const std::string &x);
23 void ERR_OUT(std::ostringstream &buf);
24 void WARN_OUT(std::ostringstream &buf);
25 void DIFF_OUT(std::ostringstream &buf, fmt::detail::color_type color = fmt::color::red);
26 void DIFF_OUT(const std::string &buf, fmt::detail::color_type color = fmt::color::red);