cdev-1.7.2n

This commit is contained in:
2022-12-13 12:44:04 +01:00
commit b3b88fc333
1357 changed files with 338883 additions and 0 deletions

24
test/cdevDataTest2.cc Executable file
View File

@@ -0,0 +1,24 @@
#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();
}