#include <iomanip>
#include <iostream>
#include <string>
+
using std::string;
using std::cout;
+using std::endl;
typedef string stdString; // puObject has a "string" member
case props::VEC3D:
case props::VEC4D:
{
- streamsize precision = cout.precision(15);
+ std::streamsize precision = cout.precision(15);
c->printOn(cout);
cout.precision(precision);
}
ext += 'A';
if (node->getAttribute(SGPropertyNode::USERARCHIVE))
ext += 'U';
+ if (node->getAttribute(SGPropertyNode::PRESERVE))
+ ext += 'P';
if (node->isTied())
ext += 'T';
}
line << ')';
}
+ else
+ if ((_verbose)&&(node->getAttribute(SGPropertyNode::PRESERVE)))
+ {
+ // only preserve/protection flag matters for nodes without values
+ line << " (P)";
+ }
stdString out = line.str();
if (out.size() >= PUSTRING_MAX)