FrontISTR 5.2.0
Large-scale structural analysis program with finit element method
Loading...
Searching...
No Matches
CNFDB_403.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 CNFDB_403 Ver.1.0
7*/
8
9// 403 Node
10
11#include "CNFData.h"
12#include "CNFDB_403.h"
13
15
17 char buff[256];
18 // #1
19 nfd->ReadLineEx(buff);
20
21 if (nfd->version >= 4.4) {
22 nfd->ReadRecord(buff, "IIIIIBBBBBBFFFI", &ID, &define_sys, &output_sys,
23 &layer, &color, &permbc[0], &permbc[1], &permbc[2],
24 &permbc[3], &permbc[4], &permbc[5], &x, &y, &z, &node_type);
25
26 } else {
27 nfd->ReadRecord(buff, "IIIIIBBBBBBFFF", &ID, &define_sys, &output_sys,
28 &layer, &color, &permbc[0], &permbc[1], &permbc[2],
29 &permbc[3], &permbc[4], &permbc[5], &x, &y, &z);
30 }
31}
32
33void CNFDB_403::WriteData(class CNFData *nfd, FILE *fp) {
34 // #1
35 if (nfd->version >= 4.4) {
36 nfd->WriteData(fp, "IIIIIBBBBBBFFFIn", ID, define_sys, output_sys, layer,
37 color, permbc[0], permbc[1], permbc[2], permbc[3], permbc[4],
38 permbc[5], x, y, z, node_type);
39
40 } else {
41 nfd->WriteData(fp, "IIIIIBBBBBBFFFn", ID, define_sys, output_sys, layer,
42 color, permbc[0], permbc[1], permbc[2], permbc[3], permbc[4],
43 permbc[5], x, y, z);
44 }
45}
virtual void WriteData(class CNFData *nfd, FILE *fp)
Definition: CNFDB_403.cpp:33
nf_bool permbc[6]
Definition: CNFDB_403.h:29
nf_float z
Definition: CNFDB_403.h:32
virtual void Read(class CNFData *nfd)
Definition: CNFDB_403.cpp:16
nf_int layer
Definition: CNFDB_403.h:27
nf_int color
Definition: CNFDB_403.h:28
nf_float x
Definition: CNFDB_403.h:30
nf_int output_sys
Definition: CNFDB_403.h:26
nf_int node_type
Definition: CNFDB_403.h:34
nf_float y
Definition: CNFDB_403.h:31
nf_int define_sys
Definition: CNFDB_403.h:25
nf_int ID
Definition: CNFDB_403.h:24
void ReadLineEx(char *buff, int size=255)
Definition: CNFData.cpp:367
double version
Definition: CNFData.h:48
void WriteData(FILE *fp, const char *fmt,...)
Definition: CNFData.cpp:486
void ReadRecord(char *buff, const char *fmt,...)
Definition: CNFData.cpp:308