Changes in src/Views/StreamStringView.cpp [9d8609:24a5e0]
- File:
-
- 1 edited
-
src/Views/StreamStringView.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Views/StreamStringView.cpp
r9d8609 r24a5e0 7 7 8 8 #include <sstream> 9 #include <iostream> 9 10 10 11 #include "StreamStringView.hpp" 11 12 12 StreamStringView::StreamStringView(boost::function<void(ofstream *)> _displayMethod) : 13 using namespace std; 14 15 StreamStringView::StreamStringView(boost::function<void(ostream *)> _displayMethod) : 13 16 StringView(), 14 17 displayMethod(_displayMethod) 15 { 16 // TODO Auto-generated constructor stub 17 18 } 18 {} 19 19 20 20 StreamStringView::~StreamStringView() 21 { 22 // TODO Auto-generated destructor stub 23 } 21 {} 24 22 25 23 const string StreamStringView::toString() { 26 24 stringstream s; 27 displayMethod( (ofstream *)&s);25 displayMethod(dynamic_cast<ostream *>(&s)); 28 26 return s.str(); 29 27 }
Note:
See TracChangeset
for help on using the changeset viewer.
