00001
00004 #ifndef _enum_assert_H
00005 #define _enum_assert_H
00006
00007 #include <stdarg.h>
00008 #include "gridlabd.h"
00009
00010 #ifndef _isnan
00011 #define _isnan isnan
00012 #endif
00013
00014 class enum_assert : public gld_object {
00015 public:
00016 enum {ASSERT_TRUE=1, ASSERT_FALSE, ASSERT_NONE};
00017
00018 GL_ATOMIC(enumeration,status);
00019 GL_STRING(char1024,target);
00020 GL_ATOMIC(int32,value);
00021
00022 public:
00023
00024 enum_assert(MODULE *module);
00025 int create(void);
00026 int init(OBJECT *parent);
00027 TIMESTAMP commit(TIMESTAMP t1, TIMESTAMP t2);
00028
00029 public:
00030 static CLASS *oclass;
00031 static enum_assert *defaults;
00032 };
00033
00034 #endif