QuarkList

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this()

Creates a new #GdaQuarkList, which is a set of key->value pairs, very similar to GLib's GHashTable, but with the only purpose to make easier the parsing and creation of data source connection strings.

Members

Functions

_cPtr
void* _cPtr(Flag!"Dup" dup)
addFromString
void addFromString(string string_, bool cleanup)

string must be a semi-colon separated list of "&lt;key&gt;=&lt;value&gt;" strings (for example "DB_NAME=notes;USERNAME=alfred"). Each key and value must respect the RFC 1738 recommendations: the <constant>&lt;&gt;&quot;#%{}|\^~[]&apos;`;/?:@=&amp;</constant> and space characters are replaced by <constant>&quot;%ab&quot;</constant> where <constant>ab</constant> is the hexadecimal number corresponding to the character (for example the "DB_NAME=notes;USERNAME=al%20fred" string will specify a username as "al fred"). If this formalism is not respected, then some unexpected results may occur.

clear
void clear()

Removes all strings in the given #GdaQuarkList.

copy
gda.quark_list.QuarkList copy()

Creates a new #GdaQuarkList from an existing one.

find
string find(string name)

Searches for the value identified by name in the given #GdaQuarkList. For protected values (authentification data), don't forget to call gda.quark_list.QuarkList.protectValues when you don't need them anymore (when needed again, they will be unmangled again).

foreach_
void foreach_(glib.types.HFunc func)

Calls the given function for each of the key/value pairs in qlist. The function is passed the key and value of each pair, and the given user_data parameter. qlist may not be modified while iterating over it.

protectValues
void protectValues()

Call this function to get rid of the clear version of the value associated to name.

remove
void remove(string name)

Removes an entry from the #GdaQuarkList, given its name.

self
QuarkList self()

Returns this, for use in with statements.

Properties

_gType
GType _gType [@property getter]

Static functions

_getGType
GType _getGType()
newFromString
gda.quark_list.QuarkList newFromString(string string_)

Creates a new #GdaQuarkList given a string.

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

_getGType
GType _getGType()

Get the GType of this boxed type.

_gType
GType _gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.