IReplacer Class Reference

Interface for a functor that matches/replaces substrings of a SQL query that have been selected and sanitized by ODBCEscaper. More...

List of all members.

Public Member Functions

virtual simba_wstring operator() (ESC_TYPE in_etype, std::vector< simba_wstring > &io_fields)=0
 Perform replacements on a given string.
virtual ~IReplacer ()
 Destructor.

Detailed Description

Interface for a functor that matches/replaces substrings of a SQL query that have been selected and sanitized by ODBCEscaper.


Constructor & Destructor Documentation

virtual ~IReplacer (  )  [inline, virtual]

Destructor.


Member Function Documentation

virtual simba_wstring operator() ( ESC_TYPE  in_etype,
std::vector< simba_wstring > &  io_fields 
) [pure virtual]

Perform replacements on a given string.

Parameters:
in_type See ESC_TYPE.
io_fields Vector of wstrings extracted from the original ODBC SQL query, with whitespace trimmed. The IReplacer is allowed to alter this vector as convenient. For {fn} and {call}, io_fields[0] is the fn/proc name, and io_fields[1...] are the comma-separated arguments. For all other {...}, and for paramarks (?), this is a single argument string.
Returns:
Replacement string for the escape sequence.

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

Generated on Wed May 17 14:21:19 2017 for SimbaEngine 10.1.3.1011 by simba