Last change
on this file since 31659 was 31659, checked in by vboxsync, 14 years ago |
export Windows installer to OSE
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
2.3 KB
|
Line | |
---|
1 | #include "VariantHelper.h"
|
---|
2 |
|
---|
3 | std::string VariantTypeAsString(const VARIANT& v)
|
---|
4 | {
|
---|
5 | switch (v.vt)
|
---|
6 | {
|
---|
7 | case VT_UI1:
|
---|
8 | return "VT_UI1";
|
---|
9 |
|
---|
10 | case VT_I2:
|
---|
11 | return "VT_I2";
|
---|
12 |
|
---|
13 | case VT_I4:
|
---|
14 | return "VT_I4";
|
---|
15 |
|
---|
16 | case VT_R4:
|
---|
17 | return "VT_R4";
|
---|
18 |
|
---|
19 | case VT_R8:
|
---|
20 | return "VT_R8";
|
---|
21 |
|
---|
22 | case VT_BOOL:
|
---|
23 | return "VT_BOOL";
|
---|
24 |
|
---|
25 | case VT_ERROR:
|
---|
26 | return "VT_ERROR";
|
---|
27 |
|
---|
28 | case VT_CY:
|
---|
29 | return "VT_CY";
|
---|
30 |
|
---|
31 | case VT_DATE:
|
---|
32 | return "VT_DATE";
|
---|
33 |
|
---|
34 | case VT_BSTR:
|
---|
35 | return "VT_BSTR";
|
---|
36 |
|
---|
37 | case VT_BYREF|VT_DECIMAL:
|
---|
38 | return "VT_BYREF|VT_DECIMAL";
|
---|
39 |
|
---|
40 | case VT_UNKNOWN:
|
---|
41 | return "VT_UNKNOWN";
|
---|
42 |
|
---|
43 | case VT_DISPATCH:
|
---|
44 | return "VT_DISPATCH";
|
---|
45 |
|
---|
46 | //case VT_ARRAY|*:
|
---|
47 | //return "VT_ARRAY|*";
|
---|
48 |
|
---|
49 | case VT_BYREF|VT_UI1:
|
---|
50 | return "VT_BYREF|VT_UI1";
|
---|
51 |
|
---|
52 | case VT_BYREF|VT_I2:
|
---|
53 | return "VT_BYREF|VT_I2";
|
---|
54 |
|
---|
55 | case VT_BYREF|VT_I4:
|
---|
56 | return "VT_BYREF|VT_I4";
|
---|
57 |
|
---|
58 | case VT_BYREF|VT_R4:
|
---|
59 | return "VT_BYREF|VT_R4";
|
---|
60 |
|
---|
61 | case VT_BYREF|VT_R8:
|
---|
62 | return "VT_BYREF|VT_R8";
|
---|
63 |
|
---|
64 | case VT_BYREF|VT_BOOL:
|
---|
65 | return "VT_BYREF|VT_BOOL";
|
---|
66 |
|
---|
67 | case VT_BYREF|VT_ERROR:
|
---|
68 | return "VT_BYREF|VT_ERROR";
|
---|
69 |
|
---|
70 | case VT_BYREF|VT_CY:
|
---|
71 | return "VT_BYREF|VT_CY";
|
---|
72 |
|
---|
73 | case VT_BYREF|VT_DATE:
|
---|
74 | return "VT_BYREF|VT_DATE";
|
---|
75 |
|
---|
76 | case VT_BYREF|VT_BSTR:
|
---|
77 | return "VT_BYREF|VT_BSTR";
|
---|
78 |
|
---|
79 | case VT_BYREF|VT_UNKNOWN:
|
---|
80 | return "VT_BYREF|VT_UNKNOWN";
|
---|
81 |
|
---|
82 | case VT_BYREF|VT_DISPATCH:
|
---|
83 | return "VT_BYREF|VT_DISPATCH";
|
---|
84 |
|
---|
85 | //case VT_ARRAY|*:
|
---|
86 | //return "VT_ARRAY|*";
|
---|
87 |
|
---|
88 | case VT_BYREF|VT_VARIANT:
|
---|
89 | return "VT_BYREF|VT_VARIANT";
|
---|
90 |
|
---|
91 | //Generic case ByRef:
|
---|
92 | //return "ByRef";
|
---|
93 |
|
---|
94 | case VT_I1:
|
---|
95 | return "VT_I1";
|
---|
96 |
|
---|
97 | case VT_UI2:
|
---|
98 | return "VT_UI2";
|
---|
99 |
|
---|
100 | case VT_UI4:
|
---|
101 | return "VT_UI4";
|
---|
102 |
|
---|
103 | case VT_INT:
|
---|
104 | return "VT_INT";
|
---|
105 |
|
---|
106 | case VT_UINT:
|
---|
107 | return "VT_UINT";
|
---|
108 |
|
---|
109 | case VT_BYREF|VT_I1:
|
---|
110 | return "VT_BYREF|VT_I1";
|
---|
111 |
|
---|
112 | case VT_BYREF|VT_UI2:
|
---|
113 | return "VT_BYREF|VT_UI2";
|
---|
114 |
|
---|
115 | case VT_BYREF|VT_UI4:
|
---|
116 | return "VT_BYREF|VT_UI4";
|
---|
117 |
|
---|
118 | case VT_BYREF|VT_INT:
|
---|
119 | return "VT_BYREF|VT_INT";
|
---|
120 |
|
---|
121 | case VT_BYREF|VT_UINT:
|
---|
122 | return "VT_BYREF|VT_UINT";
|
---|
123 |
|
---|
124 | default:
|
---|
125 | return "Unknown type";
|
---|
126 |
|
---|
127 | }
|
---|
128 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.