Go to the documentation of this file.00001 #include "base/OperList.h"
00002
00003 #include <stdio.h>
00004
00005 base::OperList::OperList() :
00006 fList(),
00007 fErrorOper(-1),
00008 fErrorCode(0)
00009 {
00010
00011 }
00012
00013 base::OperList::OperList(int noper, bool* isput, uint32_t* addr, uint32_t* value) :
00014 fList(),
00015 fErrorOper(-1),
00016 fErrorCode(0)
00017 {
00018 for (int n=0;n<noper;n++)
00019 addOper(isput[n], addr[n], value[n]);
00020 }
00021
00022 base::OperList::OperList(const OperList& src) :
00023 fList(),
00024 fErrorOper(-1),
00025 fErrorCode(0)
00026 {
00027 for (int n=0;n<src.number();n++)
00028 addOper(src.oper(n));
00029 }
00030
00031 base::OperList::~OperList()
00032 {
00033 fList.clear();
00034
00035 }
00036
00037 void base::OperList::print()
00038 {
00039 printf("OperList size = %d\n", number());
00040 for (int n=0;n<number();n++)
00041 printf(" %s %08x %08x\n", (isput(n) ? "Put" : "Get"), oper(n).addr, oper(n).value);
00042 printf(" ErrCode=%d ErrOper=%d\n", fErrorCode, fErrorOper);
00043
00044 }