20#include "conect_data.h"
24CONNECT_DATA::CONNECT_DATA(
void )
26 TypeStr[0] = (
char*)
"Horizontal";
27 TypeStr[1] = (
char*)
"Vertical";
28 TypeStr[2] = (
char*)
"Parallel";
31CONNECT_DATA::~CONNECT_DATA(
void )
64 if( version != 2 )fscanf ( t,
"%d", &
iActive );
65 fscanf ( t,
"%d", &
CP1 );
66 fscanf ( t,
"%d", &
CP2 );
67 fscanf ( t,
"%d", &
Czeb1 );
68 fscanf ( t,
"%d", &
Czeb2 );
69 fscanf ( t,
"%d", &
Cstart );
70 fscanf ( t,
"%d", &
Cend );
78 fout << TypeStr[
iTyp] << endl;
87 fout <<
Csurf << endl;
int Czeb1
number of wing 1 rib connected to wing 2
int Cend
number of wing 2 longeron connected to trailing point of wing 1
int Czeb2
number of wing 2 rib connected to wing 1
int CP2
number of the 2nd wing (horizontal in case of vertical connection)
int iActive
is connection section active ( 1- active, 2 - not active)
int iTyp
Type of connection ( horizontal, vertical, parallel )
std::string ConName
Name of connection.
int Csurf
surface of wing 2 which will be modified (0-bottom or exterior, 1-top or interior)
int CP1
number of the 1st wing (vertical in case of horizontal connection)
int Cstart
number of wing 2 longeron connected to leading point of wing 1
int Read(FILE *f, int typ, int version=2)
Read connection section (within MS2 file reading)
int Write(std::ostream &fout)
Write connection section (within MS2 file saving)
static int ReadStr(FILE *stream, char *Par)
Function to read the new line from FILE "stream" and to store it in table of char "Par"....
static int ReadPar(FILE *stream, const char *Format, void *Par)
Function to read one variable. The type of variable depends on Format, compatible with stdio library.
static bool CompareStrings(char *str1, char *str2)
Compares two strings (str1 and str2). Returns true if they match, false otherwise.
@ CON_H
horizontal (e.g. T tail)
@ CON_V
vertical (e.g. winglets)