[xsd-users] Serialize - Sets the position of the put pointer
Cláudio Margulhano
cmargulhano at gmail.com
Mon Oct 23 13:54:20 EDT 2006
Hi,
Can I set the position of the put pointer before writes on the stream?
For example:
std::ofstream ofsXML;
ofsXML.open ("out.xml", ofstream::out | ofstream::app | ofstream::ate);
ofsXML.seekp(ofsXML.tellp()-10, ios::cur);
message_type msg = message_type(string(getDateTime()), string(cKey),
string(cLevel), string(loggerEvent->LoggerMessageContent));
message(ofsXML, msg, map, "UTF-8", xml_schema::flags::dont_initialize);
Thanks,
Cláudio
More information about the xsd-users
mailing list