BendCalc/include/FormingTool.h

31 lines
858 B
C
Raw Permalink Normal View History

2024-02-14 21:36:58 -08:00
#ifndef FORMINGTOOL_H
#define FORMINGTOOL_H
#include <string>
#include <ostream>
#include <iostream>
#include <fstream>
2024-02-14 21:36:58 -08:00
class FormingTool {
public:
FormingTool(const std::string &toolType, double toolSize, const std::string &materialType);
std::string getToolType() const;
double getToolSize() const;
std::string getMaterialType() const;
double getToolRadius() const;
void setToolType(const std::string &toolType);
void setToolSize(double toolSize);
void setMaterialType(const std::string &materialType);
void setToolRadius(double radius);
void useTool();
2024-02-14 21:36:58 -08:00
void serialize(std::ofstream &ofs) const;
void deserialize(std::ifstream &ifs);
private:
std::string m_toolType;
double m_toolSize;
std::string m_materialType;
double m_toolRadius;
};
#endif // FORMINGTOOL_H