My Project
Public Types | Public Member Functions | Protected Member Functions
Diagnostics_information Class Reference

#include <sql_get_diagnostics.h>

Inheritance diagram for Diagnostics_information:
Sql_alloc Condition_information Statement_information

List of all members.

Public Types

enum  Which_area { CURRENT_AREA }

Public Member Functions

void set_which_da (Which_area area)
Which_area get_which_da (void) const
virtual bool aggregate (THD *thd, const Diagnostics_area *da)=0

Protected Member Functions

virtual ~Diagnostics_information ()
template<typename Diag_item , typename Context >
bool evaluate (THD *thd, Diag_item *diag_item, Context ctx)

Detailed Description

Represents the diagnostics information to be obtained.

Diagnostic information is made available through statement information and condition information items.


Member Enumeration Documentation

Which diagnostics area to access. Only CURRENT is supported for now.

Enumerator:
CURRENT_AREA 

Access the first diagnostics area.


Constructor & Destructor Documentation

virtual Diagnostics_information::~Diagnostics_information ( ) [inline, protected, virtual]

Diagnostics_information objects are allocated in thd->mem_root. Do not rely on the destructor for any cleanup.


Member Function Documentation

virtual bool Diagnostics_information::aggregate ( THD *  thd,
const Diagnostics_area da 
) [pure virtual]

Aggregate diagnostics information.

Parameters:
thdThe current thread.
daThe diagnostics area.
Return values:
falseon success.
trueon error

Implemented in Condition_information, and Statement_information.

template<typename Diag_item , typename Context >
bool Diagnostics_information::evaluate ( THD *  thd,
Diag_item *  diag_item,
Context  ctx 
) [inline, protected]

Evaluate a diagnostics information item in a specific context.

Parameters:
thdThe current thread.
diag_itemThe diagnostics information item.
ctxThe context to evaluate the item.
Return values:
falseon success.
trueon error.

Get which diagnostics area to access.

Set which diagnostics area to access.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines