git-svn-id: svn://db.shs.com.ru/pip@298 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
11
main.cpp
11
main.cpp
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user