blob: 35f1d46c52e81e8263c6b8ce563e584e0297cebe (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include "Television.h"
#include "cli.hpp"
Television::Television(mm width, mm height) : Screen(width, height) { }
Television::~Television() { }
Television* Television::fromCommandLine() {
mm iwidth = 0;
cli::readUserInput(iwidth, "Enter width (in mm): ", "Invalid width, try again!");
mm iheight = 0;
cli::readUserInput(iheight, "Enter height (in mm): ", "Invalid height, try again!");
return new Television(iwidth, iheight);
}
std::string Television::extraOutput() const {
return std::string();
}
|