pvtools: compose pvutil_ostream

eliminate at least some of the odd-ness which is causing
build failures on hosted mingw.
This commit is contained in:
Michael Davidsaver
2018-06-29 16:16:38 -07:00
parent a1a2e71ecc
commit f29ef3121e
3 changed files with 22 additions and 26 deletions
+4 -4
View File
@@ -863,7 +863,7 @@ void formatNT(std::ostream& o, PVFieldPtr const & pv)
{
std::cerr << "non-normative type" << std::endl;
//o << *(pv.get()) << std::endl;
pvutil_ostream myos(std::cout.rdbuf());
pvutil_ostream myos(std::cout);
myos << *(pv.get()) << std::endl;
}
@@ -872,7 +872,7 @@ void formatNT(std::ostream& o, PVFieldPtr const & pv)
}
// no ID, just dump
pvutil_ostream myos(std::cout.rdbuf());
pvutil_ostream myos(std::cout);
myos << *(pv.get()) << std::endl;
}
@@ -882,7 +882,7 @@ void dumpValue(std::string const & channelName, PVField::shared_pointer const &
std::cout << channelName << std::endl;
//std::cout << *(pv.get()) << std::endl << std::endl;
pvutil_ostream myos(std::cout.rdbuf());
pvutil_ostream myos(std::cout);
if (pv->getField()->getType() == structure)
myos << *(TR1::static_pointer_cast<PVStructure>(pv).get()) << std::endl << std::endl;
else
@@ -1897,7 +1897,7 @@ int main (int argc, char *argv[])
else
{
//std::cout << *(rpcRequesterImpl->getLastResponse().get()) << std::endl;
pvutil_ostream myos(std::cout.rdbuf());
pvutil_ostream myos(std::cout);
myos << *(rpcRequesterImpl->getLastResponse().get()) << std::endl;
}
}