/* * Project: MoleCuilder * Description: creates and alters molecular systems * Copyright (C) 2010 University of Bonn. All rights reserved. * Please see the LICENSE file or "Copyright notice" in builder.cpp for details. */ /* * StreamStringView.cpp * * Created on: Dec 14, 2009 * Author: crueger */ // include config.h #ifdef HAVE_CONFIG_H #include #endif #include "CodePatterns/MemDebug.hpp" #include #include #include "StreamStringView.hpp" using namespace std; StreamStringView::StreamStringView(boost::function _displayMethod) : StringView(), displayMethod(_displayMethod) {} StreamStringView::~StreamStringView() {} const string StreamStringView::toString() { stringstream s; displayMethod(dynamic_cast(&s)); return s.str(); }