void
ScenarioLoiteringTrajectory::writeElement(QXmlStreamWriter* out)
{
    out->writeStartElement(elementName());
    //out->writeAttribute("Name", name());
    writeContents(out);
    out->writeEndElement();
}
예제 #2
0
    void writeData(data_type D)
    {
        // std::cerr << "Writing " << D << std::endl;

        B[f++] = D;

        if ( f == n )
            writeContents();
    }
예제 #3
0
/* 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;
}
예제 #4
0
 void flush()
 {
     writeContents();
     out.flush();
 }