25 void print_fed(
unsigned int iFed,
const vector<unsigned char>& fedData);
32 bool waitForKey(
false);
if (argc>1) {stringstream ss;ss<<argv[1];ss>>waitForKey;}
33 double crashPrb(0.0);
if (argc>2) {stringstream ss;ss<<argv[2];ss>>crashPrb; }
34 int sleepTime(0);
if (argc>3) {stringstream ss;ss<<argv[3];ss>>sleepTime; }
37 FUShmBuffer* buffer=FUShmBuffer::getShmBuffer();
if (0==buffer)
return 1;
43 vector<vector<unsigned char> > fedData;
50 cout<<
"press key+<RETURN> to read next: "<<flush;
char val; cin>>val;
55 unsigned int iCell=client->
readNext(fedData);
56 cout<<
"READ at index "<<iCell<<endl;
69 void print_fed(
unsigned int iFed,
const vector<unsigned char>& fedData)
71 cout<<
"fed "<<iFed<<
": "<<flush;
72 vector<unsigned char>::const_iterator it;
74 for (it=fedData.begin();it!=fedData.end();++it)
75 cout<<setiosflags(ios::right)<<setw(2)<<hex<<(int)(*it)<<dec<<
" ";
unsigned int readNext(std::vector< std::vector< unsigned char > > &feds)
void print_fed(unsigned int iFed, const vector< unsigned char > &fedData)
int main(int argc, char **argv)
void setCrashPrb(double prb)