rtlfield.hpp 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  1. /*##############################################################################
  2. HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. ############################################################################## */
  13. #ifndef rtlfield_hpp
  14. #define rtlfield_hpp
  15. #include "eclhelper.hpp"
  16. #include "eclrtl.hpp"
  17. /*
  18. The classes in this file are used to represent the type of various fields, and information about the fields.
  19. They are primarily designed to be used in generated code, so should have as little overhead as possible when used
  20. in that context. For that reason the classes have no destructors.
  21. The file rtldynfield contains classes which manage instances of these classes which are dynamically created.
  22. */
  23. size32_t ECLRTL_API getMinSize(const RtlFieldInfo * const * fields);
  24. // A base implementation of RtlTypeInfo
  25. struct ECLRTL_API RtlTypeInfoBase : public RtlTypeInfo
  26. {
  27. inline RtlTypeInfoBase(unsigned _fieldType, unsigned _length) : RtlTypeInfo(_fieldType, _length) {}
  28. virtual size32_t getMinSize() const;
  29. virtual size32_t size(const byte * self, const byte * selfrow) const;
  30. virtual size32_t process(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IFieldProcessor & target) const;
  31. virtual size32_t toXML(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IXmlWriter & target) const;
  32. virtual size32_t build(ARowBuilder &builder, size32_t offset, const RtlFieldInfo *field, IFieldSource &source) const;
  33. virtual const char * queryLocale() const;
  34. virtual const RtlFieldInfo * const * queryFields() const;
  35. virtual const RtlTypeInfo * queryChildType() const;
  36. };
  37. //-------------------------------------------------------------------------------------------------------------------
  38. struct ECLRTL_API RtlBoolTypeInfo : public RtlTypeInfoBase
  39. {
  40. inline RtlBoolTypeInfo(unsigned _fieldType, unsigned _length) : RtlTypeInfoBase(_fieldType, _length) {}
  41. virtual size32_t build(ARowBuilder &builder, size32_t offset, const RtlFieldInfo *field, IFieldSource &source) const;
  42. virtual size32_t process(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IFieldProcessor & target) const;
  43. virtual size32_t toXML(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IXmlWriter & target) const;
  44. virtual void getUtf8(size32_t & resultLen, char * & result, const void * ptr) const;
  45. virtual __int64 getInt(const void * ptr) const;
  46. };
  47. struct ECLRTL_API RtlRealTypeInfo : public RtlTypeInfoBase
  48. {
  49. inline RtlRealTypeInfo(unsigned _fieldType, unsigned _length) : RtlTypeInfoBase(_fieldType, _length) {}
  50. virtual size32_t build(ARowBuilder &builder, size32_t offset, const RtlFieldInfo *field, IFieldSource &source) const;
  51. virtual size32_t process(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IFieldProcessor & target) const;
  52. virtual size32_t toXML(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IXmlWriter & target) const;
  53. virtual void getUtf8(size32_t & resultLen, char * & result, const void * ptr) const;
  54. virtual __int64 getInt(const void * ptr) const;
  55. private:
  56. inline double value(const void * self) const;
  57. };
  58. //MORE: Create specialist versions
  59. struct ECLRTL_API RtlIntTypeInfo : public RtlTypeInfoBase
  60. {
  61. inline RtlIntTypeInfo(unsigned _fieldType, unsigned _length) : RtlTypeInfoBase(_fieldType, _length) {}
  62. virtual size32_t build(ARowBuilder &builder, size32_t offset, const RtlFieldInfo *field, IFieldSource &source) const;
  63. virtual size32_t process(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IFieldProcessor & target) const;
  64. virtual size32_t toXML(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IXmlWriter & target) const;
  65. virtual void getUtf8(size32_t & resultLen, char * & result, const void * ptr) const;
  66. virtual __int64 getInt(const void * ptr) const;
  67. };
  68. struct ECLRTL_API RtlSwapIntTypeInfo : public RtlTypeInfoBase
  69. {
  70. inline RtlSwapIntTypeInfo(unsigned _fieldType, unsigned _length) : RtlTypeInfoBase(_fieldType, _length) {}
  71. virtual size32_t build(ARowBuilder &builder, size32_t offset, const RtlFieldInfo *field, IFieldSource &source) const;
  72. virtual size32_t process(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IFieldProcessor & target) const;
  73. virtual size32_t toXML(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IXmlWriter & target) const;
  74. virtual void getUtf8(size32_t & resultLen, char * & result, const void * ptr) const;
  75. virtual __int64 getInt(const void * ptr) const;
  76. };
  77. struct ECLRTL_API RtlPackedIntTypeInfo : public RtlTypeInfoBase
  78. {
  79. inline RtlPackedIntTypeInfo(unsigned _fieldType, unsigned _length) : RtlTypeInfoBase(_fieldType, _length) {}
  80. virtual size32_t getMinSize() const;
  81. virtual size32_t size(const byte * self, const byte * selfrow) const;
  82. virtual size32_t build(ARowBuilder &builder, size32_t offset, const RtlFieldInfo *field, IFieldSource &source) const;
  83. virtual size32_t process(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IFieldProcessor & target) const;
  84. virtual size32_t toXML(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IXmlWriter & target) const;
  85. virtual void getUtf8(size32_t & resultLen, char * & result, const void * ptr) const;
  86. virtual __int64 getInt(const void * ptr) const;
  87. };
  88. struct ECLRTL_API RtlStringTypeInfo : public RtlTypeInfoBase
  89. {
  90. inline RtlStringTypeInfo(unsigned _fieldType, unsigned _length) : RtlTypeInfoBase(_fieldType, _length) {}
  91. virtual size32_t getMinSize() const;
  92. virtual size32_t size(const byte * self, const byte * selfrow) const;
  93. virtual size32_t build(ARowBuilder &builder, size32_t offset, const RtlFieldInfo *field, IFieldSource &source) const;
  94. virtual size32_t process(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IFieldProcessor & target) const;
  95. virtual size32_t toXML(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IXmlWriter & target) const;
  96. virtual void getUtf8(size32_t & resultLen, char * & result, const void * ptr) const;
  97. virtual __int64 getInt(const void * ptr) const;
  98. };
  99. struct ECLRTL_API RtlDataTypeInfo : public RtlTypeInfoBase
  100. {
  101. inline RtlDataTypeInfo(unsigned _fieldType, unsigned _length) : RtlTypeInfoBase(_fieldType, _length) {}
  102. virtual size32_t getMinSize() const;
  103. virtual size32_t size(const byte * self, const byte * selfrow) const;
  104. virtual size32_t build(ARowBuilder &builder, size32_t offset, const RtlFieldInfo *field, IFieldSource &source) const;
  105. virtual size32_t process(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IFieldProcessor & target) const;
  106. virtual size32_t toXML(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IXmlWriter & target) const;
  107. virtual void getUtf8(size32_t & resultLen, char * & result, const void * ptr) const;
  108. virtual __int64 getInt(const void * ptr) const;
  109. };
  110. struct ECLRTL_API RtlVarStringTypeInfo : public RtlTypeInfoBase
  111. {
  112. inline RtlVarStringTypeInfo(unsigned _fieldType, unsigned _length) : RtlTypeInfoBase(_fieldType, _length) {}
  113. virtual size32_t getMinSize() const;
  114. virtual size32_t size(const byte * self, const byte * selfrow) const;
  115. virtual size32_t build(ARowBuilder &builder, size32_t offset, const RtlFieldInfo *field, IFieldSource &source) const;
  116. virtual size32_t process(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IFieldProcessor & target) const;
  117. virtual size32_t toXML(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IXmlWriter & target) const;
  118. virtual void getUtf8(size32_t & resultLen, char * & result, const void * ptr) const;
  119. virtual __int64 getInt(const void * ptr) const;
  120. };
  121. struct ECLRTL_API RtlQStringTypeInfo : public RtlTypeInfoBase
  122. {
  123. inline RtlQStringTypeInfo(unsigned _fieldType, unsigned _length) : RtlTypeInfoBase(_fieldType, _length) {}
  124. virtual size32_t getMinSize() const;
  125. virtual size32_t size(const byte * self, const byte * selfrow) const;
  126. virtual size32_t build(ARowBuilder &builder, size32_t offset, const RtlFieldInfo *field, IFieldSource &source) const;
  127. virtual size32_t process(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IFieldProcessor & target) const;
  128. virtual size32_t toXML(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IXmlWriter & target) const;
  129. virtual void getUtf8(size32_t & resultLen, char * & result, const void * ptr) const;
  130. virtual __int64 getInt(const void * ptr) const;
  131. };
  132. struct ECLRTL_API RtlDecimalTypeInfo : public RtlTypeInfoBase
  133. {
  134. inline RtlDecimalTypeInfo(unsigned _fieldType, unsigned _length) : RtlTypeInfoBase(_fieldType, _length) {}
  135. virtual size32_t getMinSize() const;
  136. virtual size32_t size(const byte * self, const byte * selfrow) const;
  137. virtual size32_t build(ARowBuilder &builder, size32_t offset, const RtlFieldInfo *field, IFieldSource &source) const;
  138. virtual size32_t process(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IFieldProcessor & target) const;
  139. virtual size32_t toXML(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IXmlWriter & target) const;
  140. virtual void getUtf8(size32_t & resultLen, char * & result, const void * ptr) const;
  141. virtual __int64 getInt(const void * ptr) const;
  142. size32_t calcSize() const;
  143. };
  144. struct ECLRTL_API RtlCharTypeInfo : public RtlTypeInfoBase
  145. {
  146. inline RtlCharTypeInfo(unsigned _fieldType, unsigned _length) : RtlTypeInfoBase(_fieldType, _length) {}
  147. virtual size32_t build(ARowBuilder &builder, size32_t offset, const RtlFieldInfo *field, IFieldSource &source) const;
  148. virtual size32_t process(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IFieldProcessor & target) const;
  149. virtual size32_t toXML(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IXmlWriter & target) const;
  150. virtual void getUtf8(size32_t & resultLen, char * & result, const void * ptr) const;
  151. virtual __int64 getInt(const void * ptr) const;
  152. };
  153. struct ECLRTL_API RtlUnicodeTypeInfo : public RtlTypeInfoBase
  154. {
  155. public:
  156. inline RtlUnicodeTypeInfo(unsigned _fieldType, unsigned _length, const char * _locale) : RtlTypeInfoBase(_fieldType, _length), locale(_locale) {}
  157. virtual size32_t getMinSize() const;
  158. virtual size32_t size(const byte * self, const byte * selfrow) const;
  159. virtual size32_t build(ARowBuilder &builder, size32_t offset, const RtlFieldInfo *field, IFieldSource &source) const;
  160. virtual size32_t process(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IFieldProcessor & target) const;
  161. virtual size32_t toXML(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IXmlWriter & target) const;
  162. virtual void getUtf8(size32_t & resultLen, char * & result, const void * ptr) const;
  163. virtual __int64 getInt(const void * ptr) const;
  164. virtual const char * queryLocale() const { return locale; }
  165. protected:
  166. const char * locale;
  167. };
  168. struct ECLRTL_API RtlVarUnicodeTypeInfo : public RtlTypeInfoBase
  169. {
  170. public:
  171. inline RtlVarUnicodeTypeInfo(unsigned _fieldType, unsigned _length, const char * _locale) : RtlTypeInfoBase(_fieldType, _length), locale(_locale) {}
  172. virtual size32_t getMinSize() const;
  173. virtual size32_t size(const byte * self, const byte * selfrow) const;
  174. virtual size32_t build(ARowBuilder &builder, size32_t offset, const RtlFieldInfo *field, IFieldSource &source) const;
  175. virtual size32_t process(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IFieldProcessor & target) const;
  176. virtual size32_t toXML(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IXmlWriter & target) const;
  177. virtual void getUtf8(size32_t & resultLen, char * & result, const void * ptr) const;
  178. virtual __int64 getInt(const void * ptr) const;
  179. virtual const char * queryLocale() const { return locale; }
  180. protected:
  181. const char * locale;
  182. };
  183. struct ECLRTL_API RtlUtf8TypeInfo : public RtlTypeInfoBase
  184. {
  185. public:
  186. inline RtlUtf8TypeInfo(unsigned _fieldType, unsigned _length, const char * _locale) : RtlTypeInfoBase(_fieldType, _length), locale(_locale) {}
  187. virtual size32_t getMinSize() const;
  188. virtual size32_t size(const byte * self, const byte * selfrow) const;
  189. virtual size32_t build(ARowBuilder &builder, size32_t offset, const RtlFieldInfo *field, IFieldSource &source) const;
  190. virtual size32_t process(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IFieldProcessor & target) const;
  191. virtual size32_t toXML(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IXmlWriter & target) const;
  192. virtual void getUtf8(size32_t & resultLen, char * & result, const void * ptr) const;
  193. virtual __int64 getInt(const void * ptr) const;
  194. virtual const char * queryLocale() const { return locale; }
  195. protected:
  196. const char * locale;
  197. };
  198. struct ECLRTL_API RtlRecordTypeInfo : public RtlTypeInfoBase
  199. {
  200. inline RtlRecordTypeInfo(unsigned _fieldType, unsigned _length, const RtlFieldInfo * const * _fields) : RtlTypeInfoBase(_fieldType, _length), fields(_fields) {}
  201. const RtlFieldInfo * const * fields; // null terminated
  202. virtual size32_t getMinSize() const;
  203. virtual size32_t size(const byte * self, const byte * selfrow) const;
  204. virtual size32_t build(ARowBuilder &builder, size32_t offset, const RtlFieldInfo *field, IFieldSource &source) const;
  205. virtual size32_t process(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IFieldProcessor & target) const;
  206. virtual size32_t toXML(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IXmlWriter & target) const;
  207. virtual void getUtf8(size32_t & resultLen, char * & result, const void * ptr) const;
  208. virtual __int64 getInt(const void * ptr) const;
  209. virtual const RtlFieldInfo * const * queryFields() const { return fields; }
  210. };
  211. struct ECLRTL_API RtlCompoundTypeInfo : public RtlTypeInfoBase
  212. {
  213. inline RtlCompoundTypeInfo(unsigned _fieldType, unsigned _length, const RtlTypeInfo * _child) : RtlTypeInfoBase(_fieldType, _length), child(_child) {}
  214. virtual void getUtf8(size32_t & resultLen, char * & result, const void * ptr) const;
  215. virtual __int64 getInt(const void * ptr) const;
  216. virtual const RtlTypeInfo * queryChildType() const { return child; }
  217. const RtlTypeInfo * child;
  218. };
  219. struct ECLRTL_API RtlSetTypeInfo : public RtlCompoundTypeInfo
  220. {
  221. inline RtlSetTypeInfo(unsigned _fieldType, unsigned _length, const RtlTypeInfo * _child) : RtlCompoundTypeInfo(_fieldType, _length, _child) {}
  222. virtual size32_t getMinSize() const;
  223. virtual size32_t size(const byte * self, const byte * selfrow) const;
  224. virtual size32_t build(ARowBuilder &builder, size32_t offset, const RtlFieldInfo *field, IFieldSource &source) const;
  225. virtual size32_t process(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IFieldProcessor & target) const;
  226. virtual size32_t toXML(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IXmlWriter & target) const;
  227. };
  228. struct ECLRTL_API RtlRowTypeInfo : public RtlCompoundTypeInfo
  229. {
  230. inline RtlRowTypeInfo(unsigned _fieldType, unsigned _length, const RtlTypeInfo * _child) : RtlCompoundTypeInfo(_fieldType, _length, _child) {}
  231. virtual size32_t getMinSize() const;
  232. virtual size32_t size(const byte * self, const byte * selfrow) const;
  233. virtual size32_t process(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IFieldProcessor & target) const;
  234. virtual size32_t toXML(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IXmlWriter & target) const;
  235. };
  236. struct ECLRTL_API RtlDatasetTypeInfo : public RtlCompoundTypeInfo
  237. {
  238. inline RtlDatasetTypeInfo(unsigned _fieldType, unsigned _length, const RtlTypeInfo * _child) : RtlCompoundTypeInfo(_fieldType, _length, _child) {}
  239. virtual size32_t getMinSize() const;
  240. virtual size32_t size(const byte * self, const byte * selfrow) const;
  241. virtual size32_t build(ARowBuilder &builder, size32_t offset, const RtlFieldInfo *field, IFieldSource &source) const;
  242. virtual size32_t process(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IFieldProcessor & target) const;
  243. virtual size32_t toXML(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IXmlWriter & target) const;
  244. };
  245. struct ECLRTL_API RtlDictionaryTypeInfo : public RtlCompoundTypeInfo
  246. {
  247. inline RtlDictionaryTypeInfo(unsigned _fieldType, unsigned _length, const RtlTypeInfo * _child, IHThorHashLookupInfo *_hashInfo)
  248. : RtlCompoundTypeInfo(_fieldType|RFTMnoserialize, _length, _child), hashInfo(_hashInfo) {}
  249. IHThorHashLookupInfo * hashInfo;
  250. virtual size32_t getMinSize() const;
  251. virtual size32_t size(const byte * self, const byte * selfrow) const;
  252. virtual size32_t build(ARowBuilder &builder, size32_t offset, const RtlFieldInfo *field, IFieldSource &source) const;
  253. virtual size32_t process(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IFieldProcessor & target) const;
  254. virtual size32_t toXML(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IXmlWriter & target) const;
  255. };
  256. struct ECLRTL_API RtlIfBlockTypeInfo : public RtlTypeInfoBase
  257. {
  258. inline RtlIfBlockTypeInfo(unsigned _fieldType, unsigned _length, const RtlFieldInfo * const * _fields) : RtlTypeInfoBase(_fieldType|RFTMnoserialize, _length), fields(_fields) {}
  259. const RtlFieldInfo * const * fields; // null terminated
  260. virtual bool getCondition(const byte * selfrow) const = 0;
  261. virtual size32_t getMinSize() const;
  262. virtual size32_t size(const byte * self, const byte * selfrow) const;
  263. virtual size32_t process(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IFieldProcessor & target) const;
  264. virtual size32_t toXML(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IXmlWriter & target) const;
  265. virtual void getUtf8(size32_t & resultLen, char * & result, const void * ptr) const;
  266. virtual __int64 getInt(const void * ptr) const;
  267. virtual const RtlFieldInfo * const * queryFields() const { return fields; }
  268. };
  269. struct ECLRTL_API RtlBitfieldTypeInfo : public RtlTypeInfoBase
  270. {
  271. inline RtlBitfieldTypeInfo(unsigned _fieldType, unsigned _length) : RtlTypeInfoBase(_fieldType, _length) {}
  272. virtual size32_t getMinSize() const;
  273. virtual size32_t size(const byte * self, const byte * selfrow) const;
  274. virtual size32_t process(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IFieldProcessor & target) const;
  275. virtual size32_t toXML(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IXmlWriter & target) const;
  276. virtual void getUtf8(size32_t & resultLen, char * & result, const void * ptr) const;
  277. virtual __int64 getInt(const void * ptr) const;
  278. protected:
  279. __int64 signedValue(const void * self) const;
  280. unsigned __int64 unsignedValue(const void * self) const;
  281. };
  282. struct ECLRTL_API RtlUnimplementedTypeInfo : public RtlTypeInfoBase
  283. {
  284. inline RtlUnimplementedTypeInfo(unsigned _fieldType, unsigned _length) : RtlTypeInfoBase(_fieldType, _length) {}
  285. virtual size32_t getMinSize() const;
  286. virtual size32_t size(const byte * self, const byte * selfrow) const;
  287. virtual size32_t process(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IFieldProcessor & target) const;
  288. virtual size32_t toXML(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IXmlWriter & target) const;
  289. virtual void getUtf8(size32_t & resultLen, char * & result, const void * ptr) const;
  290. virtual __int64 getInt(const void * ptr) const;
  291. };
  292. /*
  293. struct ECLRTL_API RtlAlienTypeInfo : public RtlTypeInfoBase
  294. {
  295. public:
  296. inline RtlAlienTypeInfo(unsigned _fieldType, unsigned _length) : RtlTypeInfoBase(_fieldType, _length) {}
  297. virtual size32_t size(const byte * self, const byte * selfrow) const = 0;
  298. virtual size32_t process(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IFieldProcessor & target) const;
  299. virtual size32_t toXML(const byte * self, const byte * selfrow, const RtlFieldInfo * field, IXmlWriter & target) const;
  300. };
  301. */
  302. //-------------------------------------------------------------------------------------------------------------------
  303. struct ECLRTL_API RtlFieldStrInfo : public RtlFieldInfo
  304. {
  305. RtlFieldStrInfo(const char * _name, const char * _xpath, const RtlTypeInfo * _type);
  306. RtlFieldStrInfo(const char * _name, const char * _xpath, const RtlTypeInfo * _type, unsigned _flags);
  307. RtlFieldStrInfo(const char * _name, const char * _xpath, const RtlTypeInfo * _type, unsigned _flags, const char * _initializer);
  308. RtlFieldStrInfo(const char * _name, const char * _xpath, const RtlTypeInfo * _type, const char * _initializer); // So old WU dlls can load (and then fail) rather than failing to load.
  309. };
  310. #endif