ContainerReader is the base class of the readers classes. All readers are working the same way:
More...
template<class Container, typename T, std::size_t Nb_block>
class slip::ContainerReader< Container, T, Nb_block >
ContainerReader is the base class of the readers classes. All readers are working the same way:
- Version
- Fluex 1.0
- Date
- 2013/04/05
- Author
- Denis Arrivault <denis.arrivault_AT_inria.fr>
- One input file is defined by its name.
- The file data can be read in a single container or divided into Nb_blocks different containers.
- The read() method return a boolean that indicates if the file contains some data that has not been read.
- Parameters
-
Container | should be a type of container that can match the file format to read. |
T | the type of the container data. |
Nb_block | is the number of containers to create (>1 if one want to divide the input data into different containers, default is 1). |
Definition at line 35 of file ContainerReader.hpp.
template<class Container, typename T, std::size_t Nb_block>
virtual read function. If Nb_block is more than one, it reads only one container, and returns 0. Else it reads the container and returns 1. If the file data_filename has been completely read (no more block to read), it returns 1.
- Parameters
-
sig_in | is the signal to fill. |
- Returns
- true if there is still data to read, false if the file has been completely read.
Implemented in slip::FITSReader< Container, T, Nb_components, Nb_block, Dim >, slip::NetCDFReader< Container, T, Nb_components, Nb_block, Dim >, slip::AvReader< VideoContainer, T, Nb_components, Nb_block >, slip::JpegReader< Container2d, T, Nb_components, Nb_block >, slip::PngReader< Container2d, T, Nb_components, Nb_block >, and slip::WavReader< Container1d, T, Nb_block >.