FrontISTR 5.2.0
Large-scale structural analysis program with finit element method
Loading...
Searching...
No Matches
CFSTRDB_Step.cpp
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 CFSTRDB_Step Ver.1.0
7*/
8
9#include "CFSTRDB.h"
10#include "CHECData.h"
11
12using namespace std;
13using namespace hecd_util;
14
16 : CFSTRDataBlock(FSTRDB_STEP), type(TYPE_STANDARD), incmax(100) {}
17
19
22 incmax = 100;
23}
24
26 if (type == TYPE_NLGEOM) {
27 hecd->WriteHeader("!STEP", "SI", "TYPE", "NLGEOM", "INCMAX", incmax);
28 }
29}
30
31bool CFSTRDB_Step::Read(CHECData *hecd, char *header_line) {
32 char s[256] = "";
33 char type_s[256];
34 int rcode[10];
35
36 if (!hecd->ParseHeader(header_line, rcode, "SI", "TYPE", s, "INCMAX",
37 &incmax))
38 return false;
39
40 cleanup_token(s, type_s);
41 toupper(type_s);
42
43 if (strcmp(type_s, "STANDARD") == 0) {
45
46 } else if (strcmp(type_s, "NLGEOM") == 0) {
48
49 } else
50 return false;
51
52 return true;
53}
@ FSTRDB_STEP
Definition: CFSTRDB.h:33
virtual bool Read(class CHECData *hecd, char *header_line)
@ TYPE_STANDARD
Definition: CFSTRDB.h:135
int incmax
Definition: CFSTRDB.h:136
virtual void Clear()
virtual void Write(class CHECData *hecd)
virtual ~CFSTRDB_Step()
virtual bool ParseHeader(char *header_line, int *rcode, const char *fmt,...)
Definition: CHECData.cpp:506
virtual void WriteHeader(const char *name, const char *fmt="",...)
Definition: CHECData.cpp:68
void toupper(char *s)
Definition: hecd_util.cpp:37
void cleanup_token(char *s)
Definition: hecd_util.cpp:13