line editor class for C++