The Gnome Chemistry Utils
0.14.0
|
#include <goffice/goffice.h>
Go to the source code of this file.
Macros | |
#define | GCU_PROP(type, member) |
#define | GCU_PROP_EX(type, member) |
#define | GCU_POINTER_PROP(type, member) |
#define | GCU_RO_PROP(type, member) |
#define | GCU_RO_STATIC_PROP(type, member) |
#define | GCU_RO_POINTER_PROP(type, member) |
#define | GCU_PROT_PROP(type, member) |
#define | GCU_PROT_POINTER_PROP(type, member) |
#define | GCU_GCONF_GET(key, type, target, defaultval) |
#define | GCU_GCONF_GET_NO_CHECK(key, type, target, defaultval) target = go_conf_get_##type (m_ConfNode, key); |
#define | GCU_GCONF_GET_N_TRANSFORM(key, type, target, defaultval, func) |
#define | GCU_GCONF_GET_STRING(key, target, defaultval) |
#define | GCU_UPDATE_KEY(key, type, target, action) |
#define | GCU_UPDATE_STRING_KEY(key, target, action) |
Definition in file macros.h.
#define GCU_GCONF_GET | ( | key, | |
type, | |||
target, | |||
defaultval | |||
) |
This macro gets the numerical value of type type associated to key, and copies it to target. If an error occurs or if the value is 0, defaultval is used instead.
If the GOConf mechanism is available in goffice (>= 0.7.0), calling class must have a GOConfNode called m_ConfNode, and the code must provide a GError *error initially set to NULL (GConf version only). The real key is obtained by appending the value of ROOTDIR to key.
#define GCU_GCONF_GET_N_TRANSFORM | ( | key, | |
type, | |||
target, | |||
defaultval, | |||
func | |||
) |
This macro gets the numerical value of type type associated to key. If an error occurs or if the value is 0, defaultval is used instead.
The resuting value (which might be the default value) is then passed to func and the result is copied to target.
If the GOConf mechanism is available in goffice (>= 0.7.0), calling class must have a GOConfNode called m_ConfNode, and the code must provide a GError *error initially set to NULL (GConf version only). The real key is obtained by appending the value of ROOTDIR to key.
#define GCU_GCONF_GET_NO_CHECK | ( | key, | |
type, | |||
target, | |||
defaultval | |||
) | target = go_conf_get_##type (m_ConfNode, key); |
This macro gets the numerical value of type type associated to key, and copies it to target. If an error occurs, defaultval is used instead.
If the GOConf mechanism is available in goffice (>= 0.7.0), calling class must have a GOConfNode called m_ConfNode, and the code must provide a GError *error initially set to NULL (GConf version only). The real key is obtained by appending the value of ROOTDIR to key.
#define GCU_GCONF_GET_STRING | ( | key, | |
target, | |||
defaultval | |||
) |
This macro gets the string value associated to key, and copies it to target. If an error occurs, defaultval is used instead.
If target is not NULL when entering the macro, it is deallocated using g_free and set to NULL before calling gconf_client_get_string.
Calling class must have a GOConfNode called m_ConfNode, and the code must provide a GError *error initially set to NULL. The real key is obtained by appending the value of ROOTDIR to key.
#define GCU_POINTER_PROP | ( | type, | |
member | |||
) |
Defines a private pointer member with appropriate get/set methods. GCU_POINTER_PROP((Type,Foo) expands to one private member:
and three public methods:
#define GCU_PROP | ( | type, | |
member | |||
) |
Defines a private member with appropriate get/set methods. GCU_PROP((Type,Foo) expands to one private member:
and three public methods:
The last one allows code as:
#define GCU_PROP_EX | ( | type, | |
member | |||
) |
Defines a private member with appropriate get/set methods. GCU_PROP_EX((Type,Foo) expands to one private member:
and two public methods:
SetFoo() calls private method (void ChangedFoo()) which must be implemented by the class.
#define GCU_PROT_POINTER_PROP | ( | type, | |
member | |||
) |
Defines a protected pointer member with an appropriate get method. The member can be modified the class it belongs too or a friend class or a derived class. The data referenced by the pointer can be modified if the class instance is not const. GCU_PROT_POINTER_PROP((Type,Foo) expands to one private member:
and two public methods:
#define GCU_PROT_PROP | ( | type, | |
member | |||
) |
Defines a protected member with an appropriate get method. The member can be modified the class it belongs too or a friend class or a derived class. GCU_PROT_PROP(Type,Foo) expands to one protected member:
and one public method:
#define GCU_RO_POINTER_PROP | ( | type, | |
member | |||
) |
Defines a private pointer member an with appropriate get method. RO stands for Read Only. The member can't be modified from outside the class it belongs to or a friend class. GCU_RO_POINTER_PROP((Type,Foo) expands to one private member:
and one public methods:
#define GCU_RO_PROP | ( | type, | |
member | |||
) |
Defines a private member with an appropriate get method. RO stands for Read Only. The member can't be modified from outside the class it belongs to or a friend class. GCU_RO_PROP(Type,Foo) expands to one private member:
and one public method:
#define GCU_RO_STATIC_PROP | ( | type, | |
member | |||
) |
Defines a static private member with an appropriate get method. RO stands for Read Only. The member can't be modified from outside the class it belongs to or a friend class. GCU_RO_STATIC_PROP(Type,Foo) expands to one private member:
and one public method:
#define GCU_UPDATE_KEY | ( | key, | |
type, | |||
target, | |||
action | |||
) |
This macro updates a value of type type associated to key, and copies it to target. action is called after setting the target? It also needs a GOConfNode* called node. The real key is obtained by appending the value of ROOTDIR to key.
#define GCU_UPDATE_STRING_KEY | ( | key, | |
target, | |||
action | |||
) |
This macro updates a string value associated to key, and copies it to target. action is called after setting the target? It also needs a GOConfNode* called node. The real key is obtained by appending the value of ROOTDIR to key.