sampleSNPs  0.9
Fast ordered sampling of records from files
Public Member Functions | Friends | List of all members
sampFiles::GbinFileO Class Reference

Generic binary file output class. More...

#include <varfiles.hpp>

Inheritance diagram for sampFiles::GbinFileO:
Inheritance graph
[legend]
Collaboration diagram for sampFiles::GbinFileO:
Collaboration graph
[legend]

Public Member Functions

 GbinFileO ()
 Default constructor.
 
 GbinFileO (const string &fileName, const size_t &nCols, const size_t &elemSize)
 File name constructor. More...
 
 GbinFileO (const GbinFileO &in)=default
 Copy constructor.
 
GbinFileOoperator= (const GbinFileO &in)=default
 Copy assignment.
 
 GbinFileO (GbinFileO &&in)=default
 Move constructor.
 
GbinFileOoperator= (GbinFileO &&in)=default
 Move assignment.
 
 ~GbinFileO ()
 Destructor.
 
void open ()
 Open stream to write.
 
- Public Member Functions inherited from sampFiles::GbinFile
 GbinFile ()
 Default constructor.
 
 GbinFile (const string &fileName, const size_t &nCols, const size_t &elemSize)
 Constructor with file name. More...
 
 GbinFile (const GbinFile &in)=default
 Copy constructor.
 
GbinFileoperator= (const GbinFile &in)=default
 Copy assignment.
 
 GbinFile (GbinFile &&in)=default
 Move constructor.
 
GbinFileoperator= (GbinFile &&in)=default
 Move assignment.
 
 ~GbinFile ()
 Destructor.
 
virtual void close ()
 Close stream.
 
- Public Member Functions inherited from sampFiles::VarFile
 VarFile (const VarFile &in)=default
 Copy constructor.
 
VarFileoperator= (const VarFile &in)=default
 Copy assignment.
 
 VarFile (VarFile &&in)=default
 Move constructor.
 
VarFileoperator= (VarFile &&in)=default
 Move assignment.
 
 ~VarFile ()
 Destructor.
 

Friends

class GbinFileI
 

Additional Inherited Members

- Protected Member Functions inherited from sampFiles::VarFile
 VarFile ()
 Default constructor (protected)
 
- Protected Attributes inherited from sampFiles::GbinFile
string _fileName
 File name.
 
size_t _nCols
 Number of elements in a row.
 
size_t _elemSize
 Size of each element in bytes.
 
- Protected Attributes inherited from sampFiles::VarFile
fstream _varFile
 Variant file stream.
 

Detailed Description

Generic binary file output class.

Writes binary files.

Constructor & Destructor Documentation

◆ GbinFileO()

sampFiles::GbinFileO::GbinFileO ( const string &  fileName,
const size_t &  nCols,
const size_t &  elemSize 
)
inline

File name constructor.

Parameters
[in]fileNamefile name including extension
[in]nColsnumber of columns, or elements in a row
[in]elemSizesize of each element in bytes
Here is the call graph for this function:

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