strusAnalyzer  0.17
Public Member Functions | List of all members
strus::PatternResultFormatContext Class Reference

Context for mapping result format strings (allocator,maps,etc.) More...

#include <pattern_resultformat.hpp>

Public Member Functions

 PatternResultFormatContext (ErrorBufferInterface *errorhnd_)
 Constructor. More...
 
 ~PatternResultFormatContext ()
 Destructor. More...
 
const char * map (const PatternResultFormat *fmt, const analyzer::PatternMatcherResultItem *items, std::size_t nofItems)
 Map a result to a string. More...
 

Detailed Description

Context for mapping result format strings (allocator,maps,etc.)

Constructor & Destructor Documentation

strus::PatternResultFormatContext::PatternResultFormatContext ( ErrorBufferInterface *  errorhnd_)
explicit

Constructor.

Parameters
[in]errorhnd_error buffer interface
strus::PatternResultFormatContext::~PatternResultFormatContext ( )

Destructor.

Member Function Documentation

const char* strus::PatternResultFormatContext::map ( const PatternResultFormat fmt,
const analyzer::PatternMatcherResultItem items,
std::size_t  nofItems 
)

Map a result to a string.

Parameters
[in]fmtresult format string
[in]nofItemsnumber of pattern match result elements
[in]itemsarray of pattern match result elements
Returns
pattern match result value to use in other result items or finally map with 'PatternResultFormatChunk::parseNext( ResultChunk& result, char const*& src)'

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