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

TPED file base class. More...

#include <varfiles.hpp>

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

Public Member Functions

 TpedFile ()
 Default constructor.
 
 TpedFile (const string &stubName)
 File name constructor. More...
 
 TpedFile (const TpedFile &in)=default
 Copy constructor.
 
TpedFileoperator= (const TpedFile &in)=default
 Copy assignment.
 
 TpedFile (TpedFile &&in)=default
 Move constructor.
 
TpedFileoperator= (TpedFile &&in)=default
 Move assignment.
 
 ~TpedFile ()
 Destructor.
 
virtual void open ()
 Open stream (does nothing)
 
void close ()
 Close stream.
 
- Public Member Functions inherited from sampFiles::GtxtFile
 GtxtFile ()
 Default constructor.
 
 GtxtFile (const string &fileName)
 Constructor with file name. More...
 
 GtxtFile (const string &fileName, const bool &head)
 Constructor with file name and header indicator. More...
 
 GtxtFile (const GtxtFile &in)=default
 Copy constructor.
 
GtxtFileoperator= (const GtxtFile &in)=default
 Copy assignment.
 
 GtxtFile (GtxtFile &&in)=default
 Move constructor.
 
GtxtFileoperator= (GtxtFile &&in)=default
 Move assignment.
 
 ~GtxtFile ()
 Destructor.
 
- 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.
 

Protected Attributes

fstream _tfamFile
 Corresponding .tfam file stream.
 
string _fileStub
 File name stub (minus the extension)
 
- Protected Attributes inherited from sampFiles::GtxtFile
string _fileName
 File name.
 
bool _head
 Is there a header?
 
- Protected Attributes inherited from sampFiles::VarFile
fstream _varFile
 Variant file stream.
 

Additional Inherited Members

- Protected Member Functions inherited from sampFiles::VarFile
 VarFile ()
 Default constructor (protected)
 

Detailed Description

TPED file base class.

Sets up the stream for the corresponding .tfam file.

Constructor & Destructor Documentation

◆ TpedFile()

sampFiles::TpedFile::TpedFile ( const string &  stubName)
inline

File name constructor.

Parameters
[in]stubNamefile name minus the extension
Here is the call graph for this function:

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