00001 /* 00002 * PROPRIETARY INFORMATION. This software is proprietary to 00003 * Side Effects Software Inc., and is not to be reproduced, 00004 * transmitted, or disclosed in any way without written permission. 00005 * 00006 * Produced by: 00007 * Side Effects Software Inc 00008 * 123 Front Street West, Suite 1401 00009 * Toronto, Ontario 00010 * Canada M5J 2M2 00011 * 416-504-9876 00012 * 00013 * COMMENTS: 00014 * This class represents an evaluation context in which pieces of compiled 00015 * python code can run. Each evaluation context contains a globals 00016 * dict, so it effectively acts as a namespace. 00017 */ 00018 00019 #ifndef __PY_EvaluationContext_h__ 00020 #define __PY_EvaluationContext_h__ 00021 00022 #include "PY_API.h" 00023 00024 class PY_API PY_EvaluationContext 00025 { 00026 public: 00027 PY_EvaluationContext(); 00028 ~PY_EvaluationContext(); 00029 00030 void clear(); 00031 00032 void *getGlobalsDict() 00033 { return myOpaqueGlobalsDict; } 00034 00035 private: 00036 PY_EvaluationContext(const PY_EvaluationContext &); // unimplemented 00037 00038 void initializeContents(); 00039 00040 friend class PY_CompiledCode; 00041 00042 void *myOpaqueGlobalsDict; 00043 }; 00044 00045 #endif
1.5.9