00001
00002 #include "mEmcDCMinputModule.h"
00003 #include "mEmcDCMinput.h"
00004 #include "PHIODataNode.h"
00005
00006 #include "dEmcDCMDataWrapper.h"
00007
00008 typedef PHIODataNode<dEmcDCMDataWrapper> dEmcDCMDataNode_t;
00009
00010 PHBoolean
00011 mEmcDCMinputModule::callPAM(PHPointerList<PHNode> &nl) {
00012 long result;
00013
00014 TABLE_HEAD_ST t1;
00015 DEMCDCMDATA_ST *d1;
00016
00017 dEmcDCMDataNode_t* n1 = static_cast<dEmcDCMDataNode_t*>(nl[0]);
00018
00019 t1 = n1->getData()->TableHeader();
00020 d1 = n1->getData()->TableData();
00021
00022 result = memcdcminput_(
00023 &t1, d1 );
00024
00025 n1->getData()->SetRowCount(t1.nok);
00026
00027 if (result == 1) {
00028 return True;
00029 } else {
00030 return False;
00031 }
00032 }