cpp05/ex03/ShrubberyCreationForm.hpp

30 lines
624 B
C++

#ifndef SHRUBBERYCREATIONFORM_HPP
#define SHRUBBERYCREATIONFORM_HPP
#include "AForm.hpp"
#include <fstream>
class ShrubberyCreationForm : public AForm
{
private:
std::string _target;
virtual void performAction() const;
public:
// Constructors
ShrubberyCreationForm();
ShrubberyCreationForm(const std::string target);
ShrubberyCreationForm(const ShrubberyCreationForm &other);
ShrubberyCreationForm &operator=(const ShrubberyCreationForm &other);
~ShrubberyCreationForm();
// exceptions
class OpenFileExeption : public std::exception
{
public:
virtual const char *what() const throw();
};
};
#endif