RVL::BinaryReader< Scalar > Class Template Reference

Read a vector from a binary file, where the first entry in the file is element first (in bytes) from SEEK_SET. More...

#include <functions.hh>

Inheritance diagram for RVL::BinaryReader< Scalar >:

RVL::UnaryLocalFunctionObjectConstEval< Scalar > RVL::FunctionObjectConstEval RVL::UnaryLocalConstEval< Scalar > RVL::Writeable RVL::LocalConstEval< Scalar > List of all members.

Public Member Functions

 BinaryReader (char const *fname, long _first=0L)
 BinaryReader (const string fname, long _first=0L)
 ~BinaryReader ()
bool seek (size_t firstword)
 seek to specified word in file - note: not offset in bytes!
void operator() (LocalDataContainer< Scalar > &v)
string getName () const

Detailed Description

template<class Scalar>
class RVL::BinaryReader< Scalar >

Read a vector from a binary file, where the first entry in the file is element first (in bytes) from SEEK_SET.

16.12.06: first is setable, via function seek(long).

Definition at line 635 of file functions.hh.


Constructor & Destructor Documentation

template<class Scalar>
RVL::BinaryReader< Scalar >::BinaryReader ( char const *  fname,
long  _first = 0L 
)

Definition at line 644 of file functions.hh.

template<class Scalar>
RVL::BinaryReader< Scalar >::BinaryReader ( const string  fname,
long  _first = 0L 
)

Definition at line 657 of file functions.hh.

template<class Scalar>
RVL::BinaryReader< Scalar >::~BinaryReader (  ) 

Definition at line 670 of file functions.hh.


Member Function Documentation

template<class Scalar>
bool RVL::BinaryReader< Scalar >::seek ( size_t  firstword  ) 

seek to specified word in file - note: not offset in bytes!

Definition at line 673 of file functions.hh.

template<class Scalar>
void RVL::BinaryReader< Scalar >::operator() ( LocalDataContainer< Scalar > &  v  ) 

Definition at line 680 of file functions.hh.

References RVL::LocalDataContainer< DataType >::getData(), and RVL::LocalDataContainer< DataType >::getSize().

template<class Scalar>
string RVL::BinaryReader< Scalar >::getName (  )  const [virtual]

Implements RVL::FunctionObjectConstEval.

Definition at line 690 of file functions.hh.


The documentation for this class was generated from the following file:
Generated on 5 Jan 2017 for LocalRVL by  doxygen 1.4.7