#include <PythonCCS-client.h>
Public Member Functions | |
PythonExecute (char *_code, bool _persistent=false, bool _highlevel=false, CmiUInt4 _interp=0) | |
PythonExecute (char *_code, char *_method, PythonIterator *_info, bool _persistent=false, bool _highlevel=false, CmiUInt4 _interp=0) | |
~PythonExecute () | |
void | setCode (char *_set) |
void | setMethodName (char *_set) |
void | setIterator (PythonIterator *_set) |
void | setPersistent (bool _set) |
void | setIterate (bool _set) |
void | setHighLevel (bool _set) |
void | setKeepPrint (bool _set) |
void | setWait (bool _set) |
void | setInterpreter (CmiUInt4 i) |
void | setNoCheck (bool _set) |
bool | isPersistent () |
bool | isIterate () |
bool | isHighLevel () |
bool | isKeepPrint () |
bool | isWait () |
CmiUInt4 | getInterpreter () |
bool | isNoCheck () |
int | size () |
char * | pack () |
void | unpack () |
void | print () |
Static Public Attributes | |
static const CmiUInt4 | localmagic = 37492037 |
Private Attributes | |
CmiUInt4 | codeLength |
union { | |
char * code | |
char dummy [8] | |
} | code |
union { | |
char * methodName | |
char dummy [8] | |
} | methodName |
CmiUInt4 | methodNameLength |
CmiUInt4 | infoSize |
union { | |
PythonIterator * info | |
char dummy [8] | |
} | info |
CmiUInt4 | interpreter |
unsigned char | flags |
Static Private Attributes | |
static const unsigned char | FLAG_PERSISTENT = 0x80 |
static const unsigned char | FLAG_KEEPPRINT = 0x40 |
static const unsigned char | FLAG_HIGHLEVEL = 0x20 |
static const unsigned char | FLAG_ITERATE = 0x10 |
static const unsigned char | FLAG_WAIT = 0x08 |
static const unsigned char | FLAG_NOCHECK = 0x04 |
Friends | |
class | PythonObject |
class | CpdPythonGroup |
Definition at line 67 of file PythonCCS-client.h.
PythonExecute::PythonExecute | ( | char * | _code, | |
bool | _persistent = false , |
|||
bool | _highlevel = false , |
|||
CmiUInt4 | _interp = 0 | |||
) |
Definition at line 3 of file PythonCCS-client.C.
References code, codeLength, FLAG_HIGHLEVEL, FLAG_KEEPPRINT, FLAG_PERSISTENT, flags, info, infoSize, interpreter, localmagic, PythonAbstract::magic, methodName, methodNameLength, and strdup().
PythonExecute::PythonExecute | ( | char * | _code, | |
char * | _method, | |||
PythonIterator * | _info, | |||
bool | _persistent = false , |
|||
bool | _highlevel = false , |
|||
CmiUInt4 | _interp = 0 | |||
) |
Definition at line 20 of file PythonCCS-client.C.
References code, codeLength, FLAG_HIGHLEVEL, FLAG_ITERATE, FLAG_KEEPPRINT, FLAG_PERSISTENT, flags, info, infoSize, interpreter, localmagic, PythonAbstract::magic, methodName, methodNameLength, PythonIterator::pack(), PythonIterator::size(), and strdup().
PythonExecute::~PythonExecute | ( | ) |
Definition at line 38 of file PythonCCS-client.C.
References code, free(), info, and methodName.
void PythonExecute::setCode | ( | char * | _set | ) |
Definition at line 44 of file PythonCCS-client.C.
References code, codeLength, and strdup().
void PythonExecute::setMethodName | ( | char * | _set | ) |
Definition at line 49 of file PythonCCS-client.C.
References methodName, methodNameLength, and strdup().
void PythonExecute::setIterator | ( | PythonIterator * | _set | ) |
Definition at line 54 of file PythonCCS-client.C.
References info, infoSize, PythonIterator::pack(), and PythonIterator::size().
void PythonExecute::setPersistent | ( | bool | _set | ) |
void PythonExecute::setIterate | ( | bool | _set | ) |
void PythonExecute::setHighLevel | ( | bool | _set | ) |
void PythonExecute::setKeepPrint | ( | bool | _set | ) |
void PythonExecute::setWait | ( | bool | _set | ) |
void PythonExecute::setInterpreter | ( | CmiUInt4 | i | ) | [inline] |
Definition at line 124 of file PythonCCS-client.h.
References interpreter.
Referenced by CpdPythonGroup::registerPersistent().
void PythonExecute::setNoCheck | ( | bool | _set | ) |
bool PythonExecute::isPersistent | ( | ) | [inline] |
Definition at line 127 of file PythonCCS-client.h.
References FLAG_PERSISTENT, and flags.
Referenced by PythonObject::cleanup().
bool PythonExecute::isIterate | ( | ) | [inline] |
Definition at line 128 of file PythonCCS-client.h.
References FLAG_ITERATE, and flags.
Referenced by PythonObject::executeThread().
bool PythonExecute::isHighLevel | ( | ) | [inline] |
Definition at line 129 of file PythonCCS-client.h.
References FLAG_HIGHLEVEL, and flags.
Referenced by PythonObject::execute(), PythonObject::executeThread(), and PythonObject::prepareInterpreter().
bool PythonExecute::isKeepPrint | ( | ) | [inline] |
Definition at line 130 of file PythonCCS-client.h.
References FLAG_KEEPPRINT, and flags.
Referenced by PythonObject::prepareInterpreter().
bool PythonExecute::isWait | ( | ) | [inline] |
Definition at line 131 of file PythonCCS-client.h.
References FLAG_WAIT, and flags.
Referenced by PythonObject::execute().
CmiUInt4 PythonExecute::getInterpreter | ( | ) | [inline] |
bool PythonExecute::isNoCheck | ( | ) | [inline] |
int PythonExecute::size | ( | void | ) |
Definition at line 89 of file PythonCCS-client.C.
References codeLength, infoSize, and methodNameLength.
Referenced by pack().
char * PythonExecute::pack | ( | ) |
Definition at line 93 of file PythonCCS-client.C.
References code, codeLength, info, infoSize, PythonAbstract::magic, malloc(), methodName, methodNameLength, and size().
void PythonExecute::unpack | ( | ) |
Reimplemented from PythonAbstract.
Definition at line 118 of file PythonCCS-client.C.
References code, codeLength, info, infoSize, interpreter, methodName, methodNameLength, and ntohl().
Referenced by PythonObject::execute(), and CpdPythonGroup::registerPersistent().
void PythonExecute::print | ( | void | ) |
Definition at line 175 of file PythonCCS-client.C.
References flags, interpreter, and PythonAbstract::magic.
friend class PythonObject [friend] |
Definition at line 68 of file PythonCCS-client.h.
friend class CpdPythonGroup [friend] |
Definition at line 69 of file PythonCCS-client.h.
CmiUInt4 PythonExecute::codeLength [private] |
Definition at line 71 of file PythonCCS-client.h.
Referenced by pack(), PythonExecute(), setCode(), size(), and unpack().
char* PythonExecute::code |
Definition at line 73 of file PythonCCS-client.h.
Referenced by PythonObject::executeThread(), pack(), PythonExecute(), setCode(), unpack(), and ~PythonExecute().
char PythonExecute::dummy[8] |
Definition at line 74 of file PythonCCS-client.h.
union { ... } PythonExecute::code [private] |
Definition at line 79 of file PythonCCS-client.h.
Referenced by PythonObject::executeThread(), pack(), PythonExecute(), setMethodName(), unpack(), and ~PythonExecute().
union { ... } PythonExecute::methodName [private] |
CmiUInt4 PythonExecute::methodNameLength [private] |
Definition at line 82 of file PythonCCS-client.h.
Referenced by pack(), PythonExecute(), setMethodName(), size(), and unpack().
CmiUInt4 PythonExecute::infoSize [private] |
Definition at line 83 of file PythonCCS-client.h.
Referenced by pack(), PythonExecute(), setIterator(), size(), and unpack().
Definition at line 85 of file PythonCCS-client.h.
Referenced by PythonObject::executeThread(), pack(), PythonExecute(), CpdPythonGroup::registerPersistent(), setIterator(), unpack(), and ~PythonExecute().
union { ... } PythonExecute::info [private] |
CmiUInt4 PythonExecute::interpreter [private] |
Definition at line 92 of file PythonCCS-client.h.
Referenced by getInterpreter(), PythonObject::prepareInterpreter(), print(), PythonExecute(), setInterpreter(), and unpack().
unsigned char PythonExecute::flags [private] |
Definition at line 93 of file PythonCCS-client.h.
Referenced by isHighLevel(), isIterate(), isKeepPrint(), isNoCheck(), isPersistent(), isWait(), print(), PythonExecute(), setHighLevel(), setIterate(), setKeepPrint(), setNoCheck(), setPersistent(), and setWait().
const unsigned char PythonExecute::FLAG_PERSISTENT = 0x80 [static, private] |
Definition at line 100 of file PythonCCS-client.h.
Referenced by isPersistent(), PythonExecute(), and setPersistent().
const unsigned char PythonExecute::FLAG_KEEPPRINT = 0x40 [static, private] |
Definition at line 101 of file PythonCCS-client.h.
Referenced by isKeepPrint(), PythonExecute(), and setKeepPrint().
const unsigned char PythonExecute::FLAG_HIGHLEVEL = 0x20 [static, private] |
Definition at line 102 of file PythonCCS-client.h.
Referenced by isHighLevel(), PythonExecute(), and setHighLevel().
const unsigned char PythonExecute::FLAG_ITERATE = 0x10 [static, private] |
Definition at line 103 of file PythonCCS-client.h.
Referenced by isIterate(), PythonExecute(), and setIterate().
const unsigned char PythonExecute::FLAG_WAIT = 0x08 [static, private] |
const unsigned char PythonExecute::FLAG_NOCHECK = 0x04 [static, private] |
const CmiUInt4 PythonExecute::localmagic = 37492037 [static] |
Definition at line 107 of file PythonCCS-client.h.
Referenced by PythonAbstract::isExecute(), and PythonExecute().