Aufgabe 1: Ein-/Ausgabe
Voluntary Exercise
- Member CopyStream::operator<< (T value)
- Implement method
- Member dout [Core::MAX]
Automatically arrange windows with TextStream::arrange()
- Member Serial::read (bool blocking=true)
- Implement Method
- Member Serial::Serial (ComPort port=COM1, BaudRate baud_rate=BAUD_115200, DataBits data_bits=DATA_8BIT, StopBits stop_bits=STOP_1BIT, Parity parity=PARITY_NONE)
- Implement Constructor
- Member Serial::write (char out, bool blocking=true)
- Implement Method
- Member SerialStream::flush ()
- Implement Method
- Member SerialStream::getPos (int &x, int &y)
- Implement Method
- Member SerialStream::reset ()
- Implement Method
- Member SerialStream::SerialStream (ComPort port=COM1, BaudRate baud_rate=BAUD_115200, DataBits data_bits=DATA_8BIT, StopBits stop_bits=STOP_1BIT, Parity parity=PARITY_NONE)
- Implement Method
- Member SerialStream::setAttribute (Attrib a)
- Implement Method
- Member SerialStream::setBackground (Color c)
- Implement Method
- Member SerialStream::setForeground (Color c)
- Implement Method
- Member SerialStream::setPos (int x, int y)
- Implement Method
- Class TextMode::Cell
- Implement the TextMode::Cell helper structure
- Member TextMode::show (int abs_x, int abs_y, char character, Attribute attrib=Attribute())
- Implement this method (it can either use or replace show(unsigned, unsigned, char, Attribute))
- Member TextStream::arrange (TextStream &kout, TextStream dout[8])
- Implement method
- Member TextStream::TextStream (void)
- Implement Constructor. For testing purposes you can simply overwrite the predefined number of cores for Qemu/KVM in the Makefile from the command line, e.g:
make QEMUCPUS=6 kvm
- Member TextWindow::setPos (int rel_x, int rel_y)
- Implement this method (it can either use or replace setPos(unsigned, unsigned))