FACT++  1.0
void DimUpdatedInfo::subscribe ( char *  name,
int  time,
void *  nolink,
int  nolinksize,
DimInfoHandler handler 
)
privatevirtual

Reimplemented from DimInfo.

Definition at line 299 of file diccpp.cxx.

References DimInfo::doIt(), handler(), DimInfo::itsData, DimInfo::itsDataSize, DimInfo::itsFormat, DimInfo::itsHandler, DimInfo::itsId, DimInfo::itsName, DimInfo::itsNolinkBuf, DimInfo::itsNolinkSize, DimInfo::itsSize, DimInfo::itsTime, DimInfo::itsType, MONIT_ONLY, time, and UPDATE.

301 {
302  itsId = 0;
303  itsData = 0;
304  itsFormat = 0;
306  itsDataSize = 0;
307  itsSize = 0;
308  itsNolinkBuf = 0;
309  itsNolinkSize = 0;
310  itsName = 0;
311  if(!name)
312  {
313  return;
314  }
315  itsName = new char[(int)strlen(name)+1];
316  strcpy(itsName,name);
317  itsNolinkBuf = nolink;
318  itsNolinkSize = nolinksize;
319  if(nolinksize > 0)
320  {
321  itsNolinkBuf = new char[nolinksize];
322  itsNolinkSize = nolinksize;
323  memcpy(itsNolinkBuf, nolink, (size_t)nolinksize);
324  }
325  if(!time)
326  {
328  itsTime = 0;
329  }
330  else if(time > 0)
331  {
332  itsType = UPDATE;
333  itsTime = time;
334  }
335  doIt();
336 }
int itsSize
Definition: dic.hxx:99
int itsId
Definition: dic.hxx:125
void * itsData
Definition: dic.hxx:97
#define UPDATE
Definition: dim_common.h:13
char * itsName
Definition: dic.hxx:121
void * itsNolinkBuf
Definition: dic.hxx:130
char * itsFormat
Definition: dic.hxx:129
Warning because the service this data corrsponds to might have been last updated longer ago than Local time
Definition: smartfact.txt:92
DimInfoHandler * itsHandler
Definition: dic.hxx:34
static void handler(int conn_id, char *packet, int size, int status)
Definition: webServer.c:635
int itsType
Definition: dic.hxx:127
int itsNolinkSize
Definition: dic.hxx:131
void doIt()
Definition: diccpp.cxx:287
int itsDataSize
Definition: dic.hxx:98
#define MONIT_ONLY
Definition: dim_common.h:12
int itsTime
Definition: dic.hxx:126

+ Here is the call graph for this function: