fixing up the broken BendCalc

This commit is contained in:
2024-07-26 21:42:13 -07:00
parent 5ba3bc24d0
commit ac20038626
16 changed files with 397 additions and 114 deletions

12
include/BendData.h Normal file
View File

@@ -0,0 +1,12 @@
#pragma once
#include <string>
namespace DataLoad {
struct BendData {
double bendAngleDegrees;
double insideRadius;
double materialThickness;
double kFactor;
};
}

View File

@@ -9,8 +9,8 @@ private:
double kFactor; // K-factor
public:
BendDeduction(double angleDegrees, double radius, double thickness, double k);
BendDeduction(double bendAngleDegrees, double radius, double thickness, double k);
double calculateBendDeduction();
};
#endif
#endif

View File

@@ -0,0 +1,13 @@
#include "BendData.h"
#ifndef DATALOAD_H
#define DATALOAD_H
#include <string>
#include <vector>
namespace DataLoad {
void loadDataFromCSV(const std::string& fileName, BendData& bendData);
}
#endif

View File

@@ -0,0 +1,8 @@
#ifndef DATASAVE_H
#define DATASAVE_H
#include <string>
void saveDataToCSV(const std::string& fileName, const std::string& data);
#endif