24#ifndef DD__PROPERTIES_INCLUDED 
   25#define DD__PROPERTIES_INCLUDED 
  128  typedef std::map<String_type, String_type> 
Map;
 
  129  typedef std::map<String_type, String_type>::size_type 
size_type;
 
  256  template <
typename Lex_type>
 
  271  template <
typename Value_type>
 
  300  template <
typename Value_type>
 
The Properties class defines an interface for storing key=value pairs, where both key and value may b...
Definition: properties.h:74
 
virtual size_type size() const =0
Get the number of key=value pairs.
 
Properties(const Properties &)=default
 
virtual bool exists(const String_type &key) const =0
Check for the existence of a key=value pair given the key.
 
virtual bool remove(const String_type &key)=0
Remove the key=value pair for the given key if it exists.
 
virtual bool get(const String_type &key, String_type *value) const =0
Get the string value for a given key.
 
bool set(const String_type &key, Value_type value)
Convert the value to a string and set it for the given key.
Definition: properties.h:301
 
Properties & operator=(const Properties &)=delete
 
std::map< String_type, String_type > Map
Definition: properties.h:128
 
virtual ~Properties()=default
 
virtual void clear()=0
Remove all key=value pairs.
 
Map::iterator iterator
Definition: properties.h:130
 
virtual bool insert_values(const String_type &raw_string)=0
Insert keys and values from a raw string.
 
virtual iterator begin()=0
 
virtual const_iterator end() const =0
 
std::map< String_type, String_type >::size_type size_type
Definition: properties.h:129
 
virtual const_iterator begin() const =0
 
virtual const String_type raw_string() const =0
Create a string containing all key=value pairs as a semicolon separated list.
 
virtual bool valid_key(const String_type &key) const =0
Check if the submitted key is valid.
 
virtual bool empty() const =0
Are there any key=value pairs?
 
static Properties * parse_properties(const String_type &raw_properties)
Parse the submitted string for properties on the format "key=value;key=value;...".
Definition: properties_impl.cc:48
 
Map::const_iterator const_iterator
Definition: properties.h:131
 
virtual bool set(const String_type &key, const String_type &value)=0
Add a new key=value pair where the value is a string.
 
virtual bool insert_values(const Properties &properties)=0
Insert keys and values from a different property object.
 
static String_type to_str(T value)
Convert a value of an integral type (including bool) to a string.
Definition: properties.cc:95
 
static bool from_str(const String_type &number, T *value)
Convert a string to a value of an integral type.
Definition: properties.cc:38
 
static MEM_ROOT mem_root
Definition: client_plugin.cc:114
 
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:43
 
Char_string_template< String_type_allocator > String_type
Definition: string_type.h:51
 
required string key
Definition: replication_asynchronous_connection_failover.proto:60
 
The MEM_ROOT is a simple arena, where allocations are carved out of larger blocks.
Definition: my_alloc.h:83