OpenM++ runtime library (libopenm)
openm::ModelSqlWriter Struct Reference

wrapper around file stream to write into sql script file. More...

#include <modelSqlWriter.h>

Public Member Functions

 ModelSqlWriter (const string &i_filePath)
 create new sql script file
 
 ~ModelSqlWriter () noexcept
 close sql script file
 
void throwOnFail (void) const
 throw exception on output stream fail
 
void write (const char *i_str)
 write string into sql script file
 
void writeLine (const string &i_line)
 write line into sql script file
 
void writeQuoted (const string &i_str, bool i_isAppendComma=false)
 write string value sql-quoted: O'Brien -> 'O''Brien'
 
void writeTrimQuoted (const string &i_str, bool i_isAppendComma=false)
 write string value space trimed and sql-quoted
 

Public Attributes

string outFilePath
 sql script file path
 
ofstream outFs
 sql scrpit output stream
 

Detailed Description

wrapper around file stream to write into sql script file.


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