Drizzled Public API Documentation

drizzled::sys_var_std_string Class Reference
Inheritance diagram for drizzled::sys_var_std_string:
drizzled::sys_var

Public Member Functions

 sys_var_std_string (const std::string &name_arg, std::string &value_arg, sys_check_func check_func_arg=NULL, sys_update_func update_func_arg=NULL)
void set (char *val_in)
void set_check_func (sys_check_func check_func_arg=NULL)
void set_update_func (sys_update_func update_func_arg=NULL)
bool check (Session *session, set_var *var)
bool update (Session *session, set_var *var)
SHOW_TYPE show_type ()
unsigned char * value_ptr (Session *, sql_var_t)
bool check_update_type (Item_result type)
bool check_default (sql_var_t)
bool is_readonly () const
void setName (const std::string &name_in)
const std::string & getName () const
const std::vector< std::string > & getAliases () const
struct optiongetOptionLimits () const
void setOptionLimits (struct option *in_option_limits)
sys_after_update_func getAfterUpdateTrigger () const
bool check_enum (Session *session, set_var *var, const TYPELIB *enum_names)
virtual void set_default (Session *, sql_var_t)
virtual bool check_type (sql_var_t type)
Itemitem (Session *, sql_var_t)

Protected Attributes

std::string name
sys_after_update_func after_update
struct optionoption_limits
bool m_allow_empty_value

Private Attributes

std::string & value
sys_check_func check_func
sys_update_func update_func
sys_set_default_func set_default_func

Detailed Description

Definition at line 538 of file sys_var.h.

Member Function Documentation

sys_after_update_func drizzled::sys_var::getAfterUpdateTrigger ( ) const
inlineinherited

Returns the function pointer for after update trigger, or NULL if none.

Definition at line 142 of file sys_var.h.

const std::vector<std::string>& drizzled::sys_var::getAliases ( ) const
inlineinherited

Returns a vector of strings representing aliases for this variable's name.

Definition at line 119 of file sys_var.h.

const std::string& drizzled::sys_var::getName ( ) const
inlineinherited

Returns the name of the variable.

Note

So that we can exist in a Registry. We really need to formalize that

Definition at line 111 of file sys_var.h.

struct option* drizzled::sys_var::getOptionLimits ( ) const
inlinereadinherited

Returns a pointer to the variable's option limits

Definition at line 126 of file sys_var.h.

Item * drizzled::sys_var::item ( Session session,
sql_var_t  var_type 
)
inherited

Return an Item for a variable.

Used with @[global.]variable_name.

If type is not given, return local value if exists, else global.

Definition at line 798 of file sys_var.cc.

References drizzled::memory::Root::strdup().

void drizzled::sys_var::setOptionLimits ( struct option in_option_limits)
inlineinherited

Sets the pointer to the variable's option limits

Parameters
Pointerto the option limits option variable

Definition at line 135 of file sys_var.h.

Member Data Documentation

sys_after_update_func drizzled::sys_var::after_update
protectedinherited

Function pointer triggered after the variable's value is updated

Definition at line 83 of file sys_var.h.

bool drizzled::sys_var::m_allow_empty_value
protectedinherited

Does variable allow an empty value?

Definition at line 85 of file sys_var.h.

std::string drizzled::sys_var::name
protectedinherited

The name of the variable

Definition at line 81 of file sys_var.h.

struct option* drizzled::sys_var::option_limits
protectedinherited

Updated by by sys_var_init()

Definition at line 84 of file sys_var.h.


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