VTK  9.7.20260805
vtkFLUENTCFFInternal.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
9#ifndef vtkFLUENTCFFUtilities_h
10#define vtkFLUENTCFFUtilities_h
11
12#include <string>
13#include <unordered_map>
14
16{
21std::string GetMatchingFieldName(const std::string& strSectionName);
22
26bool RemoveTrailingIndex(std::string& fieldName);
27
31bool RemoveSuffixIfPresent(std::string& fieldName, const std::string& suffix);
32
33const std::unordered_map<std::string, std::string>& FieldsNamesMap();
34
35}
36
37#endif
internal utilities for vtkFLUENTCFFReader
bool RemoveTrailingIndex(std::string &fieldName)
Remove the trailing index of the string if it ends by "_1" or any other digit.
std::string GetMatchingFieldName(const std::string &strSectionName)
Retrieve the correct field name.
const std::unordered_map< std::string, std::string > & FieldsNamesMap()
bool RemoveSuffixIfPresent(std::string &fieldName, const std::string &suffix)
Remove the suffix passed in argument if it is prensent in the field name.