2024-02-14 21:36:58 -08:00
|
|
|
#ifndef FORMINGTOOL_H
|
|
|
|
#define FORMINGTOOL_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <ostream>
|
|
|
|
#include <iostream>
|
2024-02-14 23:16:24 -08:00
|
|
|
#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);
|
2024-02-14 23:16:24 -08:00
|
|
|
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
|