FACT++  1.0
void TestGetService::infoHandler ( )
inlineprivatevirtual

Reimplemented from DimInfo.

Definition at line 75 of file test_Browser.cxx.

References AllServices, AllServiceStates, dim_print_date_time(), i, NBytes, NServices, and size.

76  {
77  int i, index, size, done = 1;
78  char *dataptr;
79 
80  size = getSize();
81  NBytes += size;
82  dataptr = new char[size];
83  memcpy(dataptr, getData(), size);
84  for(i = 0; i < NServices; i++)
85  {
86  if(AllServices[i] == this)
87  {
88  index = i;
89  break;
90  }
91  }
92  AllServiceStates[index] = getInt();
93  // printf("Got %s, %d, %d\n", getName(), index, AllServiceStates[index]);
94  for(i = 0; i < NServices; i++)
95  {
96  if(AllServiceStates[i] == -2)
97  {
98  done = 0;
99  break;
100  }
101  }
102  if(done)
103  {
105  printf("All Services Received\n");
106  }
107  }
int getInt()
Definition: dic.hxx:103
int i
Definition: db_dim_client.c:21
int getSize()
Definition: dic.hxx:100
int NBytes
void * getData()
Definition: diccpp.cxx:213
int NServices
int * AllServiceStates
void ** AllServices
int size
Definition: db_dim_server.c:17
void dim_print_date_time()
Definition: utilities.c:134

+ Here is the call graph for this function: