51 #ifdef CHECK_MEMORY_LEAKS
53 #endif // CHECK_MEMORY_LEAKS
67 const std::string& base) {
68 std::string internalName = name;
70 internalName =
"stdout";
79 if (internalName ==
"stdout") {
81 }
else if (internalName ==
"stderr") {
88 throw IOError(
"Given port number '" + internalName.substr(internalName.find(
":") + 1) +
"' is not numeric.");
90 throw IOError(
"No port number given.");
96 dev->
getOStream() << std::setiosflags(std::ios::fixed);
104 const std::string& rootElement) {
109 if (rootElement !=
"") {
119 if (myOutputDevices.find(devName) == myOutputDevices.end()) {
120 throw InvalidArgument(
"Device '" + devName +
"' has not been created.");
137 std::ostringstream oss;
141 if (v < pow(10., -precision)) {
142 oss.setf(std::ios::scientific, std::ios::floatfield);
144 oss.setf(std::ios::fixed , std::ios::floatfield);
145 oss.setf(std::ios::showpoint);
146 oss << std::setprecision(precision);
157 : myAmBinary(binary) {
181 if (i->second ==
this) {
198 const std::string& attrs,
const std::string& comment) {