FACT++  1.0
void DimInfo::infoHandler ( )
virtual

Implements DimInfoHandler.

Reimplemented in TestGetService, DnsInfo, ComplexService, DimDoubleArray, StrService, StrService, BridgeService, SimpleService, Service, DimVersion, and Service.

Definition at line 68 of file diccpp.cxx.

References data, DimClient::getNoDataCopy(), itsData, itsDataSize, and itsSize.

Referenced by user_routine().

69 {
70  char *data;
71  if(DimClient::getNoDataCopy() == 1)
72  {
73  data = (char *)itsData;
74  if(!itsDataSize)
75  {
76  itsData = new char[itsSize];
78  }
79  else if(itsDataSize < itsSize)
80  {
81  delete[] (char *)(itsData);
82  itsData = new char[itsSize];
84  }
85  memcpy(itsData, data, (size_t)itsSize);
86  }
87 }
int itsSize
Definition: dic.hxx:99
void * itsData
Definition: dic.hxx:97
static int getNoDataCopy()
Definition: diccpp.cxx:1241
float data[4 *1440]
int itsDataSize
Definition: dic.hxx:98

+ Here is the call graph for this function:

+ Here is the caller graph for this function: