Defines | Functions
contrib/rpl/rgrl/rgrl_feature_reader.cxx File Reference

Smart reader for reading in features. More...

#include "rgrl_feature_reader.h"
#include <rgrl/rgrl_feature_point.h>
#include <rgrl/rgrl_feature_landmark.h>
#include <rgrl/rgrl_feature_face_pt.h>
#include <rgrl/rgrl_feature_trace_pt.h>
#include <rgrl/rgrl_util.h>
#include <vcl_iostream.h>
#include <vcl_string.h>
#include <vcl_compiler.h>

Go to the source code of this file.

Defines

#define READ_THIS_FEATURE(tag, fea)

Functions

rgrl_feature_sptr rgrl_feature_reader (vcl_istream &is)
 Read a feature from input stream.
vcl_istream & operator>> (vcl_istream &is, rgrl_feature_sptr &fea_sptr)
 stream operator for reading feature.

Detailed Description

Smart reader for reading in features.

Author:
Gehua yang
Date:
Aug 04 2004

Definition in file rgrl_feature_reader.cxx.


Define Documentation

#define READ_THIS_FEATURE (   tag,
  fea 
)
Value:
if ( tag_str.find(tag) == 0 ){ \
    fea* fea_ptr = new fea(); \
    fea_ptr->read(is); \
    return fea_ptr; \
  }

Definition at line 23 of file rgrl_feature_reader.cxx.


Function Documentation

vcl_istream& operator>> ( vcl_istream &  is,
rgrl_feature_sptr fea_sptr 
)

stream operator for reading feature.

stream input operator for reading a transformation.

stream input operator for reading a feature.

Definition at line 97 of file rgrl_feature_reader.cxx.

rgrl_feature_sptr rgrl_feature_reader ( vcl_istream &  is)

Read a feature from input stream.

The type of feature depends on the content of the input stream.

The type of feature 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 90 of file rgrl_feature_reader.cxx.