Version: 9.16.0
DriverStructuredCGNS_Write.hxx
Go to the documentation of this file.
1// Copyright (C) 2016-2026 CEA, EDF
2//
3// This library is free software; you can redistribute it and/or
4// modify it under the terms of the GNU Lesser General Public
5// License as published by the Free Software Foundation; either
6// version 2.1 of the License, or (at your option) any later version.
7//
8// This library is distributed in the hope that it will be useful,
9// but WITHOUT ANY WARRANTY; without even the implied warranty of
10// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11// Lesser General Public License for more details.
12//
13// You should have received a copy of the GNU Lesser General Public
14// License along with this library; if not, write to the Free Software
15// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16//
17// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18//
19// File : DriverStructuredCGNS_Write.hxx
20// Created : Tuesday March 19 2024
21// Author : Cesar Conopoima (cce)
22
23#ifndef __DriverStructuredCGNS_Write_HXX__
24#define __DriverStructuredCGNS_Write_HXX__
25
26// occt
27#include <TopoDS.hxx>
28#include <TopoDS_Shape.hxx>
29
30// smesh
31#include "SMESH_DriverCGNS.hxx"
33#include "Driver_SMESHDS_Mesh.h"
34
35#include <vector>
36#include <string>
37
42{
43public:
44
47
48 virtual Status Perform();
49
55 std::string GetGroupName( const int shapeToIndex, int dim );
56
60 void CheckForGroupNameOnFaceInterfaces( const SMESHUtils::SMESH_RegularGrid* grid, std::vector<std::string>& interfaceNames );
61
65 void CheckForGroupNameOnEdgeInterfaces( const SMESHUtils::SMESH_RegularGrid* grid, std::vector<std::string>& interfaceNames );
66
67private:
68 int _fn;
73 void GetGroupNamesMap( const TopoDS_Shape& shape, int dim, std::map<size_t, std::string>& groupNameMapById );
74};
75
76#endif
#define MESHDriverCGNS_EXPORT
Definition: SMESH_DriverCGNS.hxx:37
Driver writinging a mesh into the CGNS file.
Definition: DriverStructuredCGNS_Write.hxx:42
int _fn
file index
Definition: DriverStructuredCGNS_Write.hxx:68
virtual Status Perform()=0
Status
Definition: Driver_Mesh.h:53
Definition: Driver_SMESHDS_Mesh.h:31
Define a regular grid of nx,ny,nz dimension.
Definition: SMESH_RegularGrid.hxx:73