FrontISTR  5.7.1
Large-scale structural analysis program with finit element method
CFSTRData.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2019 FrontISTR Commons
3  * This software is released under the MIT License, see LICENSE.txt
4  *****************************************************************************/
5 /*
6  CFSTRData Ver. 3.6
7  ----------------------------------------
8  [method for loading mesh and control file]
9  1) Clear()
10  2) AddLoad( mesh_file )
11  3) AddLoad( ctrl_file )
12 */
13 
14 #ifndef CFSTRDataH
15 #define CFSTRDataH
16 
17 #include <stdio.h>
18 #include "CHECData.h"
19 #include "CHECDB.h"
20 #include "CFSTRDB.h"
21 
22 class CFSTRData : public CHECData {
23  public:
24  CFSTRData();
25  virtual bool SaveMesh(const char* file_name, const char* comment = "");
26  virtual bool SaveCtrl(const char* file_name, const char* comment = "");
27  virtual CHECDataBlock* CreateDataBlock(const char* header_name);
28  virtual bool IsDataBlockName(const char* name) {
29  return IsHECDataBlockName(name) || IsFSTRDataBlockName(name);
30  }
31 
32  protected:
33  virtual void WriteComment(FILE* fp, const char* comment);
34 };
35 
36 #endif
bool IsFSTRDataBlockName(const char *name)
Definition: FSTRDB_util.cpp:67
bool IsHECDataBlockName(const char *name)
Definition: HECDB_util.cpp:57
virtual CHECDataBlock * CreateDataBlock(const char *header_name)
Definition: CFSTRData.cpp:102
virtual bool SaveCtrl(const char *file_name, const char *comment="")
Definition: CFSTRData.cpp:44
virtual bool SaveMesh(const char *file_name, const char *comment="")
Definition: CFSTRData.cpp:21
virtual bool IsDataBlockName(const char *name)
Definition: CFSTRData.h:28
virtual void WriteComment(FILE *fp, const char *comment)
Definition: CFSTRData.cpp:75
FILE * fp
Definition: CHECData.h:27