00001 #ifndef ocpointer_h 00002 #define ocpointer_h 00003 00004 #include <InterViews/observe.h> 00005 #include <OS/string.h> 00006 #include "oc2iv.h" 00007 class StmtInfo; 00008 00009 class OcPointer : public Observer { 00010 public: 00011 OcPointer(const char*, double*); 00012 virtual ~OcPointer(); 00013 virtual void update(Observable*); 00014 void assign(double); 00015 double* p_; 00016 char* s_; 00017 StmtInfo* sti_; 00018 boolean valid_; 00019 }; 00020 00021 class StmtInfo { 00022 public: 00023 StmtInfo(const char*); 00024 virtual ~StmtInfo(); 00025 void play_one(double); 00026 void parse(); 00027 CopyString* stmt_; 00028 Symlist* symlist_; 00029 Symbol* symstmt_; 00030 }; 00031 00032 #endif