C++ Parser for some logs