LibreOffice Module reportdesign (master)  1
Public Member Functions | Private Attributes | List of all members
rptui::ConditionalExpression Class Reference

#include <conditionalexpression.hxx>

Public Member Functions

 ConditionalExpression (const char *_pAsciiPattern)
 
OUString assembleExpression (const OUString &_rFieldDataSource, const OUString &_rLHS, const OUString &_rRHS) const
 assembles an expression string from a field data source, and one or two operands More...
 
bool matchExpression (const OUString &_rExpression, const OUString &_rFieldDataSource, OUString &_out_rLHS, OUString &_out_rRHS) const
 matches the given expression string to the expression pattern represented by the object More...
 

Private Attributes

const OUString m_sPattern
 

Detailed Description

Definition at line 35 of file conditionalexpression.hxx.

Constructor & Destructor Documentation

rptui::ConditionalExpression::ConditionalExpression ( const char *  _pAsciiPattern)

Definition at line 31 of file conditionalexpression.cxx.

Member Function Documentation

OUString rptui::ConditionalExpression::assembleExpression ( const OUString &  _rFieldDataSource,
const OUString &  _rLHS,
const OUString &  _rRHS 
) const

assembles an expression string from a field data source, and one or two operands

Definition at line 37 of file conditionalexpression.cxx.

References m_sPattern.

bool rptui::ConditionalExpression::matchExpression ( const OUString &  _rExpression,
const OUString &  _rFieldDataSource,
OUString &  _out_rLHS,
OUString &  _out_rRHS 
) const

matches the given expression string to the expression pattern represented by the object

Parameters
_rExpressionthe expression to match
_rFieldDataSourcethe field data source
_out_rLHSoutput parameter taking the left hand side operand, if successful
_out_rRHSoutput parameter taking the right hand side operand, if successful
Returns
<TRUE> if and only if the expression string could be successfully matched to the pattern.

Definition at line 66 of file conditionalexpression.cxx.

References m_sPattern, and nIndex.

Member Data Documentation

const OUString rptui::ConditionalExpression::m_sPattern
private

Definition at line 38 of file conditionalexpression.hxx.

Referenced by assembleExpression(), and matchExpression().


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