#include <cogent.h>
int DH_FormatPoint(char* command, IP_Task* myself, PT_pCPOINT ppoint, char* buf, int len, int flags );
| PT_FMT_ASCII | Constructs a humanly readable ASCII string (the default). |
| PT_FMT_BINARY | Encodes data as a raw binary representation, efficient for parsing. |
| PT_FMT_HEX | Encodes data as ASCII encoded hex. (This is not a valuable format since it is more difficult to parse and less space efficient than binary, and it is more difficult for humans to read than regular ASCII.) |
| PT_FMT_POINT_SECURITY | Takes a security value from the point structure, not a task structure. |
This function takes a point structure and creates an ASCII representation of data for the point in the buf buffer. The data is represented as a list, in this format:
(command pointname type value conf security locked seconds nanoseconds)
![]() | The resulting buffer can be passed back to DH_ParsePointString, which would parse it back out. It infers the flag. |
Copyright © 1995-2006 by Cogent Real-Time Systems, Inc. All rights reserved.