Files
cdev-1.7.2n/test/cdevDataTest2.cc
2022-12-13 12:44:04 +01:00

25 lines
432 B
C++
Executable File

#include <cdevData.h>
#include "equal.h"
char * str[3] =
{
"This is the first string",
"This is the seconds string",
"This is the third string"
};
void main ()
{
char * binary;
size_t binaryLen;
cdevData data, data2;
data.insert("value", str, 1);
data.insert("status", str[0]);
data.insert("severity", str[1]);
data.asciiDump();
data.xdrExport(&binary, &binaryLen);
data2.xdrImport(binary, binaryLen);
data2.asciiDump();
}