CoDiPack  2.3.0
A Code Differentiation Package
SciComp TU Kaiserslautern
Loading...
Searching...
No Matches
codi::CommonReaderWriterMethods Struct Reference

Used to implement methods common to both the tape readers and the tape writers. More...

#include <commonReaderWriterBase.hpp>

Inheritance diagram for codi::CommonReaderWriterMethods:

Public Member Functions

 CommonReaderWriterMethods ()
 Constructor.
 
 CommonReaderWriterMethods (std::string const &name)
 Constructor.
 
std::string modifyFileName (std::string const &suffix)
 Remove the file extension and replace it with a new suffix.
 
void openFile (FILE *&fileHandle, std::string const &name, std::string const &mode)
 

Public Attributes

std::string fileName
 The base file name provided by the user.
 

Detailed Description

Used to implement methods common to both the tape readers and the tape writers.

Member Function Documentation

◆ openFile()

void codi::CommonReaderWriterMethods::openFile ( FILE *& fileHandle,
std::string const & name,
std::string const & mode )
inline

Open a file and check for success. Failure terminates and prints an error.

mode is open mode from fopen.


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