Classes | Functions
contrib/mul/mbl/mbl_data_collector_base.h File Reference

Non-templated base class for mbl_data_collector<T> More...

#include <vsl/vsl_binary_io.h>
#include <vcl_string.h>
#include <vcl_iosfwd.h>

Go to the source code of this file.

Classes

class  mbl_data_collector_base
 Non-templated base class for mbl_data_collector<T>. More...

Functions

void vsl_add_to_binary_loader (const mbl_data_collector_base &b)
 Allows derived class to be loaded by base-class pointer.
void vsl_b_write (vsl_b_ostream &bfs, const mbl_data_collector_base &b)
 Binary file stream output operator for class reference.
void vsl_b_read (vsl_b_istream &bfs, mbl_data_collector_base &b)
 Binary file stream input operator for class reference.
vcl_ostream & operator<< (vcl_ostream &os, const mbl_data_collector_base &b)
 Stream output operator for class reference.
vcl_ostream & operator<< (vcl_ostream &os, const mbl_data_collector_base *b)
 Stream output operator for class pointer.

Detailed Description

Non-templated base class for mbl_data_collector<T>

Author:
Tim Cootes

Definition in file mbl_data_collector_base.h.


Function Documentation

vcl_ostream& operator<< ( vcl_ostream &  os,
const mbl_data_collector_base b 
)

Stream output operator for class reference.

Definition at line 64 of file mbl_data_collector_base.cxx.

vcl_ostream& operator<< ( vcl_ostream &  os,
const mbl_data_collector_base b 
)

Stream output operator for class pointer.

Definition at line 75 of file mbl_data_collector_base.cxx.

void vsl_add_to_binary_loader ( const mbl_data_collector_base b)

Allows derived class to be loaded by base-class pointer.

A loader object exists which is invoked by calls of the form "vsl_b_read(bfs,base_ptr);". This loads derived class objects from the disk, places them on the heap and returns a base class pointer. In order to work the loader object requires an instance of each derived class that might be found. This function gives the model class to the appropriate loader.

Definition at line 29 of file mbl_data_collector_base.cxx.

void vsl_b_read ( vsl_b_istream bfs,
mbl_data_collector_base b 
)

Binary file stream input operator for class reference.

Definition at line 57 of file mbl_data_collector_base.cxx.

void vsl_b_write ( vsl_b_ostream bfs,
const mbl_data_collector_base b 
)

Binary file stream output operator for class reference.

Definition at line 50 of file mbl_data_collector_base.cxx.