FACT++  1.0
static void user_routine ( void *  tagp,
void **  buf,
int *  size,
int *  first_time 
)
static

Definition at line 21 of file discpp.cxx.

References DisSTRING, DimCore::inCallback, DimService::itsData, DimServiceHandler::itsService, DimService::itsServiceHandler, DimService::itsSize, DimService::itsType, DimServiceHandler::serviceHandler(), DimService::serviceHandler(), and t.

Referenced by DimService::declareIt().

22 {
23 // int *tag = (int *)tagp;
24 // int id = *tag;
25  DimService *t;
26 
27  if(first_time){}
28 // t = (DimService *)id_get_ptr(id, SRC_DIS);
29  t = *(DimService **)tagp;
30  if( t->itsServiceHandler ) {
35  }
36  else
37  {
39  t->serviceHandler();
41  }
42  if( t->itsType == DisSTRING)
43  t->itsSize = (int)strlen((char *)t->itsData)+1;
44  *buf = t->itsData;
45  *size = t->itsSize;
46 }
virtual void serviceHandler()
Definition: dis.hxx:220
DisTYPE itsType
Definition: dis.hxx:211
static int inCallback
Definition: dim.hxx:11
virtual void serviceHandler()=0
DimService * itsService
Definition: dis.hxx:32
int size
Definition: db_dim_server.c:17
DimServiceHandler * itsServiceHandler
Definition: dis.hxx:144
TT t
Definition: test_client.c:26
int itsSize
Definition: dis.hxx:210
void * itsData
Definition: dis.hxx:208

+ Here is the call graph for this function:

+ Here is the caller graph for this function: