JEMRIS  2.8.1
open-source MRI simulations
List of all members | Public Member Functions | Protected Attributes
BinaryIO Class Reference

Base class for binary IO strategies. More...

#include <BinaryIO.h>

+ Inheritance diagram for BinaryIO:
+ Collaboration diagram for BinaryIO:

Public Member Functions

 BinaryIO (const std::string &fname, const IO::Mode mode)
 Contructor.
 
virtual ~BinaryIO ()
 Destructor.
 
const std::string GetFileName ()
 Get file name. More...
 
IO::Strategy IOStrategy () const
 
template<class T >
IO::Status Read (NDData< T > &data, const std::string &urn, const std::string &url="")
 Read data from file to container. More...
 
template<class T >
IO::Status Write (const NDData< T > &dc, const std::string &urn, const std::string &url="")
 Write data from container to file. More...
 
virtual IO::Status FileAccess ()
 File access?
 
const IO::Status Status ()
 Get last status.
 

Protected Attributes

std::string m_fname
 
NDData< double > m_data
 
IO::Mode m_mode
 
IO::Status m_status
 
IO::Strategy m_type
 

Detailed Description

Base class for binary IO strategies.

Member Function Documentation

const std::string BinaryIO::GetFileName ( )
inline

Get file name.

Returns
File name
template<class T >
IO::Status BinaryIO::Read ( NDData< T > &  data,
const std::string &  urn,
const std::string &  url = "" 
)
inline

Read data from file to container.

Parameters
dcData container
template<class T >
IO::Status BinaryIO::Write ( const NDData< T > &  dc,
const std::string &  urn,
const std::string &  url = "" 
)
inline

Write data from container to file.

Parameters
dcData container

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

-- last change 17.06.2016 | Tony Stoecker | Imprint --