FEDEM Model Database  R8.0
Source code of the FEDEM model database
FFlFedemWriter.H
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2023 SAP SE
2 //
3 // SPDX-License-Identifier: Apache-2.0
4 //
5 // This file is part of FEDEM - https://openfedem.org
7 
8 #ifndef FFL_FEDEM_WRITER_H
9 #define FFL_FEDEM_WRITER_H
10 
11 #include <string>
12 #include <vector>
13 #include <iostream>
14 
16 
17 #ifdef FF_NAMESPACE
18 namespace FF_NAMESPACE {
19 #endif
20 
21 
23 {
24 public:
26  virtual ~FFlFedemWriter() {}
27 
28  bool write(const std::string& filename,
29  bool writeExtNodes = true, bool writeChecksum = false,
30  const std::vector<std::string>& metaData = std::vector<std::string>()) const;
31 
32 protected:
33  bool writeMetaData(std::ostream& os, bool writeExtNodes, bool writeChecksum,
34  const std::vector<std::string>& metaData) const;
35  bool writeNodeData(std::ostream& os, bool writeExtNodes) const;
36  bool writeElementData(std::ostream& os) const;
37  bool writeLoadData(std::ostream& os) const;
38  bool writeGroupData(std::ostream& os) const;
39  bool writeAttributeData(std::ostream& os) const;
40  bool writeVisualData(std::ostream& os) const;
41 };
42 
43 #ifdef FF_NAMESPACE
44 } // namespace
45 #endif
46 #endif
Fedem link writer. Writes "new" version of the Fedem Link Model files.
Definition: FFlFedemWriter.H:23
virtual ~FFlFedemWriter()
Definition: FFlFedemWriter.H:26
FFlFedemWriter(const FFlLinkHandler *link)
Definition: FFlFedemWriter.H:25
Container class for finite element models.
Definition: FFlLinkHandler.H:95
Definition: FFlWriterBase.H:23
int write(FILE *fd, const char *tag, int nchar, unsigned int cs, int tagLength=LEN_TAG)
Writes the file tag and checksum to the provided file.
Definition: FFaTag.C:325