utilities.cpp
Go to the documentation of this file.
1 #include <gtsam/base/utilities.h>
2 
3 namespace gtsam {
4 
5 std::string RedirectCout::str() const {
6  return ssBuffer_.str();
7 }
8 
10  std::cout.rdbuf(coutBuffer_);
11 }
12 
13 }
gtsam::RedirectCout::~RedirectCout
~RedirectCout()
destructor – redirect stdout buffer to its original buffer
Definition: utilities.cpp:9
utilities.h
gtsam::RedirectCout::coutBuffer_
std::streambuf * coutBuffer_
Definition: base/utilities.h:28
gtsam::RedirectCout::ssBuffer_
std::stringstream ssBuffer_
Definition: base/utilities.h:27
gtsam
traits
Definition: SFMdata.h:40
gtsam::RedirectCout::str
std::string str() const
return the string
Definition: utilities.cpp:5


gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:18:23