#include <fltRecordWriter.h>
Public Member Functions | |
FltRecordWriter (ostream &out) | |
~FltRecordWriter () | |
void | set_opcode (FltOpcode opcode) |
Sets the opcode associated with the current record. | |
const Datagram & | get_datagram () const |
void | set_datagram (const Datagram &datagram) |
Sets the datagram that will be written when advance() is called. | |
Datagram & | update_datagram () |
Returns a modifiable reference to the datagram associated with the current record. | |
FltError | advance () |
Writes the current record to the flt file, and resets the current record to receive new data. | |
FltError | write_record (FltOpcode opcode, const Datagram &datagram=Datagram()) |
A convenience function to quickly write a simple record that consists of an opcode and possibly a datagram. | |
FltError | write_instance_def (FltHeader *header, int instance_index) |
Ensures that the given instance definition has already been written to the file. | |
Private Types | |
typedef pset< int > | Instances |
Private Attributes | |
ostream & | _out |
Datagram | _datagram |
FltOpcode | _opcode |
Instances | _instances_written |
Definition at line 44 of file fltRecordWriter.h.
|
Definition at line 66 of file fltRecordWriter.h. |
|
Definition at line 44 of file fltRecordWriter.cxx. |
|
Definition at line 57 of file fltRecordWriter.cxx. References _opcode. |
|
Writes the current record to the flt file, and resets the current record to receive new data. Returns FE_ok on success, or something else on error. Definition at line 122 of file fltRecordWriter.cxx. References _datagram, _out, FE_write_error, and flt_error_abort. |
|
|
|
Sets the datagram that will be written when advance() is called.
Definition at line 84 of file fltRecordWriter.cxx. References _datagram. |
|
Sets the opcode associated with the current record.
Definition at line 69 of file fltRecordWriter.cxx. References _datagram. |
|
Returns a modifiable reference to the datagram associated with the current record. This datagram should then be stuffed with data corresponding to the data in the record, in preparation for calling advance() to write the data. Definition at line 105 of file fltRecordWriter.cxx. |
|
Ensures that the given instance definition has already been written to the file. If it has not, writes it now. Definition at line 199 of file fltRecordWriter.cxx. |
|
A convenience function to quickly write a simple record that consists of an opcode and possibly a datagram.
Definition at line 180 of file fltRecordWriter.cxx. |
|
Definition at line 63 of file fltRecordWriter.h. Referenced by advance(), set_datagram(), and set_opcode(). |
|
Definition at line 67 of file fltRecordWriter.h. |
|
Definition at line 64 of file fltRecordWriter.h. Referenced by ~FltRecordWriter(). |
|
Definition at line 62 of file fltRecordWriter.h. Referenced by advance(). |