fixing up the broken BendCalc
This commit is contained in:
12
include/BendData.h
Normal file
12
include/BendData.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace DataLoad {
|
||||
struct BendData {
|
||||
double bendAngleDegrees;
|
||||
double insideRadius;
|
||||
double materialThickness;
|
||||
double kFactor;
|
||||
};
|
||||
}
|
@@ -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
|
||||
|
@@ -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
|
@@ -0,0 +1,8 @@
|
||||
#ifndef DATASAVE_H
|
||||
#define DATASAVE_H
|
||||
|
||||
#include <string>
|
||||
|
||||
void saveDataToCSV(const std::string& fileName, const std::string& data);
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user