In file No file:

template <class SrcIterator> SrcIterator Write (std::ostream& out, SrcIterator begin, SrcIterator end, int max = -1)

Write events to a stream

Documentation

Writes events to a stream. A maximum of max events are written. If max is negative, all events in the specified range are written.

Example:

    // Write events to a series of files; 1000 at a time
    Set s1 ("input.xml");
    Iterator next = s1.begin();
    for (int i = 0; next != s1.end(); ++i) {
       char filename[128];
       sprintf (filename, "%s%i.xml", "output", i);
       ofstream out (filename);
       if (!out) break;
       next = Write (out, next, s1.end(), 1000);
    }
    

Returns:
Iterator to next event to be written
Parameters:
out - Output stream
begin - Start iterator of event list
end - End iterator of event list
max - Maximum number of events to write

alphabetic index hierarchy of classes


Please send questions and comments to sigg_d@ligo-wa.caltech.edu


generated by doc++