git-svn-id: svn://db.shs.com.ru/pip@298 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2016-12-15 08:30:17 +00:00
parent 7a83933934
commit 9e6cdee552
3 changed files with 44 additions and 6 deletions

View File

@@ -16,12 +16,11 @@ int main(int argc, char *argv[]) {
s.text = "123";
s.i = -1;
PIVariant v = PIVariant::fromValue(s);
piCout << v;
s1 = v.value<__S__>();
piCout << s1.text << s1.i << v.value<int>();
PIPropertyStorage ps;
piForeachC (PIPropertyStorage::Property & p, ps)
;
PIByteArray ba;
ba << v;
PIVariant v1;
ba >> v1;
piCout << v1;
return 0;
}