Pol  Revision:cb584c9
execmodl.cpp
Go to the documentation of this file.
1 
7 #include "execmodl.h"
8 
9 #include <string>
10 
11 #include "executor.h"
12 
13 namespace Pol
14 {
15 namespace Bscript
16 {
17 ExecutorModule::ExecutorModule( const char* moduleName, Executor& iExec )
18  : exec( iExec ), moduleName( moduleName )
19 {
20 }
21 
23 {
24  return exec.getParamImp( param );
25 }
27 {
28  return exec.getParamImp( param, type );
29 }
30 bool ExecutorModule::getParamImp( unsigned param, BObjectImp*& imp )
31 {
32  imp = exec.getParamImp( param );
33  return imp != nullptr;
34 }
35 
36 const String* ExecutorModule::getStringParam( unsigned param )
37 {
38  return exec.getStringParam( param );
39 }
40 void* ExecutorModule::getApplicPtrParam( unsigned param, const BApplicObjType* pointer_type )
41 {
42  return exec.getApplicPtrParam( param, pointer_type );
43 }
45  const BApplicObjType* object_type )
46 {
47  return exec.getApplicObjParam( param, object_type );
48 }
49 bool ExecutorModule::getStringParam( unsigned param, const String*& pstr )
50 {
51  return exec.getStringParam( param, pstr );
52 }
53 bool ExecutorModule::getRealParam( unsigned param, double& value )
54 {
55  return exec.getRealParam( param, value );
56 }
57 bool ExecutorModule::getObjArrayParam( unsigned param, ObjArray*& pobjarr )
58 {
59  return exec.getObjArrayParam( param, pobjarr );
60 }
61 
62 bool ExecutorModule::getParam( unsigned param, int& value )
63 {
64  return exec.getParam( param, value );
65 }
66 bool ExecutorModule::getParam( unsigned param, int& value, int maxval )
67 {
68  return exec.getParam( param, value, maxval );
69 }
70 bool ExecutorModule::getParam( unsigned param, int& value, int minval, int maxval )
71 {
72  return exec.getParam( param, value, minval, maxval );
73 }
74 
75 bool ExecutorModule::getParam( unsigned param, unsigned& value )
76 {
77  return exec.getParam( param, value );
78 }
79 
80 bool ExecutorModule::getParam( unsigned param, short& value )
81 {
82  return exec.getParam( param, value );
83 }
84 bool ExecutorModule::getParam( unsigned param, short& value, short maxval )
85 {
86  return exec.getParam( param, value, maxval );
87 }
88 bool ExecutorModule::getParam( unsigned param, short& value, short minval, short maxval )
89 {
90  return exec.getParam( param, value, minval, maxval );
91 }
92 
93 bool ExecutorModule::getParam( unsigned param, unsigned short& value )
94 {
95  return exec.getParam( param, value );
96 }
97 bool ExecutorModule::getParam( unsigned param, unsigned short& value, unsigned short maxval )
98 {
99  return exec.getParam( param, value, maxval );
100 }
101 bool ExecutorModule::getParam( unsigned param, unsigned short& value, unsigned short minval,
102  unsigned short maxval )
103 {
104  return exec.getParam( param, value, minval, maxval );
105 }
106 
107 const std::string& ExecutorModule::scriptname() const
108 {
109  return exec.prog_->name;
110 }
111 }
112 }
bool getRealParam(unsigned param, double &value)
Definition: execmodl.cpp:53
bool getParam(unsigned param, int &value)
Definition: execmodl.cpp:62
BObjectImp * getParamImp(unsigned param)
Definition: execmodl.cpp:22
void * getApplicPtrParam(unsigned param, const BApplicObjType *pointer_type)
Definition: execmodl.cpp:40
BApplicObjBase * getApplicObjParam(unsigned param, const BApplicObjType *object_type)
Definition: execmodl.cpp:44
bool getRealParam(unsigned param, double &value)
Definition: executor.cpp:433
ref_ptr< EScriptProgram > prog_
Definition: executor.h:376
const std::string & scriptname() const
Definition: execmodl.cpp:107
const String * getStringParam(unsigned param)
Definition: execmodl.cpp:36
void * getApplicPtrParam(unsigned param, const BApplicObjType *pointer_type)
Definition: executor.cpp:464
BApplicObjBase * getApplicObjParam(unsigned param, const BApplicObjType *object_type)
Definition: executor.cpp:488
const String * getStringParam(unsigned param)
Definition: executor.cpp:347
ExecutorModule(const char *moduleName, Executor &iExec)
Definition: execmodl.cpp:17
bool getObjArrayParam(unsigned param, ObjArray *&pobjarr)
Definition: execmodl.cpp:57
bool getObjArrayParam(unsigned param, ObjArray *&pobjarr)
Definition: executor.cpp:457
Definition: berror.cpp:12
BObjectImp * getParamImp(unsigned param)
Definition: executor.cpp:266
bool getParam(unsigned param, int &value)
Definition: executor.cpp:363