void ScenarioLoiteringTrajectory::writeElement(QXmlStreamWriter* out) { out->writeStartElement(elementName()); //out->writeAttribute("Name", name()); writeContents(out); out->writeEndElement(); }
void writeData(data_type D) { // std::cerr << "Writing " << D << std::endl; B[f++] = D; if ( f == n ) writeContents(); }
/* Finish reading font. */ int ufwEndFont(ufwCtx h, abfTopDict *top) { size_t cntTmp = 0; size_t cntRead = 0; size_t cntWrite = 0; char *pBuf = NULL; int errCode = ufwSuccess; /* Check for errors when accumulating glyphs */ if (h->err.code != 0) return h->err.code; h->top = top; errCode = writeFontInfo(h, top); if (errCode != ufwSuccess) return errCode; writeContents(h); writeGlyphOrder(h); writeMetaInfo(h); h->state = 0; /* Indicates writing to temp stream */ return ufwSuccess; }
void flush() { writeContents(); out.flush(); }