FrontISTR  5.7.0
Large-scale structural analysis program with finit element method
CHECDataBlock.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  CHECDataBlock Ver. 3.6
7 */
8 
9 #ifndef CHECDataBlockH
10 #define CHECDataBlockH
11 
12 #include <stdio.h>
13 
14 const int hec_name_size = 40;
15 const int hec_str_size = 256;
16 
18  public:
19  int data_type;
20  CHECDataBlock(int dtype) : data_type(dtype) {}
21  virtual ~CHECDataBlock() {}
22  virtual void Clear() = 0;
23  virtual void Write(class CHECData* hecd) = 0;
24  virtual bool Read(class CHECData* hecd, char* header_line) = 0;
25  virtual bool IsMesh() { return true; }
26 };
27 
28 #endif
CHECDataBlock::Clear
virtual void Clear()=0
CHECDataBlock::data_type
int data_type
Definition: CHECDataBlock.h:19
CHECDataBlock
Definition: CHECDataBlock.h:17
CHECDataBlock::Read
virtual bool Read(class CHECData *hecd, char *header_line)=0
CHECDataBlock::IsMesh
virtual bool IsMesh()
Definition: CHECDataBlock.h:25
CHECData
Definition: CHECData.h:25
CHECDataBlock::~CHECDataBlock
virtual ~CHECDataBlock()
Definition: CHECDataBlock.h:21
CHECDataBlock::CHECDataBlock
CHECDataBlock(int dtype)
Definition: CHECDataBlock.h:20
hec_name_size
const int hec_name_size
Definition: CHECDataBlock.h:14
hec_str_size
const int hec_str_size
Definition: CHECDataBlock.h:15
CHECDataBlock::Write
virtual void Write(class CHECData *hecd)=0