MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Properties Class Reference

Stores information in (name, value)-pairs. More...

#include <Properties.hpp>

Inheritance diagram for Properties:

Classes

class  Iterator

Public Member Functions

 Properties (bool case_insensitive=false)
 Properties (const Properties &)
 Properties (const Property *, int len)
void setCaseInsensitiveNames (bool value)
bool getCaseInsensitiveNames () const
void put (const Property *, int len)
bool put (const char *name, Uint32 value, bool replace=false)
bool put64 (const char *name, Uint64 value, bool replace=false)
bool put (const char *name, const char *value, bool replace=false)
bool put (const char *name, const Properties *value, bool replace=false)
bool put (const char *, Uint32 no, Uint32, bool replace=false)
bool put64 (const char *, Uint32 no, Uint64, bool replace=false)
bool put (const char *, Uint32 no, const char *, bool replace=false)
bool put (const char *, Uint32 no, const Properties *, bool replace=false)
bool getTypeOf (const char *name, PropertiesType *type) const
bool contains (const char *name) const
bool get (const char *name, Uint32 *value) const
bool get (const char *name, Uint64 *value) const
bool get (const char *name, const char **value) const
bool get (const char *name, BaseString &value) const
bool get (const char *name, const Properties **value) const
bool getCopy (const char *name, char **value) const
bool getCopy (const char *name, Properties **value) const
bool getTypeOf (const char *name, Uint32 no, PropertiesType *type) const
bool contains (const char *name, Uint32 no) const
bool get (const char *name, Uint32 no, Uint32 *value) const
bool get (const char *name, Uint32 no, Uint64 *value) const
bool get (const char *name, Uint32 no, const char **value) const
bool get (const char *name, Uint32 no, const Properties **value) const
bool getCopy (const char *name, Uint32 no, char **value) const
bool getCopy (const char *name, Uint32 no, Properties **value) const
void clear ()
void remove (const char *name)
void print (FILE *file=stdout, const char *prefix=0) const
Uint32 getPackedSize () const
bool pack (Uint32 *buf) const
bool pack (UtilBuffer &buf) const
bool unpack (const Uint32 *buf, Uint32 bufLen)
bool unpack (UtilBuffer &buf)
Uint32 getPropertiesErrno () const
Uint32 getOSErrno () const

Static Public Attributes

static const char delimiter = ':'
static const char version [] = { 2, 0, 0, 1, 1, 1, 1, 4 }

Friends

class Properties::Iterator
class PropertiesImpl

Detailed Description

Stores information in (name, value)-pairs.

Definition at line 55 of file Properties.hpp.

Constructor & Destructor Documentation

Properties::Properties ( bool  case_insensitive = false)

Methods for Properties

Definition at line 120 of file Properties.cpp.

Member Function Documentation

bool Properties::contains ( const char *  name) const
Returns
true if Properties object contains name

Definition at line 210 of file Properties.cpp.

Here is the caller graph for this function:

bool Properties::getTypeOf ( const char *  name,
Uint32  no,
PropertiesType *  type 
) const

Same as get above except that _d (where d = no) is added to the name

Definition at line 1041 of file Properties.cpp.

Here is the call graph for this function:

void Properties::put ( const Property anArray,
int  len 
)

Insert an array of value(s)

Definition at line 142 of file Properties.cpp.

Here is the caller graph for this function:

bool Properties::put ( const char *  name,
Uint32  no,
Uint32  val,
bool  replace = false 
)

Same as put above, except that _d (where d is a number) is added to the name Compare get(name, no)

Inlined get/put(name, no, ...) - methods

Definition at line 997 of file Properties.cpp.

Here is the call graph for this function:

void Properties::setCaseInsensitiveNames ( bool  value)

Set/Get wheather names in the Properties should be compared w/o case. NOTE: The property is automatically applied to all propoerties put into this after a called to setCaseInsensitiveNames has been made But properties already in when calling setCaseInsensitiveNames will not be affected

Definition at line 1126 of file Properties.cpp.

Here is the caller graph for this function:

Member Data Documentation

const char Properties::version = { 2, 0, 0, 1, 1, 1, 1, 4 }
static

Note has to be a multiple of 4 bytes

Definition at line 58 of file Properties.hpp.


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