15 #include "cfChannel.h" 33 bool ok1 = _reader.
init();
34 bool ok2 = _writer.
init();
73 DCAST_INTO_R(command, obj, NULL);
CFChannel(DatagramGenerator *dggen, DatagramSink *dgsink)
The DatagramGenerator and DatagramSink should be newly created on the free store (via the new operato...
void send_command(CFCommand *command)
Delivers a single command to the process at the other end of the channel.
TypedWritable * read_object()
Reads a single object from the Bam file.
Base class for objects that can be written to and read from Bam files.
A single command in the Connected-Frame protocol.
bool init()
Initializes the BamReader prior to reading any objects from its source.
This class defines the abstract interface to sending datagrams to any target, whether it be into a fi...
bool write_object(const TypedWritable *obj)
Writes a single object to the Bam file, so that the BamReader::read_object() can later correctly rest...
This class defines the abstract interace to any source of datagrams, whether it be from a file or fro...
bool init()
Initializes the BamWriter prior to writing any objects to its output stream.