primatologist-gpl  5.1.2
aims::io Namespace Reference

Namespaces

 internal
 

Functions

template<typename T >
void write (const T &object, const std::string &fname, bool doit=true)
 Basic write. More...
 
template<typename T >
void read (const std::string &fname, T &object, bool doit=true)
 Basic read Provided object type must be the same as disk data type. More...
 
template<typename T >
void readChannel (const std::string &fname, T &object, int8_t channel, bool doit=true)
 Read a given channel A conversion is done between the channel type and the object type if necessaey. More...
 
template<typename T >
void readChannel (const std::string &fname, carto::VolumeRef< T > &object, int8_t channel, bool doit=true)
 
template<typename T >
void readConvert (const std::string &fname, carto::VolumeRef< T > &object, bool doit=true)
 

Function Documentation

◆ read()

template<typename T >
void aims::io::read ( const std::string &  fname,
T &  object,
bool  doit = true 
)

Basic read Provided object type must be the same as disk data type.

Definition at line 36 of file io.h.

◆ readChannel() [1/2]

template<typename T >
void aims::io::readChannel ( const std::string &  fname,
carto::VolumeRef< T > &  object,
int8_t  channel,
bool  doit = true 
)

Definition at line 61 of file io.h.

◆ readChannel() [2/2]

template<typename T >
void aims::io::readChannel ( const std::string &  fname,
T &  object,
int8_t  channel,
bool  doit = true 
)

Read a given channel A conversion is done between the channel type and the object type if necessaey.

Definition at line 49 of file io.h.

◆ readConvert()

template<typename T >
void aims::io::readConvert ( const std::string &  fname,
carto::VolumeRef< T > &  object,
bool  doit = true 
)

Definition at line 135 of file io.h.

◆ write()

template<typename T >
void aims::io::write ( const T &  object,
const std::string &  fname,
bool  doit = true 
)

Basic write.

Definition at line 24 of file io.h.