OmniSciDB  5ade3759e0
QueryRunner::IRFileWriter Struct Reference

#include <QueryRunner.h>

+ Collaboration diagram for QueryRunner::IRFileWriter:

Public Member Functions

 IRFileWriter (const std::string &filename)
 
 ~IRFileWriter ()
 
void operator() (const std::string &query_str, const std::string &ir_str)
 

Public Attributes

std::string filename
 
std::ofstream ofs
 

Detailed Description

Definition at line 55 of file QueryRunner.h.

Constructor & Destructor Documentation

◆ IRFileWriter()

QueryRunner::IRFileWriter::IRFileWriter ( const std::string &  filename)
inline

Definition at line 56 of file QueryRunner.h.

56  : filename(filename) {
57  ofs.open(filename, std::ios::trunc);
58  }

◆ ~IRFileWriter()

QueryRunner::IRFileWriter::~IRFileWriter ( )
inline

Definition at line 59 of file QueryRunner.h.

59 { ofs.close(); }

Member Function Documentation

◆ operator()()

void QueryRunner::IRFileWriter::operator() ( const std::string &  query_str,
const std::string &  ir_str 
)
inline

Definition at line 63 of file QueryRunner.h.

63  {
64  ofs << query_str << "\n\n" << ir_str << "\n\n";
65  }

Member Data Documentation

◆ filename

std::string QueryRunner::IRFileWriter::filename

Definition at line 60 of file QueryRunner.h.

◆ ofs

std::ofstream QueryRunner::IRFileWriter::ofs

Definition at line 61 of file QueryRunner.h.


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