core/class.c File Reference


Detailed Description

Id
class.c,v 1.56 2008/02/12 00:26:17 d3g637 Exp

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.
FUNCTIONclass_define_function (CLASS *oclass, FUNCTIONNAME functionname, FUNCTIONADDR call)
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 long value)
 Define a set member.
int class_define_type (CLASS *oclass, DELEGATEDTYPE *delegation,...)
PROPERTYclass_find_property (CLASS *oclass, PROPERTYNAME name)
 Find the named property in the class.
CLASSclass_get_class_from_classname (char *name)
 Get the class from the class name.
CLASSclass_get_class_from_classname_in_module (char *name, MODULE *mod)
 Get the class from the class name and a module pointer.
CLASSclass_get_class_from_objecttype (OBJECTTYPE type)
 Get the class from the object type.
char * class_get_classname_from_objecttype (OBJECTTYPE type)
 Get the class name from the object type.
OBJECTTYPE class_get_classtype_from_classname (char *name)
 Get the object type from the class name.
unsigned int class_get_count (void)
 Get the number of registered class.
CLASSclass_get_first_class (void)
 Get the first registered class.
PROPERTYclass_get_first_property (CLASS *oclass)
 Get the first property in a class's property list.
FUNCTIONADDR class_get_function (char *classname, char *functionname)
CLASSclass_get_last_class (void)
 Get the last registered class.
PROPERTYclass_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.
int class_property_to_string (PROPERTY *prop, void *addr, char *value, int size)
 Convert a property value to a string.
CLASSclass_register (MODULE *module, CLASSNAME name, 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.

Variables

PROPERTYfirst_property = NULL
OBJECTTYPE last_object_type = 0
PROPERTYlast_property = NULL


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