HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
PY_EvaluationContext.h
Go to the documentation of this file.
1
/*
2
* PROPRIETARY INFORMATION. This software is proprietary to
3
* Side Effects Software Inc., and is not to be reproduced,
4
* transmitted, or disclosed in any way without written permission.
5
*
6
* COMMENTS:
7
* This class represents an evaluation context in which pieces of compiled
8
* python code can run. Each evaluation context contains a globals
9
* dict, so it effectively acts as a namespace.
10
*/
11
12
#ifndef __PY_EvaluationContext_h__
13
#define __PY_EvaluationContext_h__
14
15
#include "
PY_API.h
"
16
#include <
UT/UT_NonCopyable.h
>
17
#include <
UT/UT_String.h
>
18
19
class
PY_API
PY_EvaluationContext
20
{
21
public
:
22
explicit
PY_EvaluationContext
(
const
char
* default_module=
"hou"
);
23
~
PY_EvaluationContext
();
24
25
UT_NON_COPYABLE
(
PY_EvaluationContext
)
26
27
void
clear();
28
29
void
*
getGlobalsDict
()
30
{
return
myOpaqueGlobalsDict; }
31
32
private
:
33
void
initializeContents();
34
35
friend
class
PY_CompiledCode
;
36
37
void
*myOpaqueGlobalsDict;
38
UT_String
myDefaultModule;
39
};
40
41
#endif
PY_API.h
UT_String.h
PY_EvaluationContext::getGlobalsDict
void * getGlobalsDict()
Definition:
PY_EvaluationContext.h:29
UT_NON_COPYABLE
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
Definition:
UT_NonCopyable.h:31
PY_API
#define PY_API
Definition:
PY_API.h:10
PY_EvaluationContext
Definition:
PY_EvaluationContext.h:19
UT_NonCopyable.h
UT_String
Definition:
UT_String.h:73
PY_CompiledCode
Definition:
PY_CompiledCode.h:27
PY
PY_EvaluationContext.h
Generated on Mon Oct 7 2024 02:48:30 for HDK by
1.8.6