Static Public Member Functions | Static Protected Attributes
rgrl_trans_reader Class Reference

Reader class for smartly detecting various transformation classes. More...

#include <rgrl_trans_reader.h>

List of all members.

Static Public Member Functions

static rgrl_transformation_sptr read (vcl_istream &is)
 Read a transformation from input stream.
static rgrl_transformation_sptr read (char const *fn)
 Read a transformation from input file for convenience.
static void add_xform (rgrl_transformation_sptr)
 add a transformation candidate.

Static Protected Attributes

static vcl_vector
< rgrl_transformation_sptr
xform_candidates_

Detailed Description

Reader class for smartly detecting various transformation classes.

Users can also add user-defined classes, which takes priority before others

Definition at line 21 of file rgrl_trans_reader.h.


Member Function Documentation

void rgrl_trans_reader::add_xform ( rgrl_transformation_sptr  xform) [static]

add a transformation candidate.

Definition at line 116 of file rgrl_trans_reader.cxx.

rgrl_transformation_sptr rgrl_trans_reader::read ( vcl_istream &  is) [static]

Read a transformation from input stream.

IMPORTANCE:

  • Open transformation file in BINARY mode!
  • Stream Pos does not work in Windows when a UNIX ascii file is opened in text mode.

The type of transformation depends on the content of the input stream. NULL smart ptr is returned if reading operation fails. Please check the validity of the returned smart ptr.

The type of transformation depends on the content of the input stream. NULL smart ptr is returned if reading fails. Please check the validity of the return smart ptr

Definition at line 54 of file rgrl_trans_reader.cxx.

rgrl_transformation_sptr rgrl_trans_reader::read ( char const *  fn) [static]

Read a transformation from input file for convenience.

Definition at line 29 of file rgrl_trans_reader.cxx.


Member Data Documentation

Definition at line 45 of file rgrl_trans_reader.h.


The documentation for this class was generated from the following files: