OmniSciDB  b24e664e58
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 57 of file QueryRunner.h.

Constructor & Destructor Documentation

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

Definition at line 58 of file QueryRunner.h.

References ofs.

58  : filename(filename) {
59  ofs.open(filename, std::ios::trunc);
60  }
QueryRunner::IRFileWriter::~IRFileWriter ( )
inline

Definition at line 61 of file QueryRunner.h.

References ofs.

61 { ofs.close(); }

Member Function Documentation

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

Definition at line 65 of file QueryRunner.h.

References ofs.

65  {
66  ofs << query_str << "\n\n" << ir_str << "\n\n";
67  }

Member Data Documentation

std::string QueryRunner::IRFileWriter::filename

Definition at line 62 of file QueryRunner.h.

std::ofstream QueryRunner::IRFileWriter::ofs

Definition at line 63 of file QueryRunner.h.

Referenced by IRFileWriter(), operator()(), and ~IRFileWriter().


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