14 explicit volume(
const int volume_in_percent);
24 int m_volume_in_percent;
A relative sound intensity.
Definition volume.h:10
int get_percentage() const noexcept
Get the volume in percents, i.e.
Definition volume.h:18
bool operator!=(const volume &lhs, const volume &rhs) noexcept
Definition volume.cpp:86
void test_volume()
Test this class and its free functions.
Definition volume.cpp:28
volume get_next(const volume &v) noexcept
Get the next volume, i.e. the volume when the user presses right.
Definition volume.cpp:14
volume get_previous(const volume &v) noexcept
Get the previous volume, i.e. the volume when the user presses left.
Definition volume.cpp:21
bool operator==(const volume &lhs, const volume &rhs) noexcept
Definition volume.cpp:81
std::ostream & operator<<(std::ostream &os, const volume &v) noexcept
Definition volume.cpp:91