00001
00007 #ifndef _PW_MODEL_H_
00008 #define _PW_MODEL_H_
00009
00010 #include "network.h"
00011
00012 #ifdef HAVE_POWERWORLD
00013 #ifndef PWX64
00014
00015
00016 #ifdef int64
00017 #undef int64
00018 #endif
00019 #import "libid:C99F1760-277E-11D5-A106-00C04F469176"
00020 #ifndef int64
00021 #define int64 __int64
00022 #endif
00023
00024 using namespace pwrworld;
00025
00026 class pw_model : public gld_object {
00027 public:
00028 pw_model(MODULE *module);
00029
00030 static CLASS *oclass;
00031 static pw_model *defaults;
00032 int create();
00033 int init(OBJECT *parent);
00034 TIMESTAMP presync(TIMESTAMP t1);
00035 TIMESTAMP sync(TIMESTAMP t1);
00036 TIMESTAMP postsync(TIMESTAMP t1);
00037 int isa(char *classname);
00038 int finalize();
00039 void pw_close_COM(void);
00040 public:
00041 GL_STRING(char1024, model_name);
00042 GL_STRING(char1024, load_list_file);
00043 GL_STRING(char1024, out_file);
00044 GL_STRING(char32, out_file_type);
00045 GL_STRING(char1024, field_file);
00046 GL_STRING(char32, field_type);
00047 GL_ATOMIC(bool, update_flag);
00048 GL_ATOMIC(int32, exchange_count);
00049
00050 GL_ATOMIC(bool, valid_flag);
00051 public:
00052 ISimulatorAutoPtr A;
00053 CLSID clsid;
00054 HRESULT hr;
00055
00056 };
00057
00058 #endif // PWX64
00059 #endif // HAVE_POWERWORLD
00060 #endif // _PW_MODEL_H_
00061
00062