Mimic stringstream class and header-file hierarchy