core/class.c File Reference


Detailed Description

Id
class.c 1182 2008-12-22 22:08:36Z dchassin
Copyright (C) 2008 Battelle Memorial Institute

Definition in file class.c.

Go to the source code of this file.

Functions

int class_define_enumeration_member (CLASS *oclass, char *property_name, char *member, enumeration value)
 Define an enumeration member.
FUNCTION * class_define_function (CLASS *oclass, FUNCTIONNAME functionname, FUNCTIONADDR call)
 Define a class function.
int class_define_map (CLASS *oclass,...)
 Define one or more class properties.
int class_define_set_member (CLASS *oclass, char *property_name, char *member, unsigned int64 value)
 Define a set member.
PROPERTY * class_find_property (CLASS *oclass, PROPERTYNAME name)
 Find the named property in the class.
CLASS * class_get_class_from_classname (char *name)
 Get the class from the class name.
CLASS * class_get_class_from_classname_in_module (char *name, MODULE *mod)
 Get the class from the class name and a module pointer.
unsigned int class_get_count (void)
 Get the number of registered class.
CLASS * class_get_first_class (void)
 Get the first registered class.
PROPERTY * class_get_first_property (CLASS *oclass)
 Get the first property in a class's property list.
CLASS * class_get_last_class (void)
 Get the last registered class.
PROPERTY * class_get_next_property (PROPERTY *prop)
 Get the next property of within the current class.
char * class_get_property_typename (PROPERTYTYPE type)
 Get the name of a property from its type.
PROPERTYTYPE class_get_propertytype_from_typename (char *name)
 Get the type of a property from its name.
int class_get_xsd (CLASS *oclass, char *buffer, size_t len)
 Generate the XSD snippet of a class.
void class_profiles (void)
 Generate profile information for the classes used.
PROPERTY * class_prop_in_class (CLASS *oclass, PROPERTY *prop)
 Search class hierarchy for a property.
int class_property_to_string (PROPERTY *prop, void *addr, char *value, int size)
 Convert a property value to a string.
CLASS * class_register (MODULE *module, CLASSNAME name, unsigned int size, PASSCONFIG passconfig)
 Register an object class.
DELEGATEDTYPEclass_register_type (CLASS *oclass, char *type, int(*from_string)(void *, char *), int(*to_string)(void *, char *, int))
 Register a type delegation for a property.
int class_saveall (FILE *fp)
 Save all class information to a stream in glm format.
int class_saveall_xml (FILE *fp)
 Save all class information to a stream in xml format.
int class_string_to_property (PROPERTY *prop, void *addr, char *value)
 Convert a string value to property data.
unsigned long property_size (PROPERTY *prop)
 Get the size of a single instance of a property.


GridLAB-DTM Version 2.0
An open-source project initiated by the US Department of Energy