MeshLink
Computational geometry access
MeshLinkWriter.h
Go to the documentation of this file.
1 /****************************************************************************
2  *
3  * Copyright (c) 2019-2020 Pointwise, Inc.
4  * All rights reserved.
5  *
6  * This sample Pointwise source code is not supported by Pointwise, Inc.
7  * It is provided freely for demonstration purposes only.
8  * SEE THE WARRANTY DISCLAIMER AT THE BOTTOM OF THIS FILE.
9  *
10  ***************************************************************************/
11 
12 #ifndef MESH_LINK_WRITER
13 #define MESH_LINK_WRITER
14 
15 #include <string>
16 
17 class MeshAssociativity;
18 
19 /****************************************************************************
20 * MeshLinkWriter class
21 ***************************************************************************/
31 class ML_STORAGE_CLASS MeshLinkWriter {
32 public:
35 
36  // Write MeshAssociativity data to MeshLink XML file
37  virtual bool writeMeshLinkFile(const std::string &fname,
38  MeshAssociativity *meshAssociativity, bool compress=true,
39  bool terminatePlatform=true) { return false; }
40 
41  // Need to provide these if using the default constructor (C API
42  // call), otherwise XML file will not validate
43  virtual bool setMeshLinkAttributes(const std::string &xmlns,
44  const std::string &xmlns_xsi, const std::string &schemaLocation) { return false; }
45 
46 private:
47 };
48 
49 #endif
50 
51 /****************************************************************************
52  *
53  * DISCLAIMER:
54  * TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, POINTWISE DISCLAIMS
55  * ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED
56  * TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
57  * PURPOSE, WITH REGARD TO THIS SCRIPT. TO THE MAXIMUM EXTENT PERMITTED
58  * BY APPLICABLE LAW, IN NO EVENT SHALL POINTWISE BE LIABLE TO ANY PARTY
59  * FOR ANY SPECIAL, INCIDENTAL, INDIRECT, OR CONSEQUENTIAL DAMAGES
60  * WHATSOEVER (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF
61  * BUSINESS INFORMATION, OR ANY OTHER PECUNIARY LOSS) ARISING OUT OF THE
62  * USE OF OR INABILITY TO USE THIS SCRIPT EVEN IF POINTWISE HAS BEEN
63  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGES AND REGARDLESS OF THE
64  * FAULT OR NEGLIGENCE OF POINTWISE.
65  *
66  ***************************************************************************/
Storage for mesh topology and geometry associativity data.