37 int value_offset, delta_index, nmax, i;
40 if(
shmheader == NULL)
return "OPCXMLDA_ERROR";
49 if(strcmp(cptr,variable) == 0)
51 return cptr + value_offset;
56 return "OPCXMLDA_ERROR";
68 sscanf(cptr,
"%d",&ret);
80 if(isdigit(*cptr) || *cptr ==
'-')
83 sscanf(cptr,
"%f",&ret);
int writeFloatValue(const char *variable, float value)
rlOpcXmlDa(const char *mailbox="c:\utomation\bx\pcxmlda.mbx", const char *shared_memory="c:\utomation\hm\pcxmlda.shm", long shared_memory_size=65536)
const char * stringValue(const char *variable)
float floatValue(const char *variable)
int writeIntValue(const char *variable, int value)
int printf(const char *format,...)
int writeStringValue(const char *variable, const char *value)
int intValue(const char *variable)