This repository has been archived on 2022-11-09. You can view files and clone it, but cannot push or open issues or pull requests.
patterns-old/lesson_6/OpenCommand.hpp

25 lines
395 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* OpenCommand.hpp
*
* Created on: 4 нояб. 2021 г.
* Author: alexander
*/
#pragma once
#include "Command.hpp"
#include "Application.hpp"
#include <string>
class OpenCommand: public Command
{
private:
Application *_application;
std::string _response;
protected:
virtual std::string AskUser();
public:
OpenCommand(Application*);
virtual void Execute();
};