00001 00009 #ifndef _POWERFLOWLIBRARY_H 00010 #define _POWERFLOWLIBRARY_H 00011 00012 #include "gridlabd.h" 00013 00014 class powerflow_library : public gld_object 00015 { 00016 public: 00017 static CLASS *oclass; 00018 static CLASS *pclass; 00019 inline const char *get_name(void) const { static char tmp[64]; OBJECT *obj=OBJECTHDR(this); return obj->name?obj->name:(sprintf(tmp,"%s:%d",obj->oclass->name,obj->id)>0?tmp:"(unknown)");}; 00020 inline unsigned int get_id(void) const {return OBJECTHDR(this)->id;}; 00021 00022 public: 00023 int create(void); 00024 int init(OBJECT *parent); 00025 powerflow_library(MODULE *mod); 00026 powerflow_library(CLASS *cl=oclass); 00027 int isa(char *classname); 00028 }; 00029 00030 #endif // _POWERFLOWOBJECT_H 00031