home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv4.zip / VACPP / IBMCPP / HELP / CPPDAT.INF (.txt) < prev    next >
OS/2 Help File  |  1995-05-24  |  384KB  |  17,145 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Data Type and Exception Classes ΓòÉΓòÉΓòÉ
  3.  
  4. Provide support for the exceptions, trace output, messages, strings, and 
  5. notifications used by the applications you develop. 
  6.  
  7.  
  8. ΓòÉΓòÉΓòÉ 1.1. Class Hierarchy ΓòÉΓòÉΓòÉ
  9.  
  10. IBase
  11.  Γö£ΓöÇIBitFlag
  12.  Γö£ΓöÇIDate
  13.  Γö£ΓöÇINotificationEvent
  14.  Γö£ΓöÇIPair
  15.  Γöé  Γö£ΓöÇIPoint
  16.  Γöé  Γö£ΓöÇIRange
  17.  Γöé  ΓööΓöÇISize
  18.  Γö£ΓöÇIPointArray
  19.  Γö£ΓöÇIRectangle
  20.  Γö£ΓöÇIReference
  21.  Γö£ΓöÇIString
  22.  Γöé  ΓööΓöÇI0String
  23.  Γö£ΓöÇIStringParser
  24.  Γö£ΓöÇIStringParser::SkipWords
  25.  Γö£ΓöÇITime
  26.  ΓööΓöÇIVBase
  27.     Γö£ΓöÇIObserverList::Cursor
  28.     Γö£ΓöÇIBuffer
  29.     Γöé  ΓööΓöÇIDBCSBuffer
  30.     Γö£ΓöÇIErrorInfo
  31.     Γöé  Γö£ΓöÇICLibErrorInfo
  32.     Γöé  Γö£ΓöÇIGUIErrorInfo
  33.     Γöé  Γö£ΓöÇISystemErrorInfo
  34.     Γöé  ΓööΓöÇIXLibErrorInfo
  35.     Γö£ΓöÇINotifier
  36.     Γöé  ΓööΓöÇIStandardNotifier
  37.     Γö£ΓöÇIObserver
  38.     Γö£ΓöÇIObserverList
  39.     Γö£ΓöÇIRefCounted
  40.     Γö£ΓöÇIStringTest
  41.     Γöé  ΓööΓöÇIStringTestMemberFn
  42.     ΓööΓöÇITrace
  43. IException
  44.  Γö£ΓöÇIAccessError
  45.  Γö£ΓöÇIAssertionFailure
  46.  Γö£ΓöÇIDeviceError
  47.  Γö£ΓöÇIInvalidParameter
  48.  Γö£ΓöÇIInvalidRequest
  49.  ΓööΓöÇIResourceExhausted
  50.     Γö£ΓöÇIOutOfMemory
  51.     Γö£ΓöÇIOutOfSystemResource
  52.     ΓööΓöÇIOutOfWindowResource
  53. IExceptionLocation
  54. IMessageText
  55. IStringEnum
  56. IException::TraceFn
  57. IBase::Version
  58.  
  59.  
  60. ΓòÉΓòÉΓòÉ 1.2. I0String ΓòÉΓòÉΓòÉ
  61.  
  62. Description 
  63.  
  64. Derivation 
  65.  
  66. Constructors 
  67.  
  68. Public Functions 
  69.  
  70. Protected Functions 
  71.  
  72. Public Data 
  73.  
  74. Protected Data 
  75.  
  76. Public Data includes Styles and Notification IDs if they exist. 
  77.  
  78. To close all the panels in a chapter, double click on this panel's system menu. 
  79.  
  80.  
  81. ΓòÉΓòÉΓòÉ <hidden> Derivation - I0String ΓòÉΓòÉΓòÉ
  82.  
  83. IBase
  84.   Γöé
  85. IString
  86.   Γöé
  87. I0String
  88.  
  89. Inherited by none. 
  90.  
  91.  
  92. ΓòÉΓòÉΓòÉ <hidden> Class Description - I0String ΓòÉΓòÉΓòÉ
  93.  
  94. i0string.hpp 
  95.  
  96. Objects of the I0String class are functionally equivalent to objects of the 
  97. class IStringwith one major distinction: I0Strings are indexed starting at 0 
  98. instead of 1. 
  99.  
  100. Note:  A consequence of starting indexes at 0 is that you can no longer use the 
  101.        search functions as if they were Boolean. For example: 
  102.  
  103.               a0String.indexOf( anotherString ) != a0String.includes( anotherString ).
  104.  
  105. You can freely intermix IStrings and I0Strings in a program. You can assign 
  106. objects of one class values of the other type. You can pass objects of either 
  107. class as parameters to functions requiring the other type. 
  108.  
  109. Warning: UINT_MAX is a reserved value for I0String. If you use UINT_MAX for the 
  110. startPos parameter in I0String functions, unpredictable results can occur. 
  111.  
  112.  
  113. ΓòÉΓòÉΓòÉ <hidden> Public Functions - I0String ΓòÉΓòÉΓòÉ
  114.  
  115. Constructors
  116. I0String
  117. ~I0String
  118.  
  119. Editing
  120. change
  121. insert
  122. overlayWith
  123. remove
  124.  
  125. Queries
  126. charType
  127. operator []
  128. subString
  129.  
  130. Searches
  131. indexOf
  132. indexOfAnyBut
  133. indexOfAnyOf
  134. lastIndexOf
  135. lastIndexOfAnyBut
  136. lastIndexOfAnyOf
  137. occurrencesOf
  138.  
  139. Word Operations
  140. indexOfPhrase
  141. indexOfWord
  142.  
  143. Inherited Members
  144. IString
  145. asDebugInfo
  146. asDouble
  147. asInt
  148. asString
  149. asUnsigned
  150. b2c
  151. b2d
  152. b2x
  153. c2b
  154. c2d
  155. c2x
  156. center
  157. change
  158. charType
  159. copy
  160. d2b
  161. d2c
  162. d2x
  163. includes
  164. includesDBCS
  165. includesMBCS
  166. includesSBCS
  167. indexOf
  168. indexOfAnyBut
  169. indexOfAnyOf
  170. indexOfPhrase
  171. indexOfWord
  172. insert
  173. isAbbreviationFor
  174. isAlphabetic
  175. isAlphanumeric
  176. isASCII
  177. isBinaryDigits
  178. isControl
  179. isDBCS
  180. isDigits
  181. isGraphics
  182. isHexDigits
  183. isLike
  184. isLowerCase
  185. isMBCS
  186. isPrintable
  187. isPunctuation
  188. isSBCS
  189. isUpperCase
  190. isValidDBCS
  191. isValidMBCS
  192. isWhiteSpace
  193. lastIndexOf
  194. lastIndexOfAnyBut
  195. lastIndexOfAnyOf
  196. leftJustify
  197. length
  198. lengthOfWord
  199. lineFrom
  200. lowerCase
  201. numWords
  202. occurrencesOf
  203. operator &
  204. operator &=
  205. operator +
  206. operator +=
  207. operator =
  208. operator char *
  209. operator signed char *
  210. operator unsigned char *
  211. operator []
  212. operator ^
  213. operator ^=
  214. operator |
  215. operator |=
  216. operator ~
  217. overlayWith
  218. remove
  219. removeWords
  220. reverse
  221. rightJustify
  222. size
  223. space
  224. strip
  225. stripBlanks
  226. stripLeading
  227. stripLeadingBlanks
  228. stripTrailing
  229. stripTrailingBlanks
  230. subString
  231. translate
  232. upperCase
  233. word
  234. wordIndexOfPhrase
  235. words
  236. x2b
  237. x2c
  238. x2d
  239.  
  240. IBase
  241. asDebugInfo
  242. asString
  243. messageFile
  244. messageText
  245. setMessageFile
  246. version
  247.  
  248.  
  249. ΓòÉΓòÉΓòÉ <hidden> I0String - Constructors ΓòÉΓòÉΓòÉ
  250.  
  251. You can construct objects of this class in the following ways: 
  252.  
  253.     Construct a NULL string. 
  254.  
  255.     Construct a string with the ASCII representation of a given numeric value, 
  256.      supporting all variations of integer and double. 
  257.  
  258.     Construct a string with a copy of the specified character data, supporting 
  259.      ASCIIZ strings, characters, and IStrings. The character data passed is 
  260.      converted to its ASCII representation. 
  261.  
  262.     Construct a string with contents that consist of copies of up to three 
  263.      buffers of arbitrary data (void*). Optionally, you only need to provide 
  264.      the length, in which case the IString contents are initialized to a 
  265.      specified pad character. The default character is a blank. 
  266.  
  267. These constructors can throw exceptions under the following conditions: 
  268.  
  269.     Memory allocation errors 
  270.  
  271.      Many factors dynamically allocate space and these allocation requests may 
  272.      fail. If so, the User Interface Class Library translates memory allocation 
  273.      errors into exceptions. Generally, such errors do not occur until you 
  274.      allocate an astronomical amount of storage. 
  275.  
  276.     Out-of-range errors 
  277.  
  278.      These occur if you attempt to construct an IString with a length greater 
  279.      than UINT_MAX. 
  280.  
  281.  
  282. ΓòÉΓòÉΓòÉ <hidden> I0String - Editing ΓòÉΓòÉΓòÉ
  283.  
  284. These members are reimplemented to treat the position arguments as 0-based. 
  285.  
  286.  
  287. ΓòÉΓòÉΓòÉ <hidden> I0String - Index Mapping ΓòÉΓòÉΓòÉ
  288.  
  289. Use these members to convert arguments and results to the proper index base: 1 
  290. for arguments (because it relies on IString) and 0 for results (because it is 0 
  291. based itself). 
  292.  
  293.  
  294. ΓòÉΓòÉΓòÉ <hidden> I0String - Queries ΓòÉΓòÉΓòÉ
  295.  
  296. These members are overridden to permit specification of the index as a 0-based 
  297. value. 
  298.  
  299.  
  300. ΓòÉΓòÉΓòÉ <hidden> I0String - Searches ΓòÉΓòÉΓòÉ
  301.  
  302. These members are reimplemented to treat the starting position of the search as 
  303. a 0-based index. 
  304.  
  305.  
  306. ΓòÉΓòÉΓòÉ <hidden> I0String - Word Operations ΓòÉΓòÉΓòÉ
  307.  
  308. These members are reimplemented to treat the result index as 0-based. 
  309.  
  310.  
  311. ΓòÉΓòÉΓòÉ <hidden> Protected Functions - I0String ΓòÉΓòÉΓòÉ
  312.  
  313. Index Mapping
  314. adjustArg
  315. adjustResult
  316.  
  317. Inherited Members
  318. IString
  319. applyBitOp
  320. buffer
  321. change
  322. data
  323. defaultBuffer
  324. findPhrase
  325. indexOfWord
  326. initBuffer
  327. insert
  328. isAbbrevFor
  329. isLike
  330. lengthOf
  331. occurrencesOf
  332. overlayWith
  333. setBuffer
  334. strip
  335. translate
  336.  
  337.  
  338. ΓòÉΓòÉΓòÉ <hidden> Public Data - I0String ΓòÉΓòÉΓòÉ
  339.  
  340. Searches
  341. notFound
  342.  
  343.  
  344. ΓòÉΓòÉΓòÉ <hidden> Protected Data - I0String ΓòÉΓòÉΓòÉ
  345.  
  346. Inherited Members
  347. IString
  348. maxLong
  349. null
  350. nullBuffer
  351. zero
  352.  
  353. IBase
  354. recoverable
  355. unrecoverable
  356.  
  357.  
  358. ΓòÉΓòÉΓòÉ 1.2.1. I0String::adjustArg ΓòÉΓòÉΓòÉ
  359.  
  360. Adjusts the specified index from 0- to 1-based. 
  361.  
  362. protected:
  363. static unsigned adjustArg(unsigned index);
  364.  
  365.  
  366. ΓòÉΓòÉΓòÉ 1.2.2. I0String::adjustResult ΓòÉΓòÉΓòÉ
  367.  
  368. Adjusts a function result from 1- to 0-based. 
  369.  
  370. protected:
  371. static unsigned adjustResult(unsigned index);
  372.  
  373.  
  374. ΓòÉΓòÉΓòÉ 1.2.3. I0String::change ΓòÉΓòÉΓòÉ
  375.  
  376. Changes occurrences of a specified pattern to a specified replacement string. 
  377. You can specify the number of changes to perform. The default is to change all 
  378. occurrences of the pattern. You can also specify the position in the receiver 
  379. at which to begin. 
  380.  
  381. The parameters are the following: 
  382.  
  383. inputString The pattern string as a reference to an object of type IString. The 
  384.           library searches for the pattern string within the receiver's data. 
  385.  
  386. pInputString The pattern string as NULL-terminated string. The library searches 
  387.           for the pattern string within the receiver's data. 
  388.  
  389. outputString The replacement string as a reference to an object of type 
  390.           IString. It replaces the occurrences of the pattern string in the 
  391.           receiver's data. 
  392.  
  393. pOutputString The replacement string as a NULL-terminated string. It replaces 
  394.           the occurrences of the pattern string in the receiver's data. 
  395.  
  396. startPos  The position to start the search at within the receiver's data. The 
  397.           default is 0. 
  398.  
  399. numChanges The number of patterns to search for and change. The default is 
  400.           UINT_MAX, which causes changes to all occurrences of the pattern. 
  401.  
  402. Overload 1 
  403.  
  404. public:
  405. I0String&
  406.   change( const IString& aPattern,
  407.           const char* pReplacement,
  408.           unsigned startPos = 0,
  409.           unsigned numChanges = ( unsigned ) UINT_MAX);
  410.  
  411. Overload 2 
  412.  
  413. public:
  414. I0String&
  415.   change( const IString& aPattern,
  416.           const IString& aReplacement,
  417.           unsigned startPos = 0,
  418.           unsigned numChanges = ( unsigned ) UINT_MAX);
  419.  
  420. Overload 3 
  421.  
  422. public:
  423. I0String&
  424.   change( const char* pPattern,
  425.           const IString& aReplacement,
  426.           unsigned startPos = 0,
  427.           unsigned numChanges = ( unsigned ) UINT_MAX);
  428.  
  429. Overload 4 
  430.  
  431. public:
  432. I0String&
  433.   change( const char* pPattern,
  434.           const char* pReplacement,
  435.           unsigned startPos = 0,
  436.           unsigned numChanges = ( unsigned ) UINT_MAX);
  437.  
  438. Overload 5 
  439.  
  440. public:
  441. static I0String
  442.   change( const IString& aString,
  443.           const IString& inputString,
  444.           const IString& outputString,
  445.           unsigned startPos = 0,
  446.           unsigned numChanges = ( unsigned ) UINT_MAX);
  447.  
  448. Overload 6 
  449.  
  450. public:
  451. static I0String
  452.   change( const IString& aString,
  453.           const IString& inputString,
  454.           const char* pOutputString,
  455.           unsigned startPos = 0,
  456.           unsigned numChanges = ( unsigned ) UINT_MAX);
  457.  
  458. Overload 7 
  459.  
  460. public:
  461. static I0String
  462.   change( const IString& aString,
  463.           const char* pInputString,
  464.           const IString& outputString,
  465.           unsigned startPos = 0,
  466.           unsigned numChanges = ( unsigned ) UINT_MAX);
  467.  
  468. Overload 8 
  469.  
  470. public:
  471. static I0String
  472.   change( const IString& aString,
  473.           const char* pInputString,
  474.           const char* pOutputString,
  475.           unsigned startPos = 0,
  476.           unsigned numChanges = ( unsigned ) UINT_MAX);
  477.  
  478.  
  479. ΓòÉΓòÉΓòÉ 1.2.4. I0String::charType ΓòÉΓòÉΓòÉ
  480.  
  481. Returns the type of the character at the specified index. 
  482.  
  483. public:
  484. IStringEnum::CharType charType(unsigned index) const;
  485.  
  486.  
  487. ΓòÉΓòÉΓòÉ 1.2.5. I0String::I0String ΓòÉΓòÉΓòÉ
  488.  
  489. You can construct objects of this class in the following ways: 
  490.  
  491.     Construct a NULL string. 
  492.  
  493.     Construct a string with the ASCII representation of a given numeric value, 
  494.      supporting all variations of integer and double. 
  495.  
  496.     Construct a string with a copy of the specified character data, supporting 
  497.      ASCIIZ strings, characters, and IStrings. The character data passed is 
  498.      converted to its ASCII representation. 
  499.  
  500.     Construct a string with contents that consist of copies of up to three 
  501.      buffers of arbitrary data (void*). Optionally, you only need to provide 
  502.      the length, in which case the IString contents are initialized to a 
  503.      specified pad character. The default character is a blank. 
  504.  
  505. These constructors can throw exceptions under the following conditions: 
  506.  
  507.     Memory allocation errors 
  508.  
  509.      Many factors dynamically allocate space and these allocation requests may 
  510.      fail. If so, the User Interface Class Library translates memory allocation 
  511.      errors into exceptions. Generally, such errors do not occur until you 
  512.      allocate an astronomical amount of storage. 
  513.  
  514.     Out-of-range errors 
  515.  
  516.      These occur if you attempt to construct an IString with a length greater 
  517.      than UINT_MAX. 
  518.  
  519. Overload 1 
  520.  
  521. public:
  522. I0String(char);
  523.  
  524. Construct a string with a copy of the character. The string length is set to 1. 
  525.  
  526. Overload 2 
  527.  
  528. public:
  529. I0String();
  530.  
  531. Construct a NULL string. 
  532.  
  533. Overload 3 
  534.  
  535. public:
  536. I0String(const IString& aString);
  537.  
  538. Construct a string with a copy of the specified IString. 
  539.  
  540. Overload 4 
  541.  
  542. public:
  543. I0String(int);
  544.  
  545. Construct a string with the ASCII representation of an integer numeric value. 
  546.  
  547. Overload 5 
  548.  
  549. public:
  550. I0String(unsigned);
  551.  
  552. Construct a string with the ASCII representation of an unsigned numeric value. 
  553.  
  554. Overload 6 
  555.  
  556. public:
  557. I0String(long);
  558.  
  559. Construct a string with the ASCII representation of a long numeric value. 
  560.  
  561. Overload 7 
  562.  
  563. public:
  564. I0String(unsigned long);
  565.  
  566. Construct a string with the ASCII representation of an unsigned long numeric 
  567. value. 
  568.  
  569. Overload 8 
  570.  
  571. public:
  572. I0String(short);
  573.  
  574. Construct a string with the ASCII representation of a short numeric value. 
  575.  
  576. Overload 9 
  577.  
  578. public:
  579. I0String(unsigned short);
  580.  
  581. Construct a string with the ASCII representation of an unsigned short numeric 
  582. value. 
  583.  
  584. Overload 10 
  585.  
  586. public:
  587. I0String(double);
  588.  
  589. Construct a string with the ASCII representation of a double numeric value. 
  590.  
  591. Overload 11 
  592.  
  593. public:
  594. I0String(unsigned char);
  595.  
  596. Construct a string with a copy of the unsigned character. The string length is 
  597. set to 1. 
  598.  
  599. Overload 12 
  600.  
  601. public:
  602. I0String(signed char);
  603.  
  604. Construct a string with a copy of the signed character. The string length is 
  605. set to 1. 
  606.  
  607. Overload 13 
  608.  
  609. public:
  610. I0String(const char*);
  611.  
  612. Construct a string with a copy of the specified ASCIIZ string. 
  613.  
  614. Overload 14 
  615.  
  616. public:
  617. I0String(const unsigned char*);
  618.  
  619. Construct a string with a copy of the specified unsigned ASCIIZ string. 
  620.  
  621. Overload 15 
  622.  
  623. public:
  624. I0String(const signed char*);
  625.  
  626. Construct a string with a copy of the specified signed ASCIIZ string. 
  627.  
  628. Overload 16 
  629.  
  630. public:
  631. I0String( const void* pBuffer1,
  632.           unsigned lenBuffer1,
  633.           char padCharacter = ' ');
  634.  
  635. Construct a string with contents from one buffer of arbitrary data (void*). 
  636.  
  637. Overload 17 
  638.  
  639. public:
  640. I0String( const void* pBuffer1,
  641.           unsigned lenBuffer1,
  642.           const void* pBuffer2,
  643.           unsigned lenBuffer2,
  644.           char padCharacter = ' ');
  645.  
  646. Construct a string with contents from two buffers of arbitrary data (void*). 
  647.  
  648. Overload 18 
  649.  
  650. public:
  651. I0String( const void* pBuffer1,
  652.           unsigned lenBuffer1,
  653.           const void* pBuffer2,
  654.           unsigned lenBuffer2,
  655.           const void* pBuffer3,
  656.           unsigned lenBuffer3,
  657.           char padCharacter = ' ');
  658.  
  659. Construct a string with contents from three buffers of arbitrary data (void*). 
  660.  
  661.  
  662. ΓòÉΓòÉΓòÉ 1.2.6. I0String::indexOf ΓòÉΓòÉΓòÉ
  663.  
  664. Returns the byte index of the first occurrence of the specified string within 
  665. the receiver. If there are no occurrences, 0 is returned. In addition to 
  666. IStrings, you can also specify a single character or an IStringTest. 
  667.  
  668. Overload 1 
  669.  
  670. public:
  671. unsigned
  672.   indexOf( const char* pString,
  673.            unsigned startPos = 0) const;
  674.  
  675. Overload 2 
  676.  
  677. public:
  678. unsigned
  679.   indexOf( const IString& aString,
  680.            unsigned startPos = 0) const;
  681.  
  682. Overload 3 
  683.  
  684. public:
  685. unsigned
  686.   indexOf( char aCharacter,
  687.            unsigned startPos = 0) const;
  688.  
  689. Overload 4 
  690.  
  691. public:
  692. unsigned
  693.   indexOf( const IStringTest& aTest,
  694.            unsigned startPos = 0) const;
  695.  
  696.  
  697. ΓòÉΓòÉΓòÉ 1.2.7. I0String::indexOfAnyBut ΓòÉΓòÉΓòÉ
  698.  
  699. Returns the index of the first character of the receiver that is not in the 
  700. specified set of characters. If there are no characters, 0 is returned. 
  701. Alternatively, this function returns the index of the first character that 
  702. fails the test prescribed by a specified IStringTestobject. 
  703.  
  704. Overload 1 
  705.  
  706. public:
  707. unsigned
  708.   indexOfAnyBut( const IString& aString,
  709.                  unsigned startPos = 0) const;
  710.  
  711. Overload 2 
  712.  
  713. public:
  714. unsigned
  715.   indexOfAnyBut( const char* pValidChars,
  716.                  unsigned startPos = 0) const;
  717.  
  718. Overload 3 
  719.  
  720. public:
  721. unsigned
  722.   indexOfAnyBut( char validChar,
  723.                  unsigned startPos = 0) const;
  724.  
  725. Overload 4 
  726.  
  727. public:
  728. unsigned
  729.   indexOfAnyBut( const IStringTest& aTest,
  730.                  unsigned startPos = 0) const;
  731.  
  732.  
  733. ΓòÉΓòÉΓòÉ 1.2.8. I0String::indexOfAnyOf ΓòÉΓòÉΓòÉ
  734.  
  735. Returns the index of the first character of the receiver that is a character in 
  736. the specified set of characters. If there are no characters, 0 is returned. 
  737. Alternatively, this function returns the index of the first character that 
  738. passes the test prescribed by a specified IStringTestobject. 
  739.  
  740. Overload 1 
  741.  
  742. public:
  743. unsigned
  744.   indexOfAnyOf( const char* pSearchChars,
  745.                 unsigned startPos = 0) const;
  746.  
  747. Overload 2 
  748.  
  749. public:
  750. unsigned
  751.   indexOfAnyOf( const IString& searchChars,
  752.                 unsigned startPos = 0) const;
  753.  
  754. Overload 3 
  755.  
  756. public:
  757. unsigned
  758.   indexOfAnyOf( char searchChar,
  759.                 unsigned startPos = 0) const;
  760.  
  761. Overload 4 
  762.  
  763. public:
  764. unsigned
  765.   indexOfAnyOf( const IStringTest& aTest,
  766.                 unsigned startPos = 0) const;
  767.  
  768.  
  769. ΓòÉΓòÉΓòÉ 1.2.9. I0String::indexOfPhrase ΓòÉΓòÉΓòÉ
  770.  
  771. Returns the position of the first occurrence of the specified phrase in the 
  772. receiver. If the phrase is not found, 0 is returned. 
  773.  
  774. public:
  775. unsigned
  776.   indexOfPhrase( const IString& wordString,
  777.                  unsigned startWord = 1) const;
  778.  
  779.  
  780. ΓòÉΓòÉΓòÉ 1.2.10. I0String::indexOfWord ΓòÉΓòÉΓòÉ
  781.  
  782. Returns the index of the specified white-space-delimited word in the receiver. 
  783. If the word is not found, 0 is returned. 
  784.  
  785. public:
  786. unsigned indexOfWord(unsigned wordNumber) const;
  787.  
  788.  
  789. ΓòÉΓòÉΓòÉ 1.2.11. I0String::insert ΓòÉΓòÉΓòÉ
  790.  
  791. Inserts the specified string at the specified location. 
  792.  
  793. Overload 1 
  794.  
  795. public:
  796. static I0String
  797.   insert( const IString& aString,
  798.           const char* pInsert,
  799.           unsigned index = ( unsigned ) UINT_MAX,
  800.           char padCharacter = ' ');
  801.  
  802. Overload 2 
  803.  
  804. public:
  805. I0String&
  806.   insert( const IString& aString,
  807.           unsigned index = ( unsigned ) UINT_MAX,
  808.           char padCharacter = ' ');
  809.  
  810. Overload 3 
  811.  
  812. public:
  813. I0String&
  814.   insert( const char* pString,
  815.           unsigned index = ( unsigned ) UINT_MAX,
  816.           char padCharacter = ' ');
  817.  
  818. Overload 4 
  819.  
  820. public:
  821. static I0String
  822.   insert( const IString& aString,
  823.           const IString& anInsert,
  824.           unsigned index = ( unsigned ) UINT_MAX,
  825.           char padCharacter = ' ');
  826.  
  827.  
  828. ΓòÉΓòÉΓòÉ 1.2.12. I0String::lastIndexOf ΓòÉΓòÉΓòÉ
  829.  
  830. Returns the index of the last occurrence of the specified string or character. 
  831. The search starts at the position specified by startPos (inclusive) and 
  832. proceeds backward. The returned value is in the range 0 <= x <= startPos or 
  833. I0String::notFound. The default of UINT_MAX-1 starts the search at the end of 
  834. the receiver's string. If the search target is not found, 0 is returned. 
  835.  
  836. If you specify 0 for startPos, the search starts at the beginning of the 
  837. string. Therefore, because the search proceeds backward from its starting 
  838. position, in this case the search target must occur at the beginning of the 
  839. string for it to be found. 
  840.  
  841. Overload 1 
  842.  
  843. public:
  844. unsigned
  845.   lastIndexOf( const char* pString,
  846.                unsigned endPos = ( unsigned ) ( UINT_MAX - 1 )) const;
  847.  
  848. Overload 2 
  849.  
  850. public:
  851. unsigned
  852.   lastIndexOf( const IString& aString,
  853.                unsigned endPos = ( unsigned ) ( UINT_MAX - 1 )) const;
  854.  
  855. Overload 3 
  856.  
  857. public:
  858. unsigned
  859.   lastIndexOf( char aCharacter,
  860.                unsigned endPos = ( unsigned ) ( UINT_MAX - 1 )) const;
  861.  
  862. Overload 4 
  863.  
  864. public:
  865. unsigned
  866.   lastIndexOf( const IStringTest& aTest,
  867.                unsigned startPos = ( unsigned ) ( UINT_MAX - 1 )) const;
  868.  
  869.  
  870. ΓòÉΓòÉΓòÉ 1.2.13. I0String::lastIndexOfAnyBut ΓòÉΓòÉΓòÉ
  871.  
  872. Returns the index of the last character not in the specified string or 
  873. character. The search starts at the position specified by startPos (inclusive) 
  874. and proceeds backward. The default of UINT_MAX-1 starts the search at the end 
  875. of the receiver's string. If the search target is not found, 0 is returned. 
  876.  
  877. If you specify 0 for startPos, the search starts at the beginning of the 
  878. string. Therefore, because the search proceeds backward from its starting 
  879. position, in this case the search target must occur at the beginning of the 
  880. string for it to be found. 
  881.  
  882. Overload 1 
  883.  
  884. public:
  885. unsigned
  886.   lastIndexOfAnyBut( const IStringTest& aTest,
  887.                      unsigned endPos = ( unsigned ) ( UINT_MAX - 1 )) const;
  888.  
  889. Overload 2 
  890.  
  891. public:
  892. unsigned
  893.   lastIndexOfAnyBut( const IString& validChars,
  894.                      unsigned endPos = ( unsigned ) ( UINT_MAX - 1 )) const;
  895.  
  896. Overload 3 
  897.  
  898. public:
  899. unsigned
  900.   lastIndexOfAnyBut( const char* pValidChars,
  901.                      unsigned endPos = ( unsigned ) ( UINT_MAX - 1 )) const;
  902.  
  903. Overload 4 
  904.  
  905. public:
  906. unsigned
  907.   lastIndexOfAnyBut( char validChar,
  908.                      unsigned startPos = ( unsigned ) ( UINT_MAX - 1 )) const;
  909.  
  910.  
  911. ΓòÉΓòÉΓòÉ 1.2.14. I0String::lastIndexOfAnyOf ΓòÉΓòÉΓòÉ
  912.  
  913. Returns the index of the last character in the specified string or character. 
  914. The search starts at the position specified by startPos (inclusive) and 
  915. proceeds backward. The default of UINT_MAX-1 starts the search at the end of 
  916. the receiver's string. If the search target is not found, 0 is returned. 
  917.  
  918. If you specify 0 for startPos, the search starts at the beginning of the 
  919. string. Therefore, because the search proceeds backward from its starting 
  920. position, in this case the search target must occur at the beginning of the 
  921. string for it to be found. 
  922.  
  923. Overload 1 
  924.  
  925. public:
  926. unsigned
  927.   lastIndexOfAnyOf( const IStringTest& aTest,
  928.                     unsigned endPos = ( unsigned ) ( UINT_MAX - 1 )) const;
  929.  
  930. Overload 2 
  931.  
  932. public:
  933. unsigned
  934.   lastIndexOfAnyOf( const IString& searchChars,
  935.                     unsigned endPos = ( unsigned ) ( UINT_MAX - 1 )) const;
  936.  
  937. Overload 3 
  938.  
  939. public:
  940. unsigned
  941.   lastIndexOfAnyOf( const char* pSearchChars,
  942.                     unsigned endPos = ( unsigned ) ( UINT_MAX - 1 )) const;
  943.  
  944. Overload 4 
  945.  
  946. public:
  947. unsigned
  948.   lastIndexOfAnyOf( char searchChar,
  949.                     unsigned startPos = ( unsigned ) ( UINT_MAX - 1 )) const;
  950.  
  951.  
  952. ΓòÉΓòÉΓòÉ 1.2.15. I0String::notFound ΓòÉΓòÉΓòÉ
  953.  
  954. You use this static constant in conjunction with the searching functions. It 
  955. specifies the value searching functions return indicating the search failed. 
  956.  
  957. public:
  958. static const unsigned notFound;
  959.  
  960.  
  961. ΓòÉΓòÉΓòÉ 1.2.16. I0String::occurrencesOf ΓòÉΓòÉΓòÉ
  962.  
  963. Returns the number of occurrences of the specified IString, char*, char, or 
  964. IStringTest. If you just want a Boolean test, this is slower than 
  965. IString::indexOf. 
  966.  
  967. Overload 1 
  968.  
  969. public:
  970. unsigned
  971.   occurrencesOf( const IString& aString,
  972.                  unsigned startPos = 0) const;
  973.  
  974. Overload 2 
  975.  
  976. public:
  977. unsigned
  978.   occurrencesOf( const char* pString,
  979.                  unsigned startPos = 0) const;
  980.  
  981. Overload 3 
  982.  
  983. public:
  984. unsigned
  985.   occurrencesOf( char aCharacter,
  986.                  unsigned startPos = 0) const;
  987.  
  988. Overload 4 
  989.  
  990. public:
  991. unsigned
  992.   occurrencesOf( const IStringTest& aTest,
  993.                  unsigned startPos = 0) const;
  994.  
  995.  
  996. ΓòÉΓòÉΓòÉ 1.2.17. I0String::operator [] ΓòÉΓòÉΓòÉ
  997.  
  998. Returns a reference to the specified character of the string. 
  999.  
  1000. Note:  If you call the non-const version of this function with an index beyond 
  1001.        the end, the function extends the string. 
  1002.  
  1003. Overload 1 
  1004.  
  1005. public:
  1006. const char& operator [](unsigned index) const;
  1007.  
  1008. Overload 2 
  1009.  
  1010. public:
  1011. char& operator [](unsigned index);
  1012.  
  1013.  
  1014. ΓòÉΓòÉΓòÉ 1.2.18. I0String::overlayWith ΓòÉΓòÉΓòÉ
  1015.  
  1016. Replaces a specified portion of the receiver's contents with the specified 
  1017. string. The overlay starts in the receiver's data at the index, which defaults 
  1018. to 0. If index is beyond the end of the receiver's data, it is padded with the 
  1019. pad character (padCharacter). 
  1020.  
  1021. Overload 1 
  1022.  
  1023. public:
  1024. I0String&
  1025.   overlayWith( const IString& aString,
  1026.                unsigned index = 0,
  1027.                char padCharacter = ' ');
  1028.  
  1029. Overload 2 
  1030.  
  1031. public:
  1032. I0String&
  1033.   overlayWith( const char* pString,
  1034.                unsigned index = 0,
  1035.                char padCharacter = ' ');
  1036.  
  1037. Overload 3 
  1038.  
  1039. public:
  1040. static I0String
  1041.   overlayWith( const IString& aString,
  1042.                const IString& anOverlay,
  1043.                unsigned index = 0,
  1044.                char padCharacter = ' ');
  1045.  
  1046. Overload 4 
  1047.  
  1048. public:
  1049. static I0String
  1050.   overlayWith( const IString& aString,
  1051.                const char* pOverlay,
  1052.                unsigned index = 0,
  1053.                char padCharacter = ' ');
  1054.  
  1055.  
  1056. ΓòÉΓòÉΓòÉ 1.2.19. I0String::remove ΓòÉΓòÉΓòÉ
  1057.  
  1058. Deletes the specified portion of the string (that is, the substring) from the 
  1059. receiver. You can use this function to truncate an IString object at a specific 
  1060. position. For example: 
  1061.  
  1062. aString.remove(8);
  1063. removes the substring beginning at index 8 and takes the rest of the string as 
  1064. a default. 
  1065.  
  1066. Overload 1 
  1067.  
  1068. public:
  1069. static I0String
  1070.   remove( const IString& aString,
  1071.           unsigned startPos);
  1072.  
  1073. Overload 2 
  1074.  
  1075. public:
  1076. I0String& remove(unsigned startPos);
  1077.  
  1078. Overload 3 
  1079.  
  1080. public:
  1081. I0String& remove(unsigned startPos, unsigned numChars);
  1082.  
  1083. Overload 4 
  1084.  
  1085. public:
  1086. static I0String
  1087.   remove( const IString& aString,
  1088.           unsigned startPos,
  1089.           unsigned numChars);
  1090.  
  1091.  
  1092. ΓòÉΓòÉΓòÉ 1.2.20. I0String::subString ΓòÉΓòÉΓòÉ
  1093.  
  1094. Returns the specified portion of the string (that is, the substring) of the 
  1095. receiver. 
  1096.  
  1097. The parameters are the following: 
  1098.  
  1099. startPos  The starting position of the substring being extracted. If this 
  1100.           position is beyond the end of the data in the receiver, this function 
  1101.           returns a NULL IString. 
  1102.  
  1103. length    The length of the substring to be extracted. If the length extends 
  1104.           beyond the end of the receiver's data, the returned IString is padded 
  1105.           to the specified length with padCharacter. If you do not specify 
  1106.           length and it defaults, this function uses the rest of the receiver's 
  1107.           data starting from startPos for padding. 
  1108.  
  1109. padCharacter The character the function uses as padding if the requested length 
  1110.           extends beyond the end of the receiver's data. The default 
  1111.           padCharacter is a blank. 
  1112. You can use this function to truncate an IString object at a specific position. 
  1113. For example: 
  1114.  
  1115. aString = aString.subString(0, 7);
  1116. returns the substring concluding with index 7 and discards the rest of the 
  1117. string. 
  1118.  
  1119. Overload 1 
  1120.  
  1121. public:
  1122. I0String subString(unsigned startPos) const;
  1123.  
  1124. Overload 2 
  1125.  
  1126. public:
  1127. I0String
  1128.   subString( unsigned startPos,
  1129.              unsigned len,
  1130.              char padCharacter = ' ') const;
  1131.  
  1132.  
  1133. ΓòÉΓòÉΓòÉ 1.2.21. I0String::~I0String ΓòÉΓòÉΓòÉ
  1134.  
  1135. public:
  1136. virtual  ~I0String();
  1137.  
  1138.  
  1139. ΓòÉΓòÉΓòÉ 1.3. IAccessError ΓòÉΓòÉΓòÉ
  1140.  
  1141. Description 
  1142.  
  1143. Derivation 
  1144.  
  1145. Constructors 
  1146.  
  1147. Public Functions 
  1148.  
  1149. Public Data 
  1150.  
  1151. Public Data includes Styles and Notification IDs if they exist. 
  1152.  
  1153. To close all the panels in a chapter, double click on this panel's system menu. 
  1154.  
  1155.  
  1156. ΓòÉΓòÉΓòÉ <hidden> Derivation - IAccessError ΓòÉΓòÉΓòÉ
  1157.  
  1158. IException
  1159.   Γöé
  1160. IAccessError
  1161.  
  1162. Inherited by none. 
  1163.  
  1164.  
  1165. ΓòÉΓòÉΓòÉ <hidden> Class Description - IAccessError ΓòÉΓòÉΓòÉ
  1166.  
  1167. iexcbase.hpp 
  1168.  
  1169. Objects of the IAccessError class represent an exception. When a member 
  1170. function makes a request of the operating system or the presentation system 
  1171. that the system cannot satisfy, the member function creates and throws an 
  1172. object of the IAccessError class. If the operating system or the presentation 
  1173. system cannot satisfy the request due to resource exhaustion, member functions 
  1174. create and throw objects of the class IResourceExhausted. 
  1175.  
  1176. Note:  Typically, if no other exception fits an error condition, the User 
  1177.        Interface Class Library creates and throws an object of the IAccessError 
  1178.        class. 
  1179.  
  1180.  
  1181. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IAccessError ΓòÉΓòÉΓòÉ
  1182.  
  1183. Constructors
  1184. IAccessError
  1185.  
  1186. Exception Type
  1187. name
  1188.  
  1189. Inherited Members
  1190. IException
  1191. addLocation
  1192. appendText
  1193. assertParameter
  1194. errorCodeGroup
  1195. errorId
  1196. isRecoverable
  1197. locationAtIndex
  1198. locationCount
  1199. logExceptionData
  1200. name
  1201. setErrorCodeGroup
  1202. setErrorId
  1203. setSeverity
  1204. setText
  1205. setTraceFunction
  1206. terminate
  1207. text
  1208. textCount
  1209.  
  1210.  
  1211. ΓòÉΓòÉΓòÉ <hidden> IAccessError - Constructors ΓòÉΓòÉΓòÉ
  1212.  
  1213. You can construct objects of this class. 
  1214.  
  1215.  
  1216. ΓòÉΓòÉΓòÉ <hidden> IAccessError - Exception Type ΓòÉΓòÉΓòÉ
  1217.  
  1218. Exception Type members provide support for determining the name (type) of the 
  1219. exception.  This is used for logging out an exception object's error 
  1220. information. 
  1221.  
  1222.  
  1223. ΓòÉΓòÉΓòÉ <hidden> Public Data - IAccessError ΓòÉΓòÉΓòÉ
  1224.  
  1225. Inherited Members
  1226. IException
  1227. baseLibrary
  1228. CLibrary
  1229. operatingSystem
  1230. other
  1231. presentationSystem
  1232.  
  1233.  
  1234. ΓòÉΓòÉΓòÉ 1.3.1. IAccessError::IAccessError ΓòÉΓòÉΓòÉ
  1235.  
  1236. You can create objects of this class by doing the following: 
  1237.  
  1238.     Using the constructor. 
  1239.  
  1240.      errorText      The text describing this particular error. 
  1241.  
  1242.      errorId        The identifier you want to associate with this particular 
  1243.                     error. 
  1244.  
  1245.      severity       Use the enumeration IException::Severity to specify the 
  1246.                     severity of the error. The default is unrecoverable. 
  1247.  
  1248.     Using the macros discussed in IException. The User Interface Class Library 
  1249.      provides these macros to make creating exceptions easier for you. 
  1250.  
  1251. public:
  1252. IAccessError( const char* errorText,
  1253.               unsigned long errorId,
  1254.               Severity severity = IException::unrecoverable);
  1255.  
  1256.  
  1257. ΓòÉΓòÉΓòÉ 1.3.2. IAccessError::name ΓòÉΓòÉΓòÉ
  1258.  
  1259. Returns the name of the object's class. 
  1260.  
  1261. public:
  1262. virtual const char* name() const;
  1263.  
  1264.  
  1265. ΓòÉΓòÉΓòÉ 1.4. IAssertionFailure ΓòÉΓòÉΓòÉ
  1266.  
  1267. Description 
  1268.  
  1269. Derivation 
  1270.  
  1271. Constructors 
  1272.  
  1273. Public Functions 
  1274.  
  1275. Public Data 
  1276.  
  1277. Public Data includes Styles and Notification IDs if they exist. 
  1278.  
  1279. To close all the panels in a chapter, double click on this panel's system menu. 
  1280.  
  1281.  
  1282. ΓòÉΓòÉΓòÉ <hidden> Derivation - IAssertionFailure ΓòÉΓòÉΓòÉ
  1283.  
  1284. IException
  1285.   Γöé
  1286. IAssertionFailure
  1287.  
  1288. Inherited by none. 
  1289.  
  1290.  
  1291. ΓòÉΓòÉΓòÉ <hidden> Class Description - IAssertionFailure ΓòÉΓòÉΓòÉ
  1292.  
  1293. iexcbase.hpp 
  1294.  
  1295. Objects of the IAssertionFailure class represent an exception. The IASSERT 
  1296. macro expands to create and throw an object of the IAssertionFailure class if 
  1297. the specified condition is not met. An assertion is a debugging tool you can 
  1298. use to assure a condition is true. The class IException describes IASSERT and 
  1299. the other exception-handling macros. 
  1300.  
  1301.  
  1302. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IAssertionFailure ΓòÉΓòÉΓòÉ
  1303.  
  1304. Constructors
  1305. IAssertionFailure
  1306.  
  1307. Exception Type
  1308. name
  1309.  
  1310. Inherited Members
  1311. IException
  1312. addLocation
  1313. appendText
  1314. assertParameter
  1315. errorCodeGroup
  1316. errorId
  1317. isRecoverable
  1318. locationAtIndex
  1319. locationCount
  1320. logExceptionData
  1321. name
  1322. setErrorCodeGroup
  1323. setErrorId
  1324. setSeverity
  1325. setText
  1326. setTraceFunction
  1327. terminate
  1328. text
  1329. textCount
  1330.  
  1331.  
  1332. ΓòÉΓòÉΓòÉ <hidden> IAssertionFailure - Constructors ΓòÉΓòÉΓòÉ
  1333.  
  1334. You can construct objects of this class. 
  1335.  
  1336.  
  1337. ΓòÉΓòÉΓòÉ <hidden> IAssertionFailure - Exception Type ΓòÉΓòÉΓòÉ
  1338.  
  1339. Exception Type members provide support for determining the name (type) of the 
  1340. exception.  This is used for logging out an exception object's error 
  1341. information. 
  1342.  
  1343.  
  1344. ΓòÉΓòÉΓòÉ <hidden> Public Data - IAssertionFailure ΓòÉΓòÉΓòÉ
  1345.  
  1346. Inherited Members
  1347. IException
  1348. baseLibrary
  1349. CLibrary
  1350. operatingSystem
  1351. other
  1352. presentationSystem
  1353.  
  1354.  
  1355. ΓòÉΓòÉΓòÉ 1.4.1. IAssertionFailure::IAssertionFailure ΓòÉΓòÉΓòÉ
  1356.  
  1357. You can create objects of this class by doing the following: 
  1358.  
  1359.     Using the constructor. 
  1360.  
  1361.      errorText      The text describing this particular error. 
  1362.  
  1363.      errorId        The identifier you want to associate with this particular 
  1364.                     error. 
  1365.  
  1366.      severity       Use the enumeration IException::Severity to specify the 
  1367.                     severity of the error. The default is unrecoverable. 
  1368.  
  1369.     Using the macro IASSERT. The User Interface Class Library provides this 
  1370.      macro to make creating exceptions easier for you. 
  1371.  
  1372. public:
  1373. IAssertionFailure( const char* errorText,
  1374.                    unsigned long errorId,
  1375.                    Severity severity = IException::unrecoverable);
  1376.  
  1377.  
  1378. ΓòÉΓòÉΓòÉ 1.4.2. IAssertionFailure::name ΓòÉΓòÉΓòÉ
  1379.  
  1380. Returns the name of the object's class. 
  1381.  
  1382. public:
  1383. virtual const char* name() const;
  1384.  
  1385.  
  1386. ΓòÉΓòÉΓòÉ 1.5. IBase ΓòÉΓòÉΓòÉ
  1387.  
  1388. Description 
  1389.  
  1390. Derivation 
  1391.  
  1392. Public Functions 
  1393.  
  1394. Protected Data 
  1395.  
  1396. Nested Types 
  1397.  
  1398. To close all the panels in a chapter, double click on this panel's system menu. 
  1399.  
  1400.  
  1401. ΓòÉΓòÉΓòÉ <hidden> Derivation - IBase ΓòÉΓòÉΓòÉ
  1402.  
  1403. Inherits from none. 
  1404.  
  1405. Inherited by: 
  1406.  
  1407.      IAccelerator 
  1408.      IBitFlag 
  1409.      ICnrAllocator 
  1410.      ICollectionViewConstants 
  1411.      ICoordinateSystem 
  1412.      ICritSec 
  1413.      IDate 
  1414.      IDDE 
  1415.      IDDEActiveServer 
  1416.      IEventData 
  1417.      IEventParameter1 
  1418.      IEventParameter2 
  1419.      IEventResult 
  1420.      IFileDialog::Settings 
  1421.      IFontDialog::Settings 
  1422.      IFrameExtension 
  1423.      IGraphicBundle 
  1424.      IHandle 
  1425.      IHelpWindow::Settings 
  1426.      IHighEventParameter 
  1427.      ILowEventParameter 
  1428.      IMenuItem 
  1429.      IMMAudioBuffer 
  1430.      INotificationEvent 
  1431.      IPair 
  1432.      IPointArray 
  1433.      IProcedureAddress 
  1434.      IRectangle 
  1435.      IReference 
  1436.      IResourceId 
  1437.      IString 
  1438.      IStringGenerator 
  1439.      IStringParser 
  1440.      IStringParser::SkipWords 
  1441.      ISWP 
  1442.      ISWPArray 
  1443.      ITime 
  1444.      ITransformMatrix 
  1445.      IVBase 
  1446.  
  1447.  
  1448. ΓòÉΓòÉΓòÉ <hidden> Class Description - IBase ΓòÉΓòÉΓòÉ
  1449.  
  1450. ibase.hpp 
  1451.  
  1452. The IBase class encapsulates the set of names that otherwise would be in global 
  1453. scope. All the classes in the library inherit from this class. Thus, you can 
  1454. use the types and enumeration values defined here in those classes without the 
  1455. qualifying IBase:: prefix. 
  1456.  
  1457. Other code, not within the scope of IBase, must use either the qualified names 
  1458. or the simplified synonyms which the User Interface Class Library declares in 
  1459. ISYNONYM.HPP. 
  1460.  
  1461.  
  1462. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IBase ΓòÉΓòÉΓòÉ
  1463.  
  1464. Diagnostics
  1465. asDebugInfo
  1466. asString
  1467. version
  1468.  
  1469. Messages
  1470. messageFile
  1471. messageText
  1472. setMessageFile
  1473.  
  1474.  
  1475. ΓòÉΓòÉΓòÉ <hidden> IBase - Boolean Definitions ΓòÉΓòÉΓòÉ
  1476.  
  1477. This class declares a global Boolean type and enumeration, both of which are 
  1478. used throughout the library. 
  1479.  
  1480.  
  1481. ΓòÉΓòÉΓòÉ <hidden> IBase - Diagnostics ΓòÉΓòÉΓòÉ
  1482.  
  1483. Use these members to provide diagnostic information. 
  1484.  
  1485.  
  1486. ΓòÉΓòÉΓòÉ <hidden> IBase - Exception Severity ΓòÉΓòÉΓòÉ
  1487.  
  1488. These data members are provided as synonyms for the IException::Severity 
  1489. enumeration, which is used when constructing an IException object or an object 
  1490. of one of its derived classes. 
  1491.  
  1492.  
  1493. ΓòÉΓòÉΓòÉ <hidden> IBase - Messages ΓòÉΓòÉΓòÉ
  1494.  
  1495. Use these members to query and change the message file that contains text used 
  1496. by the class library when throwing exceptions. 
  1497.  
  1498.  
  1499. ΓòÉΓòÉΓòÉ <hidden> Protected Data - IBase ΓòÉΓòÉΓòÉ
  1500.  
  1501. Exception Severity
  1502. recoverable
  1503. unrecoverable
  1504.  
  1505.  
  1506. ΓòÉΓòÉΓòÉ 1.5.1. IBase::asDebugInfo ΓòÉΓòÉΓòÉ
  1507.  
  1508. This function obtains the diagnostic version of an object's contents. You use 
  1509. this to retrieve an IString representing a hex pointer to the object. 
  1510.  
  1511. public:
  1512. IString asDebugInfo() const;
  1513.  
  1514.  
  1515. ΓòÉΓòÉΓòÉ 1.5.2. IBase::asString ΓòÉΓòÉΓòÉ
  1516.  
  1517. This function obtains the standard version of an object's contents. 
  1518.  
  1519. public:
  1520. IString asString() const;
  1521.  
  1522.  
  1523. ΓòÉΓòÉΓòÉ 1.5.3. IBase::messageFile ΓòÉΓòÉΓòÉ
  1524.  
  1525. This function returns the name of the message file used to load library 
  1526. exception text. 
  1527.  
  1528. public:
  1529. static char* messageFile();
  1530.  
  1531. Presentation Manager: If you previously called setMessageFile with the name of 
  1532. a message file, the file's name is returned. Otherwise, the library checks the 
  1533. environment variable ICLUI MSGFILE for the message file name. You can set the 
  1534. environment variable using: 
  1535.  
  1536. SET ICLUI MSGFILE=mymsgfile.msg
  1537.  
  1538. You must specify the file extension, typically .MSG. If you have not set the 
  1539. environment variable, the library uses the default message file (CPPOOC3U.MSG). 
  1540.  
  1541. Motif: If you previously called setMessageFile with the name of a message file, 
  1542. the file's name is returned. The default file name is ibmcl.cat. 
  1543.  
  1544.  
  1545. ΓòÉΓòÉΓòÉ 1.5.4. IBase::messageText ΓòÉΓòÉΓòÉ
  1546.  
  1547. Returns the message text associated with the specified message ID. You can 
  1548. specify up to nine optional text strings to insert into the message. 
  1549.  
  1550. public:
  1551. static IMessageText
  1552.   messageText( unsigned long messageId,
  1553.                const char* textInsert1 = 0,
  1554.                const char* textInsert2 = 0,
  1555.                const char* textInsert3 = 0,
  1556.                const char* textInsert4 = 0,
  1557.                const char* textInsert5 = 0,
  1558.                const char* textInsert6 = 0,
  1559.                const char* textInsert7 = 0,
  1560.                const char* textInsert8 = 0,
  1561.                const char* textInsert9 = 0);
  1562.  
  1563. Presentation Manager: If the message is found in a message segment that has 
  1564. been bound to the .EXE, the message is loaded from the application. Otherwise, 
  1565. the message is searched for in the message file described before. The search 
  1566. order for this file is as follows: 
  1567.  
  1568.     The system root directory 
  1569.     The current working directory 
  1570.     Using the DPATH environment setting 
  1571.     Using the APPEND environment setting 
  1572.  
  1573. Motif: The AIX release uses the message catalog file ibmcl.cat. You must add 
  1574. the /nls subdirectory to your NLSPATH environment variable so the User 
  1575. Interface Class Library can access the message catalog. In the Korn Shell, put 
  1576. the following statement in your .profile file: 
  1577.  
  1578. export NLSPATH=<targetdir>/nls/%N:$NLSPATH
  1579. where <targetdir> is the directory in which you installed the User Interface 
  1580. Class Library. 
  1581.  
  1582.  
  1583. ΓòÉΓòÉΓòÉ 1.5.5. IBase::recoverable ΓòÉΓòÉΓòÉ
  1584.  
  1585. Synonym for IException::recoverable. Use this when constructing an IException 
  1586. object or one of its subclasses: 
  1587.  
  1588. protected:
  1589. static IException::Severity recoverable;
  1590.  
  1591.  
  1592. ΓòÉΓòÉΓòÉ 1.5.6. IBase::setMessageFile ΓòÉΓòÉΓòÉ
  1593.  
  1594. Sets the message file from which the class library loads its exception text. 
  1595. The name must include the file extension. 
  1596.  
  1597. public:
  1598. static void setMessageFile(const char* msgFileName);
  1599.  
  1600.  
  1601. ΓòÉΓòÉΓòÉ 1.5.7. IBase::unrecoverable ΓòÉΓòÉΓòÉ
  1602.  
  1603. Synonym for IException::unrecoverable. Use this when constructing an IException 
  1604. object or one of its subclasses: 
  1605.  
  1606. protected:
  1607. static IException::Severity unrecoverable;
  1608.  
  1609.  
  1610. ΓòÉΓòÉΓòÉ 1.5.8. IBase::version ΓòÉΓòÉΓòÉ
  1611.  
  1612. Returns the User Interface Class Library version using the major and minor data 
  1613. members of the IBase::Version data structure. The minor number is incremented 
  1614. to indicate the service level. This is a static member function. 
  1615.  
  1616. public:
  1617. static Version version();
  1618.  
  1619.  
  1620. ΓòÉΓòÉΓòÉ <hidden> Nested Types - IBase ΓòÉΓòÉΓòÉ
  1621.  
  1622. Enumerations 
  1623.  
  1624.       BooleanConstants 
  1625.  
  1626. Type Definitions 
  1627.  
  1628.       Boolean 
  1629.  
  1630.  
  1631. ΓòÉΓòÉΓòÉ <hidden> Enums - BooleanConstants ΓòÉΓòÉΓòÉ
  1632.  
  1633. enum BooleanConstants { false=0, true=1 };
  1634.  
  1635. The User Interface Class Library provides this enumeration to define constant 
  1636. values for false and true. Never use true for an equality test because you 
  1637. should consider any nonzero value to be true. This constant provides a useful 
  1638. mnemonic for setting a Boolean. 
  1639.  
  1640.  
  1641. ΓòÉΓòÉΓòÉ <hidden> Type Definition - IBase::Boolean ΓòÉΓòÉΓòÉ
  1642.  
  1643. typedef int Boolean;
  1644.  
  1645. General true or false type used as an argument or return value for many member 
  1646. functions. 
  1647.  
  1648.  
  1649. ΓòÉΓòÉΓòÉ 1.6. IBase::Version ΓòÉΓòÉΓòÉ
  1650.  
  1651. Description 
  1652.  
  1653. Derivation 
  1654.  
  1655. Public Data 
  1656.  
  1657. Public Data includes Styles and Notification IDs if they exist. 
  1658.  
  1659. To close all the panels in a chapter, double click on this panel's system menu. 
  1660.  
  1661.  
  1662. ΓòÉΓòÉΓòÉ <hidden> Derivation - IBase::Version ΓòÉΓòÉΓòÉ
  1663.  
  1664. Inherits from none. 
  1665.  
  1666. Inherited by none. 
  1667.  
  1668.  
  1669. ΓòÉΓòÉΓòÉ <hidden> Class Description - IBase::Version ΓòÉΓòÉΓòÉ
  1670.  
  1671. ibase.hpp 
  1672.  
  1673. This structure (data type) defines the version specifier, comprised of major 
  1674. and minor version numbers. 
  1675.  
  1676.  
  1677. ΓòÉΓòÉΓòÉ <hidden> IBase::Version - Version Data ΓòÉΓòÉΓòÉ
  1678.  
  1679. Encapsulates versioning data for class library objects. 
  1680.  
  1681.  
  1682. ΓòÉΓòÉΓòÉ <hidden> Public Data - IBase::Version ΓòÉΓòÉΓòÉ
  1683.  
  1684. Version Data
  1685. major
  1686. minor
  1687.  
  1688.  
  1689. ΓòÉΓòÉΓòÉ 1.6.1. IBase::Version::major ΓòÉΓòÉΓòÉ
  1690.  
  1691. The major version level of the library, it is incremented by 1 for each new 
  1692. release within a version. 
  1693.  
  1694. public:
  1695. unsigned short major;
  1696.  
  1697.  
  1698. ΓòÉΓòÉΓòÉ 1.6.2. IBase::Version::minor ΓòÉΓòÉΓòÉ
  1699.  
  1700. The minor version level of the library, it starts at 0 for each major version 
  1701. level and is incremented by 1 for each CSD. 
  1702.  
  1703. public:
  1704. unsigned short minor;
  1705.  
  1706.  
  1707. ΓòÉΓòÉΓòÉ 1.7. IBitFlag ΓòÉΓòÉΓòÉ
  1708.  
  1709. Description 
  1710.  
  1711. Derivation 
  1712.  
  1713. Public Functions 
  1714.  
  1715. Protected Functions 
  1716.  
  1717. Protected Data 
  1718.  
  1719. To close all the panels in a chapter, double click on this panel's system menu. 
  1720.  
  1721.  
  1722. ΓòÉΓòÉΓòÉ <hidden> Derivation - IBitFlag ΓòÉΓòÉΓòÉ
  1723.  
  1724. IBase
  1725.   Γöé
  1726. IBitFlag
  1727.  
  1728. Inherited by: 
  1729.  
  1730.      I3StateCheckBox::Style 
  1731.      IAnimatedButton::Style 
  1732.      IBaseComboBox::Style 
  1733.      IBaseListBox::Style 
  1734.      IBaseSpinButton::Style 
  1735.      IBitmapControl::Style 
  1736.      IButton::Style 
  1737.      ICanvas::Style 
  1738.      ICheckBox::Style 
  1739.      ICircularSlider::Style 
  1740.      IComboBox::Style 
  1741.      IContainerControl::Attribute 
  1742.      IContainerControl::Style 
  1743.      IControl::Style 
  1744.      ICustomButton::Style 
  1745.      IDMImage::Style 
  1746.      IDrawingCanvas::Style 
  1747.      IEntryField::Style 
  1748.      IFileDialog::Style 
  1749.      IFontDialog::Style 
  1750.      IFrameWindow::Style 
  1751.      IGraphicPushButton::Style 
  1752.      IGroupBox::Style 
  1753.      IIconControl::Style 
  1754.      IListBox::Style 
  1755.      IListBoxDrawItemHandler::DrawFlag 
  1756.      IMenu::Style 
  1757.      IMenuBar::Style 
  1758.      IMenuDrawItemHandler::DrawFlag 
  1759.      IMenuItem::Attribute 
  1760.      IMenuItem::Style 
  1761.      IMessageBox::Style 
  1762.      IMultiCellCanvas::Style 
  1763.      IMultiLineEdit::Style 
  1764.      INotebook::PageSettings::Attribute 
  1765.      INotebook::Style 
  1766.      INumericSpinButton::Style 
  1767.      IOutlineBox::Style 
  1768.      IProgressIndicator::Style 
  1769.      IPushButton::Style 
  1770.      IRadioButton::Style 
  1771.      IScrollBar::Style 
  1772.      ISetCanvas::Style 
  1773.      ISlider::Style 
  1774.      ISpinButton::Style 
  1775.      ISplitCanvas::Style 
  1776.      IStaticText::Style 
  1777.      ITextSpinButton::Style 
  1778.      IToolBar::Style 
  1779.      IToolBarButton::Style 
  1780.      IToolBarContainer::Style 
  1781.      IViewPort::Style 
  1782.      IWindow::Style 
  1783.  
  1784.  
  1785. ΓòÉΓòÉΓòÉ <hidden> Class Description - IBitFlag ΓòÉΓòÉΓòÉ
  1786.  
  1787. ibitflag.hpp 
  1788.  
  1789. The IBitFlag class is the abstract base class for the bitwise styles and 
  1790. attributes used by window and control classes in the User Interface Class 
  1791. Library. Because this class in an abstract base class, you cannot create 
  1792. objects of this class. 
  1793.  
  1794. Deriving Classes from IBitFlag 
  1795.  
  1796. Typically, you can declare classes derived from IBitFlag by using the macros 
  1797. that accompany this class. Optionally, these macros lets you: 
  1798.  
  1799.     Construct objects of one derived class from objects of another class 
  1800.      derived from IBitFlag. 
  1801.  
  1802.     Combine objects of one derived class with objects of another class derived 
  1803.      from IBitFlag. For example, using the bitwise OR operator. 
  1804.  
  1805. Macro Descriptions 
  1806.  
  1807. You can use the following macros to declare classes derived from IBitFlag: 
  1808.  
  1809. INESTEDBITFLAGCLASSDEF0 macro 
  1810.      Declares a logical base bitwise flag class scoped to another class. A 
  1811.      logical base bitwise class is a class of bitwise flag objects that cannot 
  1812.      be constructed from a bitwise flag object of another class. 
  1813.  
  1814. INESTEDBITFLAGCLASSDEF1 macro 
  1815.      Declares a bitwise flag class whose objects can be constructed from an 
  1816.      object of another bitwise flag class. The library assumes both bitwise 
  1817.      flag classes have the same name and are scoped to another class. 
  1818.  
  1819. INESTEDBITFLAGCLASSDEF2 macro 
  1820.      Declares a bitwise flag class whose objects can be constructed from an 
  1821.      object of two other bitwise flag classes. The library assumes all the 
  1822.      bitwise flag classes have the same name and are scoped to another class. 
  1823.  
  1824. INESTEDBITFLAGCLASSDEF3 macro 
  1825.      Declares a bitwise flag class whose objects can be constructed from an 
  1826.      object of three other bitwise flag classes. The library assumes all the 
  1827.      bitwise flag classes have the same name and are scoped to another class. 
  1828.  
  1829. INESTEDBITFLAGCLASSDEF4 macro 
  1830.      Declares a bitwise flag class whose objects can be constructed from an 
  1831.      object of four other bitwise flag classes. The library assumes all the 
  1832.      bitwise flag classes have the same name and are scoped to another class. 
  1833.  
  1834. INESTEDBITFLAGCLASSFUNCS macro 
  1835.      Declares global functions that operate on a class of bitwise flag objects 
  1836.      scoped to another class. The functions are global, rather than member 
  1837.      functions, to allow for commutative operations between objects of 
  1838.      different bitwise flag classes. 
  1839.  
  1840.      Note:  Do not use this macro to define global functions for a logical base 
  1841.             style class (one declared with the INESTEDBITFLAGCLASSDEF0 macro). 
  1842.  
  1843.  
  1844. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IBitFlag ΓòÉΓòÉΓòÉ
  1845.  
  1846. Comparisons
  1847. operator !=
  1848. operator ==
  1849.  
  1850. Queries
  1851. asExtendedUnsignedLong
  1852. asUnsignedLong
  1853.  
  1854. Inherited Members
  1855. IBase
  1856. asDebugInfo
  1857. asString
  1858. messageFile
  1859. messageText
  1860. setMessageFile
  1861. version
  1862.  
  1863.  
  1864. ΓòÉΓòÉΓòÉ <hidden> IBitFlag - Assignment ΓòÉΓòÉΓòÉ
  1865.  
  1866. Use this member to set the value of the object. 
  1867.  
  1868.  
  1869. ΓòÉΓòÉΓòÉ <hidden> IBitFlag - Comparisons ΓòÉΓòÉΓòÉ
  1870.  
  1871. Use these members to compare bitflag values. 
  1872.  
  1873.  
  1874. ΓòÉΓòÉΓòÉ <hidden> IBitFlag - Constructors ΓòÉΓòÉΓòÉ
  1875.  
  1876. You can only construct objects of this class from an unsigned long value, which 
  1877. represents the styles accepted by the system, and, optionally, an unsigned long 
  1878. value that represents extended styles. 
  1879.  
  1880. Note:  This constructor is protected because objects derived from this class 
  1881.        should not be arbitrarily constructed.  To provide type safety for 
  1882.        window and control constructors, you can only specify the following: 
  1883.  
  1884.     Existing style objects 
  1885.     Existing attribute objects 
  1886.     Combinations of these objects 
  1887.  
  1888.  
  1889. ΓòÉΓòÉΓòÉ <hidden> IBitFlag - Queries ΓòÉΓòÉΓòÉ
  1890.  
  1891. Use these members to return the value of the object. 
  1892.  
  1893.  
  1894. ΓòÉΓòÉΓòÉ <hidden> Protected Functions - IBitFlag ΓòÉΓòÉΓòÉ
  1895.  
  1896. Assignment
  1897. setValue
  1898.  
  1899. Constructors
  1900. IBitFlag
  1901.  
  1902.  
  1903. ΓòÉΓòÉΓòÉ <hidden> Protected Data - IBitFlag ΓòÉΓòÉΓòÉ
  1904.  
  1905. Inherited Members
  1906. IBase
  1907. recoverable
  1908. unrecoverable
  1909.  
  1910.  
  1911. ΓòÉΓòÉΓòÉ 1.7.1. IBitFlag::asExtendedUnsignedLong ΓòÉΓòÉΓòÉ
  1912.  
  1913. Converts the upper 32-Bits of the object to an unsigned long value. 
  1914.  
  1915. public:
  1916. unsigned long asExtendedUnsignedLong() const;
  1917.  
  1918.  
  1919. ΓòÉΓòÉΓòÉ 1.7.2. IBitFlag::asUnsignedLong ΓòÉΓòÉΓòÉ
  1920.  
  1921. Converts the object to an unsigned long value. 
  1922.  
  1923. public:
  1924. unsigned long asUnsignedLong() const;
  1925.  
  1926.  
  1927. ΓòÉΓòÉΓòÉ 1.7.3. IBitFlag::IBitFlag ΓòÉΓòÉΓòÉ
  1928.  
  1929. You can only construct objects of this class from an unsigned long value, which 
  1930. represents the styles accepted by the system, and, optionally, an unsigned long 
  1931. value that represents extended styles. 
  1932.  
  1933. Note:  This constructor is protected because objects derived from this class 
  1934.        should not be arbitrarily constructed.  To provide type safety for 
  1935.        window and control constructors, you can only specify the following: 
  1936.  
  1937.     Existing style objects 
  1938.     Existing attribute objects 
  1939.     Combinations of these objects 
  1940.  
  1941. protected:
  1942. IBitFlag( unsigned long value,
  1943.           unsigned long extendedValue = 0);
  1944.  
  1945.  
  1946. ΓòÉΓòÉΓòÉ 1.7.4. IBitFlag::operator != ΓòÉΓòÉΓòÉ
  1947.  
  1948. Used to compare two bitflag values for inequality. 
  1949.  
  1950. public:
  1951. Boolean operator !=(const IBitFlag& rhs) const;
  1952.  
  1953.  
  1954. ΓòÉΓòÉΓòÉ 1.7.5. IBitFlag::operator == ΓòÉΓòÉΓòÉ
  1955.  
  1956. Used to compare two bitflag values for equality. 
  1957.  
  1958. public:
  1959. Boolean operator ==(const IBitFlag& rhs) const;
  1960.  
  1961.  
  1962. ΓòÉΓòÉΓòÉ 1.7.6. IBitFlag::setValue ΓòÉΓòÉΓòÉ
  1963.  
  1964. You can use this function to assign an unsigned long value for the system 
  1965. styles to the object, and optionally an unsigned long value that represents 
  1966. extended styles. 
  1967.  
  1968. protected:
  1969. IBitFlag&
  1970.   setValue( unsigned long value,
  1971.             unsigned long extendedValue = 0);
  1972.  
  1973.  
  1974. ΓòÉΓòÉΓòÉ 1.8. IBuffer ΓòÉΓòÉΓòÉ
  1975.  
  1976. Description 
  1977.  
  1978. Derivation 
  1979.  
  1980. Public Functions 
  1981.  
  1982. Protected Functions 
  1983.  
  1984. Public Data 
  1985.  
  1986. Protected Data 
  1987.  
  1988. Nested Types 
  1989.  
  1990. Public Data includes Styles and Notification IDs if they exist. 
  1991.  
  1992. To close all the panels in a chapter, double click on this panel's system menu. 
  1993.  
  1994.  
  1995. ΓòÉΓòÉΓòÉ <hidden> Derivation - IBuffer ΓòÉΓòÉΓòÉ
  1996.  
  1997. IBase
  1998.   Γöé
  1999. IVBase
  2000.   Γöé
  2001. IBuffer
  2002.  
  2003. Inherited by: 
  2004.  
  2005.      IDBCSBuffer 
  2006.  
  2007.  
  2008. ΓòÉΓòÉΓòÉ <hidden> Class Description - IBuffer ΓòÉΓòÉΓòÉ
  2009.  
  2010. ibuffer.hpp 
  2011.  
  2012. Objects of the IBuffer class define the contents of an IString. 
  2013.  
  2014.  
  2015. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IBuffer ΓòÉΓòÉΓòÉ
  2016.  
  2017. Comparisons
  2018. compare
  2019.  
  2020. Diagnostics
  2021. asDebugInfo
  2022.  
  2023. Editing
  2024. center
  2025. change
  2026. copy
  2027. insert
  2028. leftJustify
  2029. lowerCase
  2030. overlayWith
  2031. remove
  2032. reverse
  2033. rightJustify
  2034. strip
  2035. translate
  2036. upperCase
  2037.  
  2038. NLS Testing
  2039. includesDBCS
  2040. includesMBCS
  2041. includesSBCS
  2042. isDBCS
  2043. isMBCS
  2044. isSBCS
  2045. isValidDBCS
  2046. isValidMBCS
  2047.  
  2048. Queries
  2049. charType
  2050. contents
  2051. defaultBuffer
  2052. fromContents
  2053. length
  2054. next
  2055. null
  2056. useCount
  2057.  
  2058. Reallocation
  2059. checkAddition
  2060. checkMultiplication
  2061. newBuffer
  2062. overflow
  2063. setDefaultBuffer
  2064.  
  2065. Reference Counting
  2066. addRef
  2067. removeRef
  2068.  
  2069. Searches
  2070. indexOf
  2071. indexOfAnyBut
  2072. indexOfAnyOf
  2073. lastIndexOf
  2074. lastIndexOfAnyBut
  2075. lastIndexOfAnyOf
  2076.  
  2077. Subset
  2078. subString
  2079.  
  2080. Testing
  2081. isAlphabetic
  2082. isAlphanumeric
  2083. isASCII
  2084. isControl
  2085. isDigits
  2086. isGraphics
  2087. isHexDigits
  2088. isLowerCase
  2089. isPrintable
  2090. isPunctuation
  2091. isUpperCase
  2092. isWhiteSpace
  2093.  
  2094. Inherited Members
  2095. IVBase
  2096. asDebugInfo
  2097. asString
  2098.  
  2099. IBase
  2100. asDebugInfo
  2101. asString
  2102. messageFile
  2103. messageText
  2104. setMessageFile
  2105. version
  2106.  
  2107.  
  2108. ΓòÉΓòÉΓòÉ <hidden> IBuffer - Allocation ΓòÉΓòÉΓòÉ
  2109.  
  2110. Use these protected members to allocate and deallocate IBuffer objects. 
  2111.  
  2112.  
  2113. ΓòÉΓòÉΓòÉ <hidden> IBuffer - Comparisons ΓòÉΓòÉΓòÉ
  2114.  
  2115. Use these members to compare the IBuffer's contents to some other character 
  2116. array. 
  2117.  
  2118.  
  2119. ΓòÉΓòÉΓòÉ <hidden> IBuffer - Constructors ΓòÉΓòÉΓòÉ
  2120.  
  2121. Constructors for this class require the length of the buffer, which is the 
  2122. value to be stored in the len data member. 
  2123.  
  2124.  
  2125. ΓòÉΓòÉΓòÉ <hidden> IBuffer - DBCS Table ΓòÉΓòÉΓòÉ
  2126.  
  2127. Use this character array member to test characters for DBCS validity. 
  2128.  
  2129.  
  2130. ΓòÉΓòÉΓòÉ <hidden> IBuffer - Diagnostics ΓòÉΓòÉΓòÉ
  2131.  
  2132. Use these members to provide diagnostic information about the buffer. 
  2133.  
  2134.  
  2135. ΓòÉΓòÉΓòÉ <hidden> IBuffer - Editing ΓòÉΓòÉΓòÉ
  2136.  
  2137. These members are called by the corresponding IString members to edit the 
  2138. buffer's contents. 
  2139.  
  2140.  
  2141. ΓòÉΓòÉΓòÉ <hidden> IBuffer - Implementation ΓòÉΓòÉΓòÉ
  2142.  
  2143. This member helps implement this class. 
  2144.  
  2145.  
  2146. ΓòÉΓòÉΓòÉ <hidden> IBuffer - NLS Testing ΓòÉΓòÉΓòÉ
  2147.  
  2148. Corresponding IString members use these members to test the buffer's contents. 
  2149. These tests are character-set-specific. 
  2150.  
  2151.  
  2152. ΓòÉΓòÉΓòÉ <hidden> IBuffer - Protected Queries ΓòÉΓòÉΓòÉ
  2153.  
  2154. This member helps implement this class. 
  2155.  
  2156.  
  2157. ΓòÉΓòÉΓòÉ <hidden> IBuffer - Queries ΓòÉΓòÉΓòÉ
  2158.  
  2159. Use these members to access various attributes of a buffer. 
  2160.  
  2161.  
  2162. ΓòÉΓòÉΓòÉ <hidden> IBuffer - Reallocation ΓòÉΓòÉΓòÉ
  2163.  
  2164. Use these members to manage reallocation of IBuffers when strings' contents are 
  2165. modified. 
  2166.  
  2167.  
  2168. ΓòÉΓòÉΓòÉ <hidden> IBuffer - Reference Counting ΓòÉΓòÉΓòÉ
  2169.  
  2170. Use these members to manage the buffer reference count. 
  2171.  
  2172.  
  2173. ΓòÉΓòÉΓòÉ <hidden> IBuffer - Search Initialization ΓòÉΓòÉΓòÉ
  2174.  
  2175. These members help implement this class. 
  2176.  
  2177.  
  2178. ΓòÉΓòÉΓòÉ <hidden> IBuffer - Searches ΓòÉΓòÉΓòÉ
  2179.  
  2180. These members are called by the corresponding IString members to search the 
  2181. buffer's contents. 
  2182.  
  2183.  
  2184. ΓòÉΓòÉΓòÉ <hidden> IBuffer - Subset ΓòÉΓòÉΓòÉ
  2185.  
  2186. Use this member when a subset of characters is required. 
  2187.  
  2188.  
  2189. ΓòÉΓòÉΓòÉ <hidden> IBuffer - Testing ΓòÉΓòÉΓòÉ
  2190.  
  2191. Corresponding IString members use these members to test the buffer's contents. 
  2192.  
  2193.  
  2194. ΓòÉΓòÉΓòÉ <hidden> Protected Functions - IBuffer ΓòÉΓòÉΓòÉ
  2195.  
  2196. Allocation
  2197. allocate
  2198. operator delete
  2199. operator new
  2200.  
  2201. Constructors
  2202. IBuffer
  2203. ~IBuffer
  2204.  
  2205. Implementation
  2206. initialize
  2207.  
  2208. Protected Queries
  2209. className
  2210.  
  2211. Search Initialization
  2212. startBackwardsSearch
  2213. startSearch
  2214.  
  2215.  
  2216. ΓòÉΓòÉΓòÉ <hidden> Public Data - IBuffer ΓòÉΓòÉΓòÉ
  2217.  
  2218. DBCS Table
  2219. dbcsTable
  2220.  
  2221.  
  2222. ΓòÉΓòÉΓòÉ <hidden> Protected Data - IBuffer ΓòÉΓòÉΓòÉ
  2223.  
  2224. Inherited Members
  2225. IBase
  2226. recoverable
  2227. unrecoverable
  2228.  
  2229.  
  2230. ΓòÉΓòÉΓòÉ 1.8.1. IBuffer::addRef ΓòÉΓòÉΓòÉ
  2231.  
  2232. Increments the usage count. 
  2233.  
  2234. public:
  2235. void addRef();
  2236.  
  2237.  
  2238. ΓòÉΓòÉΓòÉ 1.8.2. IBuffer::allocate ΓòÉΓòÉΓòÉ
  2239.  
  2240. Returns a new buffer of the specified length. 
  2241.  
  2242. protected:
  2243. virtual IBuffer* allocate(unsigned bufLength) const;
  2244.  
  2245.  
  2246. ΓòÉΓòÉΓòÉ 1.8.3. IBuffer::asDebugInfo ΓòÉΓòÉΓòÉ
  2247.  
  2248. Returns information about the buffer's internal representation that you can use 
  2249. for debugging. 
  2250.  
  2251. public:
  2252. virtual IString asDebugInfo() const;
  2253.  
  2254.  
  2255. ΓòÉΓòÉΓòÉ 1.8.4. IBuffer::center ΓòÉΓòÉΓòÉ
  2256.  
  2257. Centers the receiver within a string of the specified length. 
  2258.  
  2259. public:
  2260. virtual IBuffer* center(unsigned newLen, char padCharacter);
  2261.  
  2262.  
  2263. ΓòÉΓòÉΓòÉ 1.8.5. IBuffer::change ΓòÉΓòÉΓòÉ
  2264.  
  2265. Changes occurrences of a specified pattern to a specified replacement string. 
  2266. You can specify the number of changes to perform. The default is to change all 
  2267. occurrences of the pattern. You can also specify the position in the receiver 
  2268. at which to begin. 
  2269.  
  2270. The parameters are the following: 
  2271.  
  2272. pSource   The pattern string as NULL-terminated string. The library searches 
  2273.           for the pattern string within the receiver's data. 
  2274.  
  2275. sourceLen The length of the source string. 
  2276.  
  2277. pTarget   The target string as a NULL-terminated string. It replaces the 
  2278.           occurrences of the pattern string in the receiver's data. 
  2279.  
  2280. targetLen The length of the target string. 
  2281.  
  2282. startPos  The position to start the search at within the target's data. 
  2283.  
  2284. numChanges The number of patterns to search for and change. 
  2285.  
  2286. public:
  2287. virtual IBuffer*
  2288.   change( const char* pSource,
  2289.           unsigned sourceLen,
  2290.           const char* pTarget,
  2291.           unsigned targetLen,
  2292.           unsigned startPos,
  2293.           unsigned numChanges);
  2294.  
  2295.  
  2296. ΓòÉΓòÉΓòÉ 1.8.6. IBuffer::charType ΓòÉΓòÉΓòÉ
  2297.  
  2298. Returns the type of a character at the specified index. 
  2299.  
  2300. public:
  2301. virtual IStringEnum::CharType
  2302.   charType( unsigned index) const;
  2303.  
  2304.  
  2305. ΓòÉΓòÉΓòÉ 1.8.7. IBuffer::checkAddition ΓòÉΓòÉΓòÉ
  2306.  
  2307. Verifies that the two parameters, when added, do not overflow an unsigned 
  2308. integer. 
  2309.  
  2310. public:
  2311. static unsigned
  2312.   checkAddition( unsigned addend1,
  2313.                  unsigned addend2);
  2314.  
  2315.  
  2316. ΓòÉΓòÉΓòÉ 1.8.8. IBuffer::checkMultiplication ΓòÉΓòÉΓòÉ
  2317.  
  2318. Verifies that the two parameters, when multiplied, do not overflow an unsigned 
  2319. integer. 
  2320.  
  2321. public:
  2322. static unsigned
  2323.   checkMultiplication( unsigned factor1,
  2324.                        unsigned factor2);
  2325.  
  2326.  
  2327. ΓòÉΓòÉΓòÉ 1.8.9. IBuffer::className ΓòÉΓòÉΓòÉ
  2328.  
  2329. Returns the name of the class (IBuffer). 
  2330.  
  2331. protected:
  2332. virtual const char* className() const;
  2333.  
  2334.  
  2335. ΓòÉΓòÉΓòÉ 1.8.10. IBuffer::compare ΓòÉΓòÉΓòÉ
  2336.  
  2337. Compares the buffer's contents to the contents of the specified character 
  2338. array. 
  2339.  
  2340. public:
  2341. virtual Comparison
  2342.   compare( const void* p,
  2343.            unsigned len) const;
  2344.  
  2345.  
  2346. ΓòÉΓòÉΓòÉ 1.8.11. IBuffer::contents ΓòÉΓòÉΓòÉ
  2347.  
  2348. Returns the address of the buffer's contents. 
  2349.  
  2350. Overload 1 
  2351.  
  2352. public:
  2353. const char* contents() const;
  2354.  
  2355. Overload 2 
  2356.  
  2357. public:
  2358. char* contents();
  2359.  
  2360.  
  2361. ΓòÉΓòÉΓòÉ 1.8.12. IBuffer::copy ΓòÉΓòÉΓòÉ
  2362.  
  2363. Replaces the receiver's contents with a specified number of replications of 
  2364. itself. 
  2365.  
  2366. public:
  2367. virtual IBuffer* copy(unsigned numCopies);
  2368.  
  2369.  
  2370. ΓòÉΓòÉΓòÉ 1.8.13. IBuffer::dbcsTable ΓòÉΓòÉΓòÉ
  2371.  
  2372. Table of DBCS first-byte flags ('dbcsTable[n] == 1' if and only if n is a valid 
  2373. DBCS first byte). 
  2374.  
  2375. public:
  2376. static char dbcsTable [ 256 ];
  2377.  
  2378. Platform Support 
  2379.  
  2380. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  2381. ΓöéPM          ΓöéMOTIF       Γöé
  2382. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  2383. ΓöéYes         ΓöéNo          Γöé
  2384. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  2385.  
  2386.  
  2387. ΓòÉΓòÉΓòÉ 1.8.14. IBuffer::defaultBuffer ΓòÉΓòÉΓòÉ
  2388.  
  2389. Returns the address of the NULL buffer for the class. This is a static 
  2390. function. 
  2391.  
  2392. public:
  2393. static IBuffer* defaultBuffer();
  2394.  
  2395.  
  2396. ΓòÉΓòÉΓòÉ 1.8.15. IBuffer::fromContents ΓòÉΓòÉΓòÉ
  2397.  
  2398. Returns the address of IBuffer using the specified pointer to its contents. 
  2399. This is a static function. 
  2400.  
  2401. Note:  It is important that pBuffer point to the actual beginning of data from 
  2402.        an IBuffer object. The User Interface Class Library can return only 
  2403.        values from the contents function of this class. Otherwise, if the 
  2404.        returned IBuffer pointer is used, errors could occur. 
  2405.  
  2406. public:
  2407. static IBuffer* fromContents(const char* pBuffer);
  2408.  
  2409.  
  2410. ΓòÉΓòÉΓòÉ 1.8.16. IBuffer::IBuffer ΓòÉΓòÉΓòÉ
  2411.  
  2412. Constructors for this class require the length of the buffer, which is the 
  2413. value to be stored in the len data member. 
  2414.  
  2415. protected:
  2416. IBuffer(unsigned newLen);
  2417.  
  2418. Initializes the reference count and null terminates the buffer. 
  2419.  
  2420.  
  2421. ΓòÉΓòÉΓòÉ 1.8.17. IBuffer::includesDBCS ΓòÉΓòÉΓòÉ
  2422.  
  2423. If any characters are DBCS (double-byte character set), true is returned. 
  2424.  
  2425. public:
  2426. virtual Boolean includesDBCS() const;
  2427.  
  2428.  
  2429. ΓòÉΓòÉΓòÉ 1.8.18. IBuffer::includesMBCS ΓòÉΓòÉΓòÉ
  2430.  
  2431. If any characters are MBCS (multiple-byte character set), true is returned. 
  2432.  
  2433. public:
  2434. virtual Boolean includesMBCS() const;
  2435.  
  2436.  
  2437. ΓòÉΓòÉΓòÉ 1.8.19. IBuffer::includesSBCS ΓòÉΓòÉΓòÉ
  2438.  
  2439. If any characters are SBCS (single-byte character set), true is returned. 
  2440.  
  2441. public:
  2442. virtual Boolean includesSBCS() const;
  2443.  
  2444.  
  2445. ΓòÉΓòÉΓòÉ 1.8.20. IBuffer::indexOf ΓòÉΓòÉΓòÉ
  2446.  
  2447. Returns the byte index of the first occurrence of the specified string within 
  2448. the receiver. If there are no occurrences, 0 is returned. In addition to 
  2449. IStrings, you can also specify a single character or an IStringTest. 
  2450.  
  2451. Overload 1 
  2452.  
  2453. public:
  2454. virtual unsigned
  2455.   indexOf( const IStringTest& aTest,
  2456.            unsigned startPos = 1) const;
  2457.  
  2458. Overload 2 
  2459.  
  2460. public:
  2461. virtual unsigned
  2462.   indexOf( const char* pString,
  2463.            unsigned len,
  2464.            unsigned startPos = 1) const;
  2465.  
  2466.  
  2467. ΓòÉΓòÉΓòÉ 1.8.21. IBuffer::indexOfAnyBut ΓòÉΓòÉΓòÉ
  2468.  
  2469. Returns the index of the first character of the receiver that is not in the 
  2470. specified set of characters. If there are no characters, 0 is returned. 
  2471. Alternatively, this function returns the index of the first character that 
  2472. fails the test prescribed by a specified IStringTestobject. 
  2473.  
  2474. Overload 1 
  2475.  
  2476. public:
  2477. virtual unsigned
  2478.   indexOfAnyBut( const IStringTest& aTest,
  2479.                  unsigned startPos = 1) const;
  2480.  
  2481. Overload 2 
  2482.  
  2483. public:
  2484. virtual unsigned
  2485.   indexOfAnyBut( const char* pString,
  2486.                  unsigned len,
  2487.                  unsigned startPos = 1) const;
  2488.  
  2489.  
  2490. ΓòÉΓòÉΓòÉ 1.8.22. IBuffer::indexOfAnyOf ΓòÉΓòÉΓòÉ
  2491.  
  2492. Returns the index of the first character of the receiver that is a character in 
  2493. the specified set of characters. If there are no characters, 0 is returned. 
  2494. Alternatively, this function returns the index of the first character that 
  2495. passes the test prescribed by a specified IStringTestobject. 
  2496.  
  2497. Overload 1 
  2498.  
  2499. public:
  2500. virtual unsigned
  2501.   indexOfAnyOf( const char* pString,
  2502.                 unsigned len,
  2503.                 unsigned startPos = 1) const;
  2504.  
  2505. Overload 2 
  2506.  
  2507. public:
  2508. virtual unsigned
  2509.   indexOfAnyOf( const IStringTest& aTest,
  2510.                 unsigned startPos = 1) const;
  2511.  
  2512.  
  2513. ΓòÉΓòÉΓòÉ 1.8.23. IBuffer::initialize ΓòÉΓòÉΓòÉ
  2514.  
  2515. Initializes (sets up a NULL buffer, a DBCS table, and so forth). This is a 
  2516. static function. 
  2517.  
  2518. protected:
  2519. static IBuffer* initialize();
  2520.  
  2521.  
  2522. ΓòÉΓòÉΓòÉ 1.8.24. IBuffer::insert ΓòÉΓòÉΓòÉ
  2523.  
  2524. Inserts the specified string after the specified location. 
  2525.  
  2526. public:
  2527. virtual IBuffer*
  2528.   insert( const char* pInsert,
  2529.           unsigned insertLen,
  2530.           unsigned pos,
  2531.           char padCharacter);
  2532.  
  2533.  
  2534. ΓòÉΓòÉΓòÉ 1.8.25. IBuffer::isAlphabetic ΓòÉΓòÉΓòÉ
  2535.  
  2536. If all the characters are in {'A'-'Z','a'-'z'}, true is returned. 
  2537.  
  2538. public:
  2539. virtual Boolean isAlphabetic() const;
  2540.  
  2541.  
  2542. ΓòÉΓòÉΓòÉ 1.8.26. IBuffer::isAlphanumeric ΓòÉΓòÉΓòÉ
  2543.  
  2544. If all the characters are in {'A'-'Z','a'-'z','0'-'9'}, true is returned. 
  2545.  
  2546. public:
  2547. virtual Boolean isAlphanumeric() const;
  2548.  
  2549.  
  2550. ΓòÉΓòÉΓòÉ 1.8.27. IBuffer::isASCII ΓòÉΓòÉΓòÉ
  2551.  
  2552. If all the characters are in {0x00-0x7F}, true is returned. 
  2553.  
  2554. public:
  2555. virtual Boolean isASCII() const;
  2556.  
  2557.  
  2558. ΓòÉΓòÉΓòÉ 1.8.28. IBuffer::isControl ΓòÉΓòÉΓòÉ
  2559.  
  2560. Returns true if all the characters are control characters. 
  2561.  
  2562. Control characters are defined by the iscntrl() C Library function as defined 
  2563. in the cntrl locale source file and in the cntrl class of the LC_CTYPE category 
  2564. of the current locale.  For example, on ASCII operating systems, control 
  2565. characters are those in the range {0x00-0x1F,0x7F}. 
  2566.  
  2567. public:
  2568. virtual Boolean isControl() const;
  2569.  
  2570.  
  2571. ΓòÉΓòÉΓòÉ 1.8.29. IBuffer::isDBCS ΓòÉΓòÉΓòÉ
  2572.  
  2573. If all the characters are DBCS, true is returned. 
  2574.  
  2575. public:
  2576. virtual Boolean isDBCS() const;
  2577.  
  2578.  
  2579. ΓòÉΓòÉΓòÉ 1.8.30. IBuffer::isDigits ΓòÉΓòÉΓòÉ
  2580.  
  2581. If all the characters are in {'0'-'9'}, true is returned. 
  2582.  
  2583. public:
  2584. virtual Boolean isDigits() const;
  2585.  
  2586.  
  2587. ΓòÉΓòÉΓòÉ 1.8.31. IBuffer::isGraphics ΓòÉΓòÉΓòÉ
  2588.  
  2589. Returns true if all the characters are graphics characters. 
  2590.  
  2591. Graphics characters are printable characters excluding the space character, as 
  2592. defined by the isgraph() C Library function in the graph locale source file and 
  2593. in the graph class of the LC_CTYPE category of the current locale.  For 
  2594. example, on ASCII operating systems, graphics characters are those in the range 
  2595. {0x21-0x7E}. 
  2596.  
  2597. public:
  2598. virtual Boolean isGraphics() const;
  2599.  
  2600.  
  2601. ΓòÉΓòÉΓòÉ 1.8.32. IBuffer::isHexDigits ΓòÉΓòÉΓòÉ
  2602.  
  2603. If all the characters are in {'0'-'9','A'-'F','a'-'f'}, true is returned. 
  2604.  
  2605. public:
  2606. virtual Boolean isHexDigits() const;
  2607.  
  2608.  
  2609. ΓòÉΓòÉΓòÉ 1.8.33. IBuffer::isLowerCase ΓòÉΓòÉΓòÉ
  2610.  
  2611. If all the characters are in {'a'-'z'}, true is returned. 
  2612.  
  2613. public:
  2614. virtual Boolean isLowerCase() const;
  2615.  
  2616.  
  2617. ΓòÉΓòÉΓòÉ 1.8.34. IBuffer::isMBCS ΓòÉΓòÉΓòÉ
  2618.  
  2619. If all the characters are MBCS, true is returned. 
  2620.  
  2621. public:
  2622. virtual Boolean isMBCS() const;
  2623.  
  2624.  
  2625. ΓòÉΓòÉΓòÉ 1.8.35. IBuffer::isPrintable ΓòÉΓòÉΓòÉ
  2626.  
  2627. Returns true if all the characters are printable characters. 
  2628.  
  2629. Printable characters are defined by the isprint() C Library function as defined 
  2630. in the print locale source file and in the print class of the LC_CTYPE category 
  2631. of the current locale.  For example, on ASCII systems, printable characters are 
  2632. those in the range {0x20-0x7E}. 
  2633.  
  2634. public:
  2635. virtual Boolean isPrintable() const;
  2636.  
  2637.  
  2638. ΓòÉΓòÉΓòÉ 1.8.36. IBuffer::isPunctuation ΓòÉΓòÉΓòÉ
  2639.  
  2640. If none of the characters is white space, a control character, or an 
  2641. alphanumeric character, true is returned. 
  2642.  
  2643. public:
  2644. virtual Boolean isPunctuation() const;
  2645.  
  2646.  
  2647. ΓòÉΓòÉΓòÉ 1.8.37. IBuffer::isSBCS ΓòÉΓòÉΓòÉ
  2648.  
  2649. If all the characters are SBCS, true is returned. 
  2650.  
  2651. public:
  2652. virtual Boolean isSBCS() const;
  2653.  
  2654.  
  2655. ΓòÉΓòÉΓòÉ 1.8.38. IBuffer::isUpperCase ΓòÉΓòÉΓòÉ
  2656.  
  2657. If all the characters are in {'A'-'Z'}, true is returned. 
  2658.  
  2659. public:
  2660. virtual Boolean isUpperCase() const;
  2661.  
  2662.  
  2663. ΓòÉΓòÉΓòÉ 1.8.39. IBuffer::isValidDBCS ΓòÉΓòÉΓòÉ
  2664.  
  2665. If no DBCS characters have a 0 second byte, true is returned. 
  2666.  
  2667. public:
  2668. virtual Boolean isValidDBCS() const;
  2669.  
  2670.  
  2671. ΓòÉΓòÉΓòÉ 1.8.40. IBuffer::isValidMBCS ΓòÉΓòÉΓòÉ
  2672.  
  2673. If no MBCS characters have a 0 second byte, true is returned. 
  2674.  
  2675. public:
  2676. virtual Boolean isValidMBCS() const;
  2677.  
  2678.  
  2679. ΓòÉΓòÉΓòÉ 1.8.41. IBuffer::isWhiteSpace ΓòÉΓòÉΓòÉ
  2680.  
  2681. Returns true if all the characters are whitespace characters. 
  2682.  
  2683. Whitespace characters are defined by the isspace() C Library function as 
  2684. defined in the space locale source file and in the space class of the LC_CTYPE 
  2685. category of the current locale.  For example, on ASCII systems, printable 
  2686. characters are those in the range {0x09-0x0D,0x20}. 
  2687.  
  2688. public:
  2689. virtual Boolean isWhiteSpace() const;
  2690.  
  2691.  
  2692. ΓòÉΓòÉΓòÉ 1.8.42. IBuffer::lastIndexOf ΓòÉΓòÉΓòÉ
  2693.  
  2694. Returns the index of the last occurrence of the specified string or character. 
  2695. The search starts at the position specified by startPos (inclusive) and 
  2696. proceeds backward. The returned value is in the range 0 <= x <= startPos. The 
  2697. default of 0 starts the search at the end of the receiver's string. If the 
  2698. search target is not found, 0 is returned. 
  2699.  
  2700. If you specify 0 for startPos, this function returns 0 indicating the search 
  2701. target was not found. 
  2702.  
  2703. Overload 1 
  2704.  
  2705. public:
  2706. virtual unsigned
  2707.   lastIndexOf( const char* pString,
  2708.                unsigned len,
  2709.                unsigned startPos = 0) const;
  2710.  
  2711. Overload 2 
  2712.  
  2713. public:
  2714. virtual unsigned
  2715.   lastIndexOf( const IStringTest& aTest,
  2716.                unsigned startPos = 0) const;
  2717.  
  2718.  
  2719. ΓòÉΓòÉΓòÉ 1.8.43. IBuffer::lastIndexOfAnyBut ΓòÉΓòÉΓòÉ
  2720.  
  2721. Returns the index of the last character not in the specified string or 
  2722. character. The search starts at the position specified by startPos (inclusive) 
  2723. and proceeds backward. The default of 0 starts the search at the end of the 
  2724. receiver's string. If the search target is not found, 0 is returned. 
  2725.  
  2726. If you specify 0 for startPos, this function returns 0 indicating the search 
  2727. target was not found. 
  2728.  
  2729. Overload 1 
  2730.  
  2731. public:
  2732. virtual unsigned
  2733.   lastIndexOfAnyBut( const IStringTest& aTest,
  2734.                      unsigned startPos = 0) const;
  2735.  
  2736. Overload 2 
  2737.  
  2738. public:
  2739. virtual unsigned
  2740.   lastIndexOfAnyBut( const char* pString,
  2741.                      unsigned len,
  2742.                      unsigned startPos = 0) const;
  2743.  
  2744.  
  2745. ΓòÉΓòÉΓòÉ 1.8.44. IBuffer::lastIndexOfAnyOf ΓòÉΓòÉΓòÉ
  2746.  
  2747. Returns the index of the last character in the specified string or character. 
  2748. The search starts at the position specified by startPos (inclusive) and 
  2749. proceeds backward. The default of 0 starts the search at the end of the 
  2750. receiver's string. If the search target is not found, 0 is returned. 
  2751.  
  2752. If you specify 0 for startPos, this function returns 0 indicating the search 
  2753. target was not found. 
  2754.  
  2755. Overload 1 
  2756.  
  2757. public:
  2758. virtual unsigned
  2759.   lastIndexOfAnyOf( const char* pString,
  2760.                     unsigned len,
  2761.                     unsigned startPos = 0) const;
  2762.  
  2763. Overload 2 
  2764.  
  2765. public:
  2766. virtual unsigned
  2767.   lastIndexOfAnyOf( const IStringTest& aTest,
  2768.                     unsigned startPos = 0) const;
  2769.  
  2770.  
  2771. ΓòÉΓòÉΓòÉ 1.8.45. IBuffer::leftJustify ΓòÉΓòÉΓòÉ
  2772.  
  2773. Left-justifies the receiver in a string of the specified length. If the new 
  2774. length (newLen) is larger than the current length, the string is extended by 
  2775. the pad character (padCharacter). The default pad character is a blank. 
  2776.  
  2777. public:
  2778. virtual IBuffer*
  2779.   leftJustify( unsigned newLen,
  2780.                char padCharacter);
  2781.  
  2782.  
  2783. ΓòÉΓòÉΓòÉ 1.8.46. IBuffer::length ΓòÉΓòÉΓòÉ
  2784.  
  2785. Returns the length of the buffer's contents. 
  2786.  
  2787. public:
  2788. unsigned length() const;
  2789.  
  2790.  
  2791. ΓòÉΓòÉΓòÉ 1.8.47. IBuffer::lowerCase ΓòÉΓòÉΓòÉ
  2792.  
  2793. Translates all upper-case letters in the receiver to lower-case. 
  2794.  
  2795. public:
  2796. virtual IBuffer* lowerCase();
  2797.  
  2798.  
  2799. ΓòÉΓòÉΓòÉ 1.8.48. IBuffer::newBuffer ΓòÉΓòÉΓòÉ
  2800.  
  2801. Allocates a new buffer and initializes it with the contents of up to three 
  2802. specified buffers. 
  2803.  
  2804. The parameters are the following: 
  2805.  
  2806. p1        The pointer to the first part to be copied into the data area of the 
  2807.           new buffer. The first part is len1 bytes long. If the pointer is 
  2808.           NULL, the padChar is copied for len1 bytes. 
  2809.  
  2810. len1      The length, in bytes, of the first part to be copied into the new 
  2811.           buffer. 
  2812.  
  2813. p2        A pointer to the second part, immediately following the first part, 
  2814.           to be copied into the data area of the new buffer. The second part is 
  2815.           len2 bytes long. If the pointer is NULL, the padChar is copied for 
  2816.           len2 bytes. If nothing is specified for p2, it is NULL. 
  2817.  
  2818. len2      The length, in bytes, of the second part to be copied into the new 
  2819.           buffer. If nothing is specified for len2, it defaults to 0 bytes. 
  2820.  
  2821. p3        The pointer to the third part, immediately following the second part, 
  2822.           to be copied into the data area of the new buffer. The third part is 
  2823.           len3 bytes long. If the pointer is NULL, the padChar is copied for 
  2824.           len3 bytes. If nothing is specified for p3, it is NULL. 
  2825.  
  2826. len3      The length, in bytes, of the third part to be copied into the new 
  2827.           buffer. If nothing is specified for len3, it defaults to 0 bytes. 
  2828.  
  2829. padChar   The character to use as the pad in the cases of p1, p2, or p3 being 
  2830.           NULL. If you do not specify a padChar, it defaults to the character 
  2831.           0. 
  2832.  
  2833. Note:  If the sum of len1, len2, and len3 is 0, a reference to the NULL buffer 
  2834.        for this class is added and the address is returned. 
  2835.  
  2836. public:
  2837. IBuffer*
  2838.   newBuffer( const void* p1,
  2839.              unsigned len1,
  2840.              const void* p2 = 0,
  2841.              unsigned len2 = 0,
  2842.              const void* p3 = 0,
  2843.              unsigned len3 = 0,
  2844.              char padChar = 0) const;
  2845.  
  2846.  
  2847. ΓòÉΓòÉΓòÉ 1.8.49. IBuffer::next ΓòÉΓòÉΓòÉ
  2848.  
  2849. Returns a pointer to the next character, not the next byte, in the buffer. 
  2850.  
  2851. Overload 1 
  2852.  
  2853. public:
  2854. virtual const char* next(const char* prev) const;
  2855.  
  2856. Overload 2 
  2857.  
  2858. public:
  2859. virtual char* next(const char* prev);
  2860.  
  2861.  
  2862. ΓòÉΓòÉΓòÉ 1.8.50. IBuffer::null ΓòÉΓòÉΓòÉ
  2863.  
  2864. Returns the address of the NULL buffer. 
  2865.  
  2866. public:
  2867. IBuffer* null() const;
  2868.  
  2869.  
  2870. ΓòÉΓòÉΓòÉ 1.8.51. IBuffer::operator delete ΓòÉΓòÉΓòÉ
  2871.  
  2872. Deallocates a buffer. 
  2873.  
  2874. Overload 1 
  2875.  
  2876. protected:
  2877. void operator delete(void* p);
  2878.  
  2879. Overload 2 
  2880.  
  2881. protected:
  2882. void
  2883.   operator delete( void* p,
  2884.                    const char* filename,
  2885.                    size_t linenum);
  2886.  
  2887.  
  2888. ΓòÉΓòÉΓòÉ 1.8.52. IBuffer::operator new ΓòÉΓòÉΓòÉ
  2889.  
  2890. Allocates space for a buffer of the specified length. The returned pointer is 
  2891. an area the size of an IBuffer large enough to hold data of size bufLen. 
  2892.  
  2893. Overload 1 
  2894.  
  2895. protected:
  2896. void*
  2897.   operator new( size_t t,
  2898.                 const char* filename,
  2899.                 size_t linenum,
  2900.                 unsigned bufLen);
  2901.  
  2902. Overload 2 
  2903.  
  2904. protected:
  2905. void* operator new(size_t t, unsigned bufLen);
  2906.  
  2907.  
  2908. ΓòÉΓòÉΓòÉ 1.8.53. IBuffer::overflow ΓòÉΓòÉΓòÉ
  2909.  
  2910. Throws an exception when IBuffer::checkAdditionor IBuffer::checkMultiplication 
  2911. detect an overflow. 
  2912.  
  2913. public:
  2914. static unsigned overflow();
  2915.  
  2916. Exceptions 
  2917.  
  2918. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  2919. ΓöéIInvalidRequest     ΓöéYou made an IBuffer request causing an  Γöé
  2920. Γöé                    Γöéoverflow. Typically, this occurs during Γöé
  2921. Γöé                    Γöéobject construction or during an        Γöé
  2922. Γöé                    Γöéoperation which grows an underlying     Γöé
  2923. Γöé                    ΓöéIBuffer object. Likely culprits might beΓöé
  2924. Γöé                    Γöéan IBuffer::newBuffer or IString::changeΓöé
  2925. Γöé                    Γöécall.                                   Γöé
  2926. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  2927.  
  2928.  
  2929. ΓòÉΓòÉΓòÉ 1.8.54. IBuffer::overlayWith ΓòÉΓòÉΓòÉ
  2930.  
  2931. Replaces a specified portion of the receiver's contents with the specified 
  2932. string. If pos is beyond the end of the receiver's data, it is padded with the 
  2933. pad character (padCharacter). 
  2934.  
  2935. public:
  2936. virtual IBuffer*
  2937.   overlayWith( const char* overlay,
  2938.                unsigned len,
  2939.                unsigned pos,
  2940.                char padCharacter);
  2941.  
  2942.  
  2943. ΓòÉΓòÉΓòÉ 1.8.55. IBuffer::remove ΓòÉΓòÉΓòÉ
  2944.  
  2945. Deletes the specified portion of the string (that is, the substring) from the 
  2946. receiver. You can use this function to truncate an IString object at a specific 
  2947. position. For example: 
  2948.  
  2949. aString.remove(8);
  2950. removes the substring beginning at index 8 and takes the rest of the string as 
  2951. a default. 
  2952.  
  2953. public:
  2954. virtual IBuffer*
  2955.   remove( unsigned startPos,
  2956.           unsigned numChars);
  2957.  
  2958.  
  2959. ΓòÉΓòÉΓòÉ 1.8.56. IBuffer::removeRef ΓòÉΓòÉΓòÉ
  2960.  
  2961. Decrements the usage count and deletes the buffer when the usage count goes to 
  2962. 0. 
  2963.  
  2964. public:
  2965. void removeRef();
  2966.  
  2967.  
  2968. ΓòÉΓòÉΓòÉ 1.8.57. IBuffer::reverse ΓòÉΓòÉΓòÉ
  2969.  
  2970. Reverses the receiver's contents. 
  2971.  
  2972. public:
  2973. virtual IBuffer* reverse();
  2974.  
  2975.  
  2976. ΓòÉΓòÉΓòÉ 1.8.58. IBuffer::rightJustify ΓòÉΓòÉΓòÉ
  2977.  
  2978. Right-justifies the receiver in a string of the specified length. If the 
  2979. receiver's data is shorter than the requested length (newLen), it is padded on 
  2980. the left with the pad character (padCharacter). The default pad character is a 
  2981. blank. 
  2982.  
  2983. public:
  2984. virtual IBuffer*
  2985.   rightJustify( unsigned newLen,
  2986.                 char padCharacter);
  2987.  
  2988.  
  2989. ΓòÉΓòÉΓòÉ 1.8.59. IBuffer::setDefaultBuffer ΓòÉΓòÉΓòÉ
  2990.  
  2991. Sets the default (NULL) buffer. The specified buffer must be comprised of a 
  2992. single NULL byte. 
  2993.  
  2994. public:
  2995. static void setDefaultBuffer(IBuffer* newDefaultBuffer);
  2996.  
  2997.  
  2998. ΓòÉΓòÉΓòÉ 1.8.60. IBuffer::startBackwardsSearch ΓòÉΓòÉΓòÉ
  2999.  
  3000. Initializes a search of type IString::lastIndexOf. 
  3001.  
  3002.     If searchLen is greater than the length of the buffer, 0 is returned 
  3003.      indicating an invalid search request. 
  3004.  
  3005.     If the starting position is 0 or beyond the last searchLen bytes of the 
  3006.      buffer, the position where the last searchLen bytes start in the buffer is 
  3007.      returned. 
  3008.  
  3009.     If the starting position is 1 through the last searchLen bytes, the value 
  3010.      of startingPos is returned. 
  3011.  
  3012. protected:
  3013. virtual unsigned
  3014.   startBackwardsSearch( unsigned startPos,
  3015.                         unsigned searchLen) const;
  3016.  
  3017.  
  3018. ΓòÉΓòÉΓòÉ 1.8.61. IBuffer::startSearch ΓòÉΓòÉΓòÉ
  3019.  
  3020. Initializes a search of type IString::indexOf. 
  3021.  
  3022.     If startPos is 0, the search uses a starting position of 1. 
  3023.  
  3024.     If the specified startPos and searchLen result in an invalid search, 0 is 
  3025.      returned. This usually occurs when the sum of startPos and searchLen is 
  3026.      greater than the size of the buffer. 
  3027.  
  3028. protected:
  3029. virtual unsigned
  3030.   startSearch( unsigned startPos,
  3031.                unsigned searchLen) const;
  3032.  
  3033.  
  3034. ΓòÉΓòÉΓòÉ 1.8.62. IBuffer::strip ΓòÉΓòÉΓòÉ
  3035.  
  3036. Strips both leading and trailing character or characters. You can specify the 
  3037. character or characters as the following: 
  3038.  
  3039.     A char* array 
  3040.     An IStringTestobject 
  3041. The default is white space. 
  3042.  
  3043. Overload 1 
  3044.  
  3045. public:
  3046. virtual IBuffer*
  3047.   strip( const IStringTest& aTest,
  3048.          IStringEnum::StripMode mode);
  3049.  
  3050. Overload 2 
  3051.  
  3052. public:
  3053. virtual IBuffer*
  3054.   strip( const char* pChars,
  3055.          unsigned len,
  3056.          IStringEnum::StripMode mode);
  3057.  
  3058.  
  3059. ΓòÉΓòÉΓòÉ 1.8.63. IBuffer::subString ΓòÉΓòÉΓòÉ
  3060.  
  3061. Returns a new IBuffer, of the same type as the previous one, containing the 
  3062. specified subset of characters. 
  3063.  
  3064. The parameters are the following: 
  3065.  
  3066. startPos  The index at which to start the substring. If startPos is 0, the 
  3067.           function uses position 1. If startPos is beyond the end of the 
  3068.           buffer, nothing is copied. The buffer is filled out by the specified 
  3069.           padding character. 
  3070.  
  3071. len       The length to copy from the buffer. If the length extends beyond the 
  3072.           end of the buffer, only the portion up to the end is copied. The 
  3073.           buffer is then padded. If len is 0, a reference to the NULL buffer is 
  3074.           returned. 
  3075.  
  3076. padCharacter Specifies the character the function uses to pad the copied string 
  3077.           if less than len bytes have been copied from the source buffer. 
  3078.  
  3079. public:
  3080. virtual IBuffer*
  3081.   subString( unsigned startPos,
  3082.              unsigned len,
  3083.              char padCharacter) const;
  3084.  
  3085.  
  3086. ΓòÉΓòÉΓòÉ 1.8.64. IBuffer::translate ΓòÉΓòÉΓòÉ
  3087.  
  3088. Converts all of the receiver's characters that are in the first specified 
  3089. string to the corresponding character in the second specified string. 
  3090.  
  3091. public:
  3092. virtual IBuffer*
  3093.   translate( const char* pInputChars,
  3094.              unsigned inputLen,
  3095.              const char* pOutputChars,
  3096.              unsigned outputLen,
  3097.              char padCharacter);
  3098.  
  3099.  
  3100. ΓòÉΓòÉΓòÉ 1.8.65. IBuffer::upperCase ΓòÉΓòÉΓòÉ
  3101.  
  3102. Translates all lower-case letters in the receiver to upper-case. 
  3103.  
  3104. public:
  3105. virtual IBuffer* upperCase();
  3106.  
  3107.  
  3108. ΓòÉΓòÉΓòÉ 1.8.66. IBuffer::useCount ΓòÉΓòÉΓòÉ
  3109.  
  3110. Returns the number of IStrings referring to the buffer. 
  3111.  
  3112. public:
  3113. unsigned useCount() const;
  3114.  
  3115.  
  3116. ΓòÉΓòÉΓòÉ 1.8.67. IBuffer::~IBuffer ΓòÉΓòÉΓòÉ
  3117.  
  3118. protected:
  3119. ~IBuffer();
  3120.  
  3121. Destructor, does nothing. 
  3122.  
  3123.  
  3124. ΓòÉΓòÉΓòÉ <hidden> Nested Types - IBuffer ΓòÉΓòÉΓòÉ
  3125.  
  3126. Type Definitions 
  3127.  
  3128.       Comparison 
  3129.  
  3130.  
  3131. ΓòÉΓòÉΓòÉ <hidden> Type Definition - IBuffer::Comparison ΓòÉΓòÉΓòÉ
  3132.  
  3133. typedef enum { equal , greaterThan , lessThan } Comparison;
  3134.  
  3135. These enumerators specify the possible valid return codes from 
  3136. IBuffer::compare. 
  3137.  
  3138. equal 
  3139.      The buffer's contents are equal to the contents of the specified character 
  3140.      array. 
  3141.  
  3142. greaterThan 
  3143.      The buffer's contents are greater than the contents of the specified 
  3144.      character array. 
  3145.  
  3146. lessThan 
  3147.      The buffer's contents are less than the contents of the specified 
  3148.      character array. 
  3149.  
  3150.  
  3151. ΓòÉΓòÉΓòÉ 1.9. ICLibErrorInfo ΓòÉΓòÉΓòÉ
  3152.  
  3153. Description 
  3154.  
  3155. Derivation 
  3156.  
  3157. Constructors 
  3158.  
  3159. Public Functions 
  3160.  
  3161. Protected Data 
  3162.  
  3163. To close all the panels in a chapter, double click on this panel's system menu. 
  3164.  
  3165.  
  3166. ΓòÉΓòÉΓòÉ <hidden> Derivation - ICLibErrorInfo ΓòÉΓòÉΓòÉ
  3167.  
  3168. IBase
  3169.   Γöé
  3170. IVBase
  3171.   Γöé
  3172. IErrorInfo
  3173.   Γöé
  3174. ICLibErrorInfo
  3175.  
  3176. Inherited by none. 
  3177.  
  3178.  
  3179. ΓòÉΓòÉΓòÉ <hidden> Class Description - ICLibErrorInfo ΓòÉΓòÉΓòÉ
  3180.  
  3181. iexcept.hpp 
  3182.  
  3183. Objects of the ICLibErrorInfo class represent error information. When a C 
  3184. library call results in an error condition, objects of the ICLibErrorInfo class 
  3185. are created. The per thread global variable errno is used to obtain the error 
  3186. text. 
  3187.  
  3188. The User Interface Class Library provides the ITHROWCLIBERROR macro for 
  3189. throwing exceptions constructed with ICLibErrorInfo information. This macro has 
  3190. the following parameters: 
  3191.  
  3192. location  The name of the C function returning the error code, the name of the 
  3193.           file the function is in, and the function's line number. 
  3194.  
  3195. name      Use the enumeration IErrorInfo::ExceptionType to specify the type of 
  3196.           the exception. The default is accessError. 
  3197.  
  3198. severity  Use the enumeration IException::Severity to specify the severity of 
  3199.           the error. The default is recoverable. 
  3200.  
  3201. This macro generates code that calls throwCLibError, which does the following: 
  3202.  
  3203.   1. Creates an ICLibErrorInfo object 
  3204.   2. Uses the object to create an IException object 
  3205.   3. Adds the CLibrary error group to the object 
  3206.   4. Adds location information 
  3207.   5. Logs the exception data 
  3208.   6. Throws the exception 
  3209.  
  3210.  
  3211. ΓòÉΓòÉΓòÉ <hidden> Public Functions - ICLibErrorInfo ΓòÉΓòÉΓòÉ
  3212.  
  3213. Constructors
  3214. ICLibErrorInfo
  3215. ~ICLibErrorInfo
  3216.  
  3217. Error Information
  3218. errorId
  3219. isAvailable
  3220. operator const char *
  3221. text
  3222.  
  3223. Throw Support
  3224. throwCLibError
  3225.  
  3226. Inherited Members
  3227. IErrorInfo
  3228. errorId
  3229. isAvailable
  3230. operator const char *
  3231. text
  3232. throwError
  3233.  
  3234. IVBase
  3235. asDebugInfo
  3236. asString
  3237.  
  3238. IBase
  3239. asDebugInfo
  3240. asString
  3241. messageFile
  3242. messageText
  3243. setMessageFile
  3244. version
  3245.  
  3246.  
  3247. ΓòÉΓòÉΓòÉ <hidden> ICLibErrorInfo - Constructors ΓòÉΓòÉΓòÉ
  3248.  
  3249. You can construct and destruct objects of this class. You cannot copy or assign 
  3250. objects of this class. 
  3251.  
  3252.  
  3253. ΓòÉΓòÉΓòÉ <hidden> ICLibErrorInfo - Error Information ΓòÉΓòÉΓòÉ
  3254.  
  3255. Use these members to return the error information provided by objects of this 
  3256. class. 
  3257.  
  3258.  
  3259. ΓòÉΓòÉΓòÉ <hidden> ICLibErrorInfo - Hidden Functions ΓòÉΓòÉΓòÉ
  3260.  
  3261. These members are hidden to prevent you from copying and assigning objects of 
  3262. this class. 
  3263.  
  3264.  
  3265. ΓòÉΓòÉΓòÉ <hidden> ICLibErrorInfo - Throw Support ΓòÉΓòÉΓòÉ
  3266.  
  3267. Use these members to support the throwing of exceptions. 
  3268.  
  3269.  
  3270. ΓòÉΓòÉΓòÉ <hidden> Protected Data - ICLibErrorInfo ΓòÉΓòÉΓòÉ
  3271.  
  3272. Inherited Members
  3273. IBase
  3274. recoverable
  3275. unrecoverable
  3276.  
  3277.  
  3278. ΓòÉΓòÉΓòÉ 1.9.1. ICLibErrorInfo::errorId ΓòÉΓòÉΓòÉ
  3279.  
  3280. Returns the value of errno, which you can use to obtain the errno information. 
  3281.  
  3282. public:
  3283. virtual unsigned long errorId() const;
  3284.  
  3285.  
  3286. ΓòÉΓòÉΓòÉ 1.9.2. ICLibErrorInfo::ICLibErrorInfo ΓòÉΓòÉΓòÉ
  3287.  
  3288. You can construct and destruct objects of this class. You cannot copy or assign 
  3289. objects of this class. 
  3290.  
  3291. public:
  3292. ICLibErrorInfo(const char* CLibFunctionName = 0);
  3293.  
  3294. You can only construct objects of this class using the default constructor. 
  3295.  
  3296. Note:  If the constructor cannot load the error text, the User Interface Class 
  3297.        Library provides the following default text: "No error text is 
  3298.        available." 
  3299.  
  3300. CLibFunctionName (Optional) The name of the failing C library function. If you 
  3301.           specify CLibFunctionName, the constructor prefixes it to the error 
  3302.           text. 
  3303.  
  3304.  
  3305. ΓòÉΓòÉΓòÉ 1.9.3. ICLibErrorInfo::isAvailable ΓòÉΓòÉΓòÉ
  3306.  
  3307. If the error text is available, true is returned. 
  3308.  
  3309. public:
  3310. virtual Boolean isAvailable() const;
  3311.  
  3312.  
  3313. ΓòÉΓòÉΓòÉ 1.9.4. ICLibErrorInfo::operator const char * ΓòÉΓòÉΓòÉ
  3314.  
  3315. Returns the error text. 
  3316.  
  3317. public:
  3318. virtual  operator const char *() const;
  3319.  
  3320.  
  3321. ΓòÉΓòÉΓòÉ 1.9.5. ICLibErrorInfo::text ΓòÉΓòÉΓòÉ
  3322.  
  3323. Returns the error text. 
  3324.  
  3325. public:
  3326. virtual const char* text() const;
  3327.  
  3328.  
  3329. ΓòÉΓòÉΓòÉ 1.9.6. ICLibErrorInfo::throwCLibError ΓòÉΓòÉΓòÉ
  3330.  
  3331. Creates an ICLibErrorInfo object and uses the text from it to the following: 
  3332.  
  3333.   1. Create an exception object 
  3334.   2. Add the location information to it 
  3335.   3. Log the exception data 
  3336.   4. Throw the exception 
  3337.  
  3338. functionName The name of the function where the exception occurred. 
  3339.  
  3340. location  An IExceptionLocation object containing the following: 
  3341.  
  3342.               Function name 
  3343.               File name 
  3344.               Line number where the function is called 
  3345.  
  3346. name      Use the enumeration IErrorInfo::ExceptionType to specify the type of 
  3347.           the exception. The default is accessError. 
  3348.  
  3349. severity  Use the enumeration IException::Severity to specify the severity of 
  3350.           the error. The default is recoverable. 
  3351.  
  3352. public:
  3353. static void
  3354.   throwCLibError( const char* functionName,
  3355.                   const IExceptionLocation& location,
  3356.                   IErrorInfo::ExceptionType name = accessError,
  3357.                   IException::Severity severity = recoverable);
  3358.  
  3359.  
  3360. ΓòÉΓòÉΓòÉ 1.9.7. ICLibErrorInfo::~ICLibErrorInfo ΓòÉΓòÉΓòÉ
  3361.  
  3362. public:
  3363. virtual  ~ICLibErrorInfo();
  3364.  
  3365.  
  3366. ΓòÉΓòÉΓòÉ 1.10. IDate ΓòÉΓòÉΓòÉ
  3367.  
  3368. Description 
  3369.  
  3370. Derivation 
  3371.  
  3372. Constructors 
  3373.  
  3374. Public Functions 
  3375.  
  3376. Protected Functions 
  3377.  
  3378. Protected Data 
  3379.  
  3380. Nested Types 
  3381.  
  3382. To close all the panels in a chapter, double click on this panel's system menu. 
  3383.  
  3384.  
  3385. ΓòÉΓòÉΓòÉ <hidden> Derivation - IDate ΓòÉΓòÉΓòÉ
  3386.  
  3387. IBase
  3388.   Γöé
  3389. IDate
  3390.  
  3391. Inherited by none. 
  3392.  
  3393.  
  3394. ΓòÉΓòÉΓòÉ <hidden> Class Description - IDate ΓòÉΓòÉΓòÉ
  3395.  
  3396. idate.hpp 
  3397.  
  3398. Objects of the IDate class represent specified dates. This class also provides 
  3399. general day and date-handling functions. Externally, dates consist of three 
  3400. pieces of information: 
  3401.  
  3402.     A year 
  3403.     A month within that year 
  3404.     A day within that month 
  3405. The User Interface Class Library also lets you specify the day within the year. 
  3406.  
  3407. The IDate class returns language-sensitive information, such as names of days 
  3408. and months, in the language defined by the user's system. See the description 
  3409. of the standard C function setlocale in the VisualAge C++: C Library Reference 
  3410. for information about setting the locale. 
  3411.  
  3412.  
  3413. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IDate ΓòÉΓòÉΓòÉ
  3414.  
  3415. Comparisons
  3416. operator !=
  3417. operator <
  3418. operator <=
  3419. operator ==
  3420. operator >
  3421. operator >=
  3422.  
  3423. Constructors
  3424. IDate
  3425.  
  3426. Conversions
  3427. asCDATE
  3428. julianDate
  3429.  
  3430. Current Date
  3431. today
  3432.  
  3433. Day Queries
  3434. dayName
  3435. dayOfMonth
  3436. dayOfWeek
  3437. dayOfYear
  3438.  
  3439. Diagnostics
  3440. asString
  3441.  
  3442. General Date Queries
  3443. dayName
  3444. daysInMonth
  3445. daysInYear
  3446. monthName
  3447.  
  3448. Manipulation
  3449. operator +
  3450. operator +=
  3451. operator -
  3452. operator -=
  3453.  
  3454. Month Queries
  3455. monthName
  3456. monthOfYear
  3457.  
  3458. Validation
  3459. isLeapYear
  3460. isValid
  3461.  
  3462. Year Queries
  3463. year
  3464.  
  3465. Inherited Members
  3466. IBase
  3467. asDebugInfo
  3468. asString
  3469. messageFile
  3470. messageText
  3471. setMessageFile
  3472. version
  3473.  
  3474.  
  3475. ΓòÉΓòÉΓòÉ <hidden> IDate - Comparisons ΓòÉΓòÉΓòÉ
  3476.  
  3477. Use these members to compare two IDates.  Use any of the full complement of 
  3478. comparison operators and applying the natural meaning. 
  3479.  
  3480.  
  3481. ΓòÉΓòÉΓòÉ <hidden> IDate - Constructors ΓòÉΓòÉΓòÉ
  3482.  
  3483. You can construct objects of this class in the following ways: 
  3484.  
  3485.     Use the default constructor, which returns the current day. 
  3486.  
  3487.     Give the year, month, and day for the desired day. These parameters can be 
  3488.      in either month/day/year or day/month/year order. 
  3489.  
  3490.     Give the year and day of the year for the desired day. 
  3491.  
  3492.     Use IDate::today to return the current date. 
  3493.  
  3494.     Copy another IDate object. 
  3495.  
  3496.     Give the Julian day number, as a long. 
  3497.  
  3498.     Give a container details CDATE structure. 
  3499.  
  3500.  
  3501. ΓòÉΓòÉΓòÉ <hidden> IDate - Conversions ΓòÉΓòÉΓòÉ
  3502.  
  3503. Use these members to retrieve other representations of the date. 
  3504.  
  3505.  
  3506. ΓòÉΓòÉΓòÉ <hidden> IDate - Current Date ΓòÉΓòÉΓòÉ
  3507.  
  3508. Use this member when you need the current date. 
  3509.  
  3510.  
  3511. ΓòÉΓòÉΓòÉ <hidden> IDate - Day Queries ΓòÉΓòÉΓòÉ
  3512.  
  3513. Use these members to access the day portion of an IDate object. 
  3514.  
  3515.  
  3516. ΓòÉΓòÉΓòÉ <hidden> IDate - Day, Month, and Year Types ΓòÉΓòÉΓòÉ
  3517.  
  3518. IDate defines the following related types (enumerations): 
  3519.  
  3520.     DayOfWeek 
  3521.  
  3522.     Month 
  3523.  
  3524.     YearFormat 
  3525. IDate member function use these enumerations to simplify the passing of day, 
  3526. month and year format data. 
  3527.  
  3528.  
  3529. ΓòÉΓòÉΓòÉ <hidden> IDate - Diagnostics ΓòÉΓòÉΓòÉ
  3530.  
  3531. These members provide an IString representation for an IDate object and the 
  3532. capability to output the object to a stream. The formats include both mm-dd-yy 
  3533. and strftime conversion specifications. Often, you use these members to write 
  3534. trace information when debugging. 
  3535.  
  3536.  
  3537. ΓòÉΓòÉΓòÉ <hidden> IDate - General Date Queries ΓòÉΓòÉΓòÉ
  3538.  
  3539. These members are static. They provide general IDate utilities independent of 
  3540. specific IDates. Typically, you use them to determine calendar information or 
  3541. to convert IDate enumeration data to string values. 
  3542.  
  3543.  
  3544. ΓòÉΓòÉΓòÉ <hidden> IDate - Implementation ΓòÉΓòÉΓòÉ
  3545.  
  3546. These members initializes an IDate object. 
  3547.  
  3548.  
  3549. ΓòÉΓòÉΓòÉ <hidden> IDate - Manipulation ΓòÉΓòÉΓòÉ
  3550.  
  3551. Use these members to update an IDate object using addition or subtraction of 
  3552. another IDate object. Use any of the full complement of addition or subtraction 
  3553. operators and apply the natural meaning. 
  3554.  
  3555.  
  3556. ΓòÉΓòÉΓòÉ <hidden> IDate - Month Queries ΓòÉΓòÉΓòÉ
  3557.  
  3558. Use these members to access the month portion of an IDate object. 
  3559.  
  3560.  
  3561. ΓòÉΓòÉΓòÉ <hidden> IDate - Validation ΓòÉΓòÉΓòÉ
  3562.  
  3563. Use these static members to validate the passed-date data.  They test the 
  3564. validity of a given day and provide a leap year test for a given year. 
  3565.  
  3566.  
  3567. ΓòÉΓòÉΓòÉ <hidden> IDate - Year Queries ΓòÉΓòÉΓòÉ
  3568.  
  3569. Use this member to access the year portion of an IDate object. 
  3570.  
  3571.  
  3572. ΓòÉΓòÉΓòÉ <hidden> Protected Functions - IDate ΓòÉΓòÉΓòÉ
  3573.  
  3574. Implementation
  3575. initialize
  3576.  
  3577.  
  3578. ΓòÉΓòÉΓòÉ <hidden> Protected Data - IDate ΓòÉΓòÉΓòÉ
  3579.  
  3580. Inherited Members
  3581. IBase
  3582. recoverable
  3583. unrecoverable
  3584.  
  3585.  
  3586. ΓòÉΓòÉΓòÉ 1.10.1. IDate::asCDATE ΓòÉΓòÉΓòÉ
  3587.  
  3588. Returns a container CDATE structure for the date. 
  3589.  
  3590. public:
  3591. _CDATE asCDATE() const;
  3592.  
  3593. Platform Support 
  3594.  
  3595. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  3596. ΓöéPM          ΓöéMOTIF       Γöé
  3597. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  3598. ΓöéYes         ΓöéNo          Γöé
  3599. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  3600.  
  3601.  
  3602. ΓòÉΓòÉΓòÉ 1.10.2. IDate::asString ΓòÉΓòÉΓòÉ
  3603.  
  3604. Returns the IDate as a string. The default is formatted per the system 
  3605. (mm-dd-yy). The alternate version of asString lets you use any strftime 
  3606. conversion specifiers. For example, "%x" yields a string such as "Apr 10 1959". 
  3607.  
  3608. There are two implementations of asString. The parameters are the following: 
  3609.  
  3610. yearFmt   Specifies how the system will display the year. If you do not specify 
  3611.           the format, the default is yy. Use the enumeration IDate::YearFormat 
  3612.           for valid yearFmt values. 
  3613.  
  3614. fmt       Specifies the conversion specifier, which is a character string you 
  3615.           can use to describe how to output the date. Use the date specifiers 
  3616.           that are valid in the C function strftime. The conversion specifiers 
  3617.           that apply to IDate and their meanings are listed in the following 
  3618.           table. ITime::asString provides the conversion specifiers that apply 
  3619.           to ITime. For more information about the strftime function, refer to 
  3620.           the VisualAge C++: C Library Reference. 
  3621.  
  3622.  
  3623.                      Specifier  Meaning
  3624.                      ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
  3625.                      %a         Insert abbreviated weekday name of
  3626.                                 locale.
  3627.                      ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
  3628.                      %A         Insert full weekday name of locale.
  3629.                      ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
  3630.                      %b         Insert abbreviated month name of locale.
  3631.                      ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
  3632.                      %B         Insert full month name of locale.
  3633.                      ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
  3634.                      %c         Insert date and time of locale.
  3635.                      ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
  3636.                      %d         Insert day of the month (01-31).
  3637.                      ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
  3638.                      %j         Insert day of the year (001-366).
  3639.                      ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
  3640.                      %m         Insert month (01-12).
  3641.                      ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
  3642.                      %U         Insert week number of the year (00-53)
  3643.                                 where Sunday is the first day of the
  3644.                                 week.
  3645.                      ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
  3646.                      %w         Insert weekday (0-6) where Sunday is 0.
  3647.                      ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
  3648.                      %W         Insert week number of the year (00-53)
  3649.                                 where Monday is the first day of the
  3650.                                 week.
  3651.                      ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
  3652.                      %x         Insert date representation of locale.
  3653.                      ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
  3654.                      %y         Insert year without the century (00-99).
  3655.                      ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
  3656.                      %Y         Insert year.
  3657.  
  3658.           For example, if you want to return the month, day, and year (without 
  3659.           the century), construct an IDate object, and then call asString as 
  3660.           follows: 
  3661.  
  3662.                     asString("%m:%d:%y")
  3663.  
  3664. Overload 1 
  3665.  
  3666. public:
  3667. IString asString(YearFormat yearFmt = yy) const;
  3668.  
  3669. Used in samples: 
  3670.  
  3671.      Hello World Sample - Version 6: ahellow6.cpp 
  3672.      Lancelot - A Valiant Example: ltimec.cpp 
  3673.  
  3674. Overload 2 
  3675.  
  3676. public:
  3677. IString asString(const char* fmt) const;
  3678.  
  3679.  
  3680. ΓòÉΓòÉΓòÉ 1.10.3. IDate::dayName ΓòÉΓòÉΓòÉ
  3681.  
  3682. Returns the name of the receiver's day of the week: 
  3683.  
  3684.     The first version of dayName accepts a specified day. It returns the name 
  3685.      of the day of the week that is equivalent to the index value in aDay. 
  3686.  
  3687.     The second version of dayName accepts no parameters. It returns the name 
  3688.      of the receiver's day of the week, such as "Monday". 
  3689.  
  3690. Overload 1 
  3691.  
  3692. public:
  3693. static IString dayName(DayOfWeek aDay);
  3694.  
  3695. Overload 2 
  3696.  
  3697. public:
  3698. IString dayName() const;
  3699.  
  3700.  
  3701. ΓòÉΓòÉΓòÉ 1.10.4. IDate::dayOfMonth ΓòÉΓòÉΓòÉ
  3702.  
  3703. Returns the day in the receiver's month as an integer from 1 to 31. 
  3704.  
  3705. public:
  3706. int dayOfMonth() const;
  3707.  
  3708. Used in sample:   Hello World Sample - Version 6: ahellow6.cpp 
  3709.  
  3710.  
  3711. ΓòÉΓòÉΓòÉ 1.10.5. IDate::dayOfWeek ΓòÉΓòÉΓòÉ
  3712.  
  3713. Returns the index of the receiver's day of the week:  Monday through Sunday. 
  3714.  
  3715. public:
  3716. DayOfWeek dayOfWeek() const;
  3717.  
  3718. Used in sample:   Lancelot - A Valiant Example: ltimec.cpp 
  3719.  
  3720.  
  3721. ΓòÉΓòÉΓòÉ 1.10.6. IDate::dayOfYear ΓòÉΓòÉΓòÉ
  3722.  
  3723. Returns the day in the receiver's year as an integer from 1 to 366. 
  3724.  
  3725. public:
  3726. int dayOfYear() const;
  3727.  
  3728.  
  3729. ΓòÉΓòÉΓòÉ 1.10.7. IDate::daysInMonth ΓòÉΓòÉΓòÉ
  3730.  
  3731. Returns the number of days in a specified month of a specified year. You must 
  3732. specify aYear in yyyy format. 
  3733.  
  3734. public:
  3735. static int daysInMonth(Month aMonth, int aYear);
  3736.  
  3737.  
  3738. ΓòÉΓòÉΓòÉ 1.10.8. IDate::daysInYear ΓòÉΓòÉΓòÉ
  3739.  
  3740. Returns the number of days in a specified year. You must specify aYear in yyyy 
  3741. format. 
  3742.  
  3743. public:
  3744. static int daysInYear(int aYear);
  3745.  
  3746.  
  3747. ΓòÉΓòÉΓòÉ 1.10.9. IDate::IDate ΓòÉΓòÉΓòÉ
  3748.  
  3749. You can construct objects of this class in the following ways: 
  3750.  
  3751.     Use the default constructor, which returns the current day. 
  3752.  
  3753.     Give the year, month, and day for the desired day. These parameters can be 
  3754.      in either month/day/year or day/month/year order. 
  3755.  
  3756.     Give the year and day of the year for the desired day. 
  3757.  
  3758.     Use IDate::today to return the current date. 
  3759.  
  3760.     Copy another IDate object. 
  3761.  
  3762.     Give the Julian day number, as a long. 
  3763.  
  3764.     Give a container details CDATE structure. 
  3765.  
  3766. Overload 1 
  3767.  
  3768. public:
  3769. IDate(int aYear, int aDay);
  3770.  
  3771. This constructor constructs an IDate from the year and day of the year. The day 
  3772. of year is the number of days starting at January 1. 
  3773.  
  3774. Overload 2 
  3775.  
  3776. public:
  3777. IDate();
  3778.  
  3779. Using this constructor returns the current day; it's the default. 
  3780.  
  3781. Used in samples: 
  3782.  
  3783.      Hello World Sample - Version 6: ahellow6.cpp 
  3784.      Lancelot - A Valiant Example: ltimec.cpp 
  3785.  
  3786. Overload 3 
  3787.  
  3788. public:
  3789. IDate(Month aMonth, int aDay, int aYear);
  3790.  
  3791. You use this constructor when passing parameters in month/day/year order. 
  3792.  
  3793. Overload 4 
  3794.  
  3795. public:
  3796. IDate(int aDay, Month aMonth, int aYear);
  3797.  
  3798. You use this constructor when passing parameters in day/month/year order. 
  3799.  
  3800. Overload 5 
  3801.  
  3802. public:
  3803. IDate(const IDate& aDate);
  3804.  
  3805. This constructor constructs an IDate by copying another IDate object. 
  3806.  
  3807. Overload 6 
  3808.  
  3809. public:
  3810. IDate(unsigned long julianDayNumber);
  3811.  
  3812. Use this constructor to construct an IDate from a Julian day number, as a long. 
  3813.  
  3814. Overload 7 
  3815.  
  3816. public:
  3817. IDate(const _CDATE& cDate);
  3818.  
  3819. You use this constructor to construct an IDate from a container details CDATE 
  3820. structure. 
  3821.  
  3822. Platform Support 
  3823.  
  3824. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  3825. ΓöéPM          ΓöéMOTIF       Γöé
  3826. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  3827. ΓöéYes         ΓöéNo          Γöé
  3828. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  3829.  
  3830.  
  3831. ΓòÉΓòÉΓòÉ 1.10.10. IDate::initialize ΓòÉΓòÉΓòÉ
  3832.  
  3833. Calculates the Julian day number. The form of the parameters are the following: 
  3834.  
  3835. aMonth    mm 
  3836. aDay      dd 
  3837. aYear     yyyy 
  3838. This function returns a reference to the receiver, initialized to the specified 
  3839. date. 
  3840.  
  3841. protected:
  3842. IDate& initialize(Month aMonth, int aDay, int aYear);
  3843.  
  3844.  
  3845. ΓòÉΓòÉΓòÉ 1.10.11. IDate::isLeapYear ΓòÉΓòÉΓòÉ
  3846.  
  3847. If the specified year is a leap year, true is returned. Otherwise, false is 
  3848. returned. You must specify aYear in yyyy format. 
  3849.  
  3850. public:
  3851. static Boolean isLeapYear(int aYear);
  3852.  
  3853.  
  3854. ΓòÉΓòÉΓòÉ 1.10.12. IDate::isValid ΓòÉΓòÉΓòÉ
  3855.  
  3856. Indicates whether the specified date is valid. You must specify aYear in yyyy 
  3857. format. You can specify the date as: 
  3858.  
  3859.     month/day/year 
  3860.     day/month/year 
  3861.     year/day 
  3862. For example, February 29, 1990 is not a valid date because February only had 28 
  3863. days in 1990. 
  3864.  
  3865. Overload 1 
  3866.  
  3867. public:
  3868. static Boolean isValid(Month aMonth, int aDay, int aYear);
  3869.  
  3870. Overload 2 
  3871.  
  3872. public:
  3873. static Boolean isValid(int aDay, Month aMonth, int aYear);
  3874.  
  3875. Overload 3 
  3876.  
  3877. public:
  3878. static Boolean isValid(int aYear, int aDay);
  3879.  
  3880.  
  3881. ΓòÉΓòÉΓòÉ 1.10.13. IDate::julianDate ΓòÉΓòÉΓòÉ
  3882.  
  3883. Returns the Julian day number of the receiver IDate. This function uses the 
  3884. true definition of a Julian date, which means it returns the number of days 
  3885. from January 1, 4713 B.C. 
  3886.  
  3887. public:
  3888. unsigned long julianDate() const;
  3889.  
  3890.  
  3891. ΓòÉΓòÉΓòÉ 1.10.14. IDate::monthName ΓòÉΓòÉΓòÉ
  3892.  
  3893. Returns the name of the receiver's month: 
  3894.  
  3895.     The first version of this function accepts no parameters. It returns the 
  3896.      name of the receiver's month, such as "March". 
  3897.  
  3898.     The second version of this function accepts a specified month. It returns 
  3899.      the name of the month that is equivalent to the index value in aMonth. 
  3900.  
  3901. Overload 1 
  3902.  
  3903. public:
  3904. static IString monthName(Month aMonth);
  3905.  
  3906. Overload 2 
  3907.  
  3908. public:
  3909. IString monthName() const;
  3910.  
  3911. Used in sample:   Hello World Sample - Version 6: ahellow6.cpp 
  3912.  
  3913.  
  3914. ΓòÉΓòÉΓòÉ 1.10.15. IDate::monthOfYear ΓòÉΓòÉΓòÉ
  3915.  
  3916. Returns the index of the receiver's month of the year:  January through 
  3917. December. 
  3918.  
  3919. public:
  3920. Month monthOfYear() const;
  3921.  
  3922.  
  3923. ΓòÉΓòÉΓòÉ 1.10.16. IDate::operator != ΓòÉΓòÉΓòÉ
  3924.  
  3925. If the IDate objects represent different dates, true is returned. 
  3926.  
  3927. public:
  3928. Boolean operator !=(const IDate& aDate) const;
  3929.  
  3930.  
  3931. ΓòÉΓòÉΓòÉ 1.10.17. IDate::operator + ΓòÉΓòÉΓòÉ
  3932.  
  3933. Adds an integral number of days to the left-hand operand, yielding a new IDate. 
  3934.  
  3935. public:
  3936. IDate operator +(int numDays) const;
  3937.  
  3938.  
  3939. ΓòÉΓòÉΓòÉ 1.10.18. IDate::operator += ΓòÉΓòÉΓòÉ
  3940.  
  3941. Adds an integral number of days to the left-hand operand, assigning the result 
  3942. to that operand. 
  3943.  
  3944. public:
  3945. IDate& operator +=(int numDays);
  3946.  
  3947. Used in sample:   Lancelot - A Valiant Example: ltimec.cpp 
  3948.  
  3949.  
  3950. ΓòÉΓòÉΓòÉ 1.10.19. IDate::operator - ΓòÉΓòÉΓòÉ
  3951.  
  3952. Subtracts an integral number of days from the left-hand operand, yielding a new 
  3953. IDate. If the right-hand operand is also an IDate, the operator yields the 
  3954. number of days between the dates. 
  3955.  
  3956. The parameters are the following: 
  3957.  
  3958. numDays   The function subtracts numDays from the receiver's value and returns 
  3959.           an IDate object. 
  3960.  
  3961. aDate     The function returns the difference in the number of days between the 
  3962.           receiver and aDate. If the receiver is greater than aDate, the 
  3963.           difference is positive. 
  3964.  
  3965. Overload 1 
  3966.  
  3967. public:
  3968. IDate operator -(int numDays) const;
  3969.  
  3970. Overload 2 
  3971.  
  3972. public:
  3973. long operator -(const IDate& aDate) const;
  3974.  
  3975.  
  3976. ΓòÉΓòÉΓòÉ 1.10.20. IDate::operator -= ΓòÉΓòÉΓòÉ
  3977.  
  3978. Subtracts an integral number of days from the right-hand operand, assigning the 
  3979. result to that operand. 
  3980.  
  3981. public:
  3982. IDate& operator -=(int numDays);
  3983.  
  3984. Used in sample:   Lancelot - A Valiant Example: ltimec.cpp 
  3985.  
  3986.  
  3987. ΓòÉΓòÉΓòÉ 1.10.21. IDate::operator < ΓòÉΓòÉΓòÉ
  3988.  
  3989. If the left-hand operand represents a date prior to the date represented by the 
  3990. right-hand operand, true is returned. 
  3991.  
  3992. public:
  3993. Boolean operator <(const IDate& aDate) const;
  3994.  
  3995.  
  3996. ΓòÉΓòÉΓòÉ 1.10.22. IDate::operator <= ΓòÉΓòÉΓòÉ
  3997.  
  3998. If the left-hand operand represents a date prior to or identical to the date 
  3999. represented by the right-hand operand, true is returned. 
  4000.  
  4001. public:
  4002. Boolean operator <=(const IDate& aDate) const;
  4003.  
  4004.  
  4005. ΓòÉΓòÉΓòÉ 1.10.23. IDate::operator == ΓòÉΓòÉΓòÉ
  4006.  
  4007. If the IDate objects represent the same date, true is returned. 
  4008.  
  4009. public:
  4010. Boolean operator ==(const IDate& aDate) const;
  4011.  
  4012.  
  4013. ΓòÉΓòÉΓòÉ 1.10.24. IDate::operator > ΓòÉΓòÉΓòÉ
  4014.  
  4015. If the left-hand operand represents a date subsequent to the date represented 
  4016. by the right-hand operand, true is returned. 
  4017.  
  4018. public:
  4019. Boolean operator >(const IDate& aDate) const;
  4020.  
  4021.  
  4022. ΓòÉΓòÉΓòÉ 1.10.25. IDate::operator >= ΓòÉΓòÉΓòÉ
  4023.  
  4024. If the left-hand operand represents a date subsequent to or identical to the 
  4025. date represented by the right-hand operand, true is returned. 
  4026.  
  4027. public:
  4028. Boolean operator >=(const IDate& aDate) const;
  4029.  
  4030.  
  4031. ΓòÉΓòÉΓòÉ 1.10.26. IDate::today ΓòÉΓòÉΓòÉ
  4032.  
  4033. Returns the current date. This static function can be used as an IDate 
  4034. constructor. 
  4035.  
  4036. public:
  4037. static IDate today();
  4038.  
  4039.  
  4040. ΓòÉΓòÉΓòÉ 1.10.27. IDate::year ΓòÉΓòÉΓòÉ
  4041.  
  4042. Returns the receiver's year. The returned value is in the yyyy format. 
  4043.  
  4044. public:
  4045. int year() const;
  4046.  
  4047. Used in sample:   Hello World Sample - Version 6: ahellow6.cpp 
  4048.  
  4049.  
  4050. ΓòÉΓòÉΓòÉ <hidden> Nested Types - IDate ΓòÉΓòÉΓòÉ
  4051.  
  4052. Type Definitions 
  4053.  
  4054.       Month 
  4055.       DayOfWeek 
  4056.       YearFormat 
  4057.  
  4058.  
  4059. ΓòÉΓòÉΓòÉ <hidden> Type Definition - IDate::Month ΓòÉΓòÉΓòÉ
  4060.  
  4061. typedef enum { January = 1 , February , March , April ,
  4062.                May , June , July , August ,
  4063.                September , October , November , December } Month;
  4064.  
  4065. A typedef that provides the values January through December for the months of 
  4066. the year. 
  4067.  
  4068.  
  4069. ΓòÉΓòÉΓòÉ <hidden> Type Definition - IDate::DayOfWeek ΓòÉΓòÉΓòÉ
  4070.  
  4071. typedef enum { Monday = 0 , Tuesday , Wednesday , Thursday ,
  4072.                Friday , Saturday , Sunday } DayOfWeek;
  4073.  
  4074. A typedef that provides the values Monday through Sunday for the days of the 
  4075. week. 
  4076.  
  4077.  
  4078. ΓòÉΓòÉΓòÉ <hidden> Type Definition - IDate::YearFormat ΓòÉΓòÉΓòÉ
  4079.  
  4080. typedef enum { yy , yyyy } YearFormat;
  4081.  
  4082. A typedef that specifies the number of digits in the year for the default 
  4083. asString format (yy or yyyy). 
  4084.  
  4085.  
  4086. ΓòÉΓòÉΓòÉ 1.11. IDBCSBuffer ΓòÉΓòÉΓòÉ
  4087.  
  4088. Description 
  4089.  
  4090. Derivation 
  4091.  
  4092. Public Functions 
  4093.  
  4094. Protected Functions 
  4095.  
  4096. Public Data 
  4097.  
  4098. Protected Data 
  4099.  
  4100. Public Data includes Styles and Notification IDs if they exist. 
  4101.  
  4102. To close all the panels in a chapter, double click on this panel's system menu. 
  4103.  
  4104.  
  4105. ΓòÉΓòÉΓòÉ <hidden> Derivation - IDBCSBuffer ΓòÉΓòÉΓòÉ
  4106.  
  4107. IBase
  4108.   Γöé
  4109. IVBase
  4110.   Γöé
  4111. IBuffer
  4112.   Γöé
  4113. IDBCSBuffer
  4114.  
  4115. Inherited by none. 
  4116.  
  4117.  
  4118. ΓòÉΓòÉΓòÉ <hidden> Class Description - IDBCSBuffer ΓòÉΓòÉΓòÉ
  4119.  
  4120. idbcsbuf.hpp 
  4121.  
  4122. Objects of the IDBCSBuffer class implement the version of IString contents that 
  4123. supports mixed double-byte character set (DBCS) characters. This class also 
  4124. supports UNIX multiple-byte character set (MBCS) characters. This class ensures 
  4125. that multiple-byte characters are processed properly. 
  4126.  
  4127. The use of this class is transparent to the user of class IString. 
  4128.  
  4129.  
  4130. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IDBCSBuffer ΓòÉΓòÉΓòÉ
  4131.  
  4132. Allocation
  4133. allocate
  4134.  
  4135. Editing
  4136. center
  4137. insert
  4138. leftJustify
  4139. lowerCase
  4140. overlayWith
  4141. remove
  4142. reverse
  4143. rightJustify
  4144. strip
  4145. translate
  4146. upperCase
  4147.  
  4148. NLS Testing
  4149. includesDBCS
  4150. includesMBCS
  4151. includesSBCS
  4152. isDBCS
  4153. isMBCS
  4154. isSBCS
  4155. isValidDBCS
  4156. isValidMBCS
  4157.  
  4158. Queries
  4159. charType
  4160. next
  4161.  
  4162. Searches
  4163. indexOf
  4164. indexOfAnyBut
  4165. indexOfAnyOf
  4166. lastIndexOf
  4167. lastIndexOfAnyBut
  4168. lastIndexOfAnyOf
  4169.  
  4170. Subset
  4171. subString
  4172.  
  4173. Inherited Members
  4174. IBuffer
  4175. addRef
  4176. asDebugInfo
  4177. center
  4178. change
  4179. charType
  4180. checkAddition
  4181. checkMultiplication
  4182. compare
  4183. contents
  4184. copy
  4185. defaultBuffer
  4186. fromContents
  4187. includesDBCS
  4188. includesMBCS
  4189. includesSBCS
  4190. indexOf
  4191. indexOfAnyBut
  4192. indexOfAnyOf
  4193. insert
  4194. isAlphabetic
  4195. isAlphanumeric
  4196. isASCII
  4197. isControl
  4198. isDBCS
  4199. isDigits
  4200. isGraphics
  4201. isHexDigits
  4202. isLowerCase
  4203. isMBCS
  4204. isPrintable
  4205. isPunctuation
  4206. isSBCS
  4207. isUpperCase
  4208. isValidDBCS
  4209. isValidMBCS
  4210. isWhiteSpace
  4211. lastIndexOf
  4212. lastIndexOfAnyBut
  4213. lastIndexOfAnyOf
  4214. leftJustify
  4215. length
  4216. lowerCase
  4217. newBuffer
  4218. next
  4219. null
  4220. overflow
  4221. overlayWith
  4222. remove
  4223. removeRef
  4224. reverse
  4225. rightJustify
  4226. setDefaultBuffer
  4227. strip
  4228. subString
  4229. translate
  4230. upperCase
  4231. useCount
  4232.  
  4233. IVBase
  4234. asDebugInfo
  4235. asString
  4236.  
  4237. IBase
  4238. asDebugInfo
  4239. asString
  4240. messageFile
  4241. messageText
  4242. setMessageFile
  4243. version
  4244.  
  4245.  
  4246. ΓòÉΓòÉΓòÉ <hidden> IDBCSBuffer - Allocation ΓòÉΓòÉΓòÉ
  4247.  
  4248. Use these members to reimplement the allocation members as public. 
  4249.  
  4250.  
  4251. ΓòÉΓòÉΓòÉ <hidden> IDBCSBuffer - Constructors ΓòÉΓòÉΓòÉ
  4252.  
  4253. The constructor for this class is protected. Only IDBCSBuffer::allocate and 
  4254. IBuffer::initialize can call the constructor. 
  4255.  
  4256.  
  4257. ΓòÉΓòÉΓòÉ <hidden> IDBCSBuffer - Editing ΓòÉΓòÉΓòÉ
  4258.  
  4259. Use these members to reimplement the following IString versions of IBuffer 
  4260. members. The following members are called by the corresponding IString members 
  4261. to edit the buffer's contents. 
  4262.  
  4263.  
  4264. ΓòÉΓòÉΓòÉ <hidden> IDBCSBuffer - NLS Testing ΓòÉΓòÉΓòÉ
  4265.  
  4266. Use these members to reimplement the following IString versions of IBuffer 
  4267. members. The corresponding IString members use these members to test the 
  4268. buffer's contents. These tests are character set specific. 
  4269.  
  4270.  
  4271. ΓòÉΓòÉΓòÉ <hidden> IDBCSBuffer - Protected Queries ΓòÉΓòÉΓòÉ
  4272.  
  4273. These members help implement this class. 
  4274.  
  4275.  
  4276. ΓòÉΓòÉΓòÉ <hidden> IDBCSBuffer - Protected Testing ΓòÉΓòÉΓòÉ
  4277.  
  4278. These members help implement this class. 
  4279.  
  4280.  
  4281. ΓòÉΓòÉΓòÉ <hidden> IDBCSBuffer - Queries ΓòÉΓòÉΓòÉ
  4282.  
  4283. Use these members to reimplement the following IString versions of IBuffer 
  4284. members. 
  4285.  
  4286.  
  4287. ΓòÉΓòÉΓòÉ <hidden> IDBCSBuffer - Search Initialization ΓòÉΓòÉΓòÉ
  4288.  
  4289. These members help implement this class. They initialize search data. 
  4290.  
  4291.  
  4292. ΓòÉΓòÉΓòÉ <hidden> IDBCSBuffer - Searches ΓòÉΓòÉΓòÉ
  4293.  
  4294. Use these members to reimplement the following IString versions of IBuffer 
  4295. search members. 
  4296.  
  4297.  
  4298. ΓòÉΓòÉΓòÉ <hidden> IDBCSBuffer - Subset ΓòÉΓòÉΓòÉ
  4299.  
  4300. Use these members to reimplement the following IString versions of IBuffer 
  4301. subsetting members. 
  4302.  
  4303.  
  4304. ΓòÉΓòÉΓòÉ <hidden> Protected Functions - IDBCSBuffer ΓòÉΓòÉΓòÉ
  4305.  
  4306. Constructors
  4307. IDBCSBuffer
  4308. ~IDBCSBuffer
  4309.  
  4310. Protected Queries
  4311. charLength
  4312. className
  4313. maxCharLength
  4314. prevCharLength
  4315.  
  4316. Protected Testing
  4317. isCharValid
  4318. isDBCS1
  4319. isPrevDBCS
  4320. isSBC
  4321.  
  4322. Search Initialization
  4323. startBackwardsSearch
  4324. startSearch
  4325.  
  4326. Inherited Members
  4327. IBuffer
  4328. allocate
  4329. className
  4330. initialize
  4331. operator delete
  4332. operator new
  4333. startBackwardsSearch
  4334. startSearch
  4335.  
  4336.  
  4337. ΓòÉΓòÉΓòÉ <hidden> Public Data - IDBCSBuffer ΓòÉΓòÉΓòÉ
  4338.  
  4339. Inherited Members
  4340. IBuffer
  4341. dbcsTable
  4342.  
  4343.  
  4344. ΓòÉΓòÉΓòÉ <hidden> Protected Data - IDBCSBuffer ΓòÉΓòÉΓòÉ
  4345.  
  4346. Inherited Members
  4347. IBase
  4348. recoverable
  4349. unrecoverable
  4350.  
  4351.  
  4352. ΓòÉΓòÉΓòÉ 1.11.1. IDBCSBuffer::allocate ΓòÉΓòÉΓòÉ
  4353.  
  4354. Returns a new buffer of the specified length. 
  4355.  
  4356. public:
  4357. IBuffer* allocate(unsigned newLen) const;
  4358.  
  4359.  
  4360. ΓòÉΓòÉΓòÉ 1.11.2. IDBCSBuffer::center ΓòÉΓòÉΓòÉ
  4361.  
  4362. Centers the receiver within a string of the specified length. 
  4363.  
  4364. public:
  4365. IBuffer* center(unsigned newLen, char padCharacter);
  4366.  
  4367.  
  4368. ΓòÉΓòÉΓòÉ 1.11.3. IDBCSBuffer::charLength ΓòÉΓòÉΓòÉ
  4369.  
  4370. Returns the number of bytes in the character beginning at the specified offset. 
  4371.  
  4372. Overload 1 
  4373.  
  4374. protected:
  4375. static size_t charLength(char const*);
  4376.  
  4377. Overload 2 
  4378.  
  4379. protected:
  4380. size_t charLength(unsigned pos) const;
  4381.  
  4382.  
  4383. ΓòÉΓòÉΓòÉ 1.11.4. IDBCSBuffer::charType ΓòÉΓòÉΓòÉ
  4384.  
  4385. Returns the type of a character at the specified index. 
  4386.  
  4387. public:
  4388. IStringEnum::CharType charType(unsigned index) const;
  4389.  
  4390.  
  4391. ΓòÉΓòÉΓòÉ 1.11.5. IDBCSBuffer::className ΓòÉΓòÉΓòÉ
  4392.  
  4393. Returns the name of the class (IDBCSBuffer). 
  4394.  
  4395. protected:
  4396. const char* className() const;
  4397.  
  4398.  
  4399. ΓòÉΓòÉΓòÉ 1.11.6. IDBCSBuffer::IDBCSBuffer ΓòÉΓòÉΓòÉ
  4400.  
  4401. The constructor for this class is protected. Only IDBCSBuffer::allocate and 
  4402. IBuffer::initialize can call the constructor. 
  4403.  
  4404. protected:
  4405. IDBCSBuffer(unsigned bufLength);
  4406.  
  4407. Constructs a buffer of the specified length.  The allocated "data" member array 
  4408. actually is 1 byte greater than the argument value (this is achieved 
  4409. automatically via use of the overloaded operator new for class IBuffer). The 
  4410. terminating (extra) byte is set to null. 
  4411.  
  4412. This constructor is protected.  IDBCSBufferss must be obtained by using 
  4413. IDBCSBuffer::nullBuffer and subsequent newBuffer calls to existing IDBCSBuffer 
  4414. objects. 
  4415.  
  4416.  
  4417. ΓòÉΓòÉΓòÉ 1.11.7. IDBCSBuffer::includesDBCS ΓòÉΓòÉΓòÉ
  4418.  
  4419. If any characters are DBCS (double-byte character set), true is returned. 
  4420.  
  4421. public:
  4422. Boolean includesDBCS() const;
  4423.  
  4424.  
  4425. ΓòÉΓòÉΓòÉ 1.11.8. IDBCSBuffer::includesMBCS ΓòÉΓòÉΓòÉ
  4426.  
  4427. If any characters are MBCS (multiple-byte character set), true is returned. 
  4428.  
  4429. public:
  4430. Boolean includesMBCS() const;
  4431.  
  4432.  
  4433. ΓòÉΓòÉΓòÉ 1.11.9. IDBCSBuffer::includesSBCS ΓòÉΓòÉΓòÉ
  4434.  
  4435. If any characters are SBCS (single-byte character set), true is returned. 
  4436.  
  4437. public:
  4438. Boolean includesSBCS() const;
  4439.  
  4440.  
  4441. ΓòÉΓòÉΓòÉ 1.11.10. IDBCSBuffer::indexOf ΓòÉΓòÉΓòÉ
  4442.  
  4443. Returns the byte index of the first occurrence of the specified string within 
  4444. the receiver. If there are no occurrences, 0 is returned. 
  4445.  
  4446. Overload 1 
  4447.  
  4448. public:
  4449. unsigned
  4450.   indexOf( const IStringTest& aTest,
  4451.            unsigned startPos = 1) const;
  4452.  
  4453. Overload 2 
  4454.  
  4455. public:
  4456. unsigned
  4457.   indexOf( const char* pString,
  4458.            unsigned len,
  4459.            unsigned startPos = 1) const;
  4460.  
  4461.  
  4462. ΓòÉΓòÉΓòÉ 1.11.11. IDBCSBuffer::indexOfAnyBut ΓòÉΓòÉΓòÉ
  4463.  
  4464. Returns the index of the first character of the receiver that is not in the 
  4465. specified set of characters. If there are no characters, 0 is returned. 
  4466. Alternatively, this function returns the index of the first character that 
  4467. fails the test prescribed by a specified IStringTestobject. 
  4468.  
  4469. Overload 1 
  4470.  
  4471. public:
  4472. unsigned
  4473.   indexOfAnyBut( const char* pString,
  4474.                  unsigned len,
  4475.                  unsigned startPos = 1) const;
  4476.  
  4477. Overload 2 
  4478.  
  4479. public:
  4480. unsigned
  4481.   indexOfAnyBut( const IStringTest& aTest,
  4482.                  unsigned startPos = 1) const;
  4483.  
  4484.  
  4485. ΓòÉΓòÉΓòÉ 1.11.12. IDBCSBuffer::indexOfAnyOf ΓòÉΓòÉΓòÉ
  4486.  
  4487. Returns the index of the first character of the receiver that is a character in 
  4488. the specified set of characters. If there are no characters, 0 is returned. 
  4489. Alternatively, this function returns the index of the first character that 
  4490. passes the test prescribed by a specified IStringTestobject. 
  4491.  
  4492. Overload 1 
  4493.  
  4494. public:
  4495. unsigned
  4496.   indexOfAnyOf( const IStringTest& aTest,
  4497.                 unsigned startPos = 1) const;
  4498.  
  4499. Overload 2 
  4500.  
  4501. public:
  4502. unsigned
  4503.   indexOfAnyOf( const char* pString,
  4504.                 unsigned len,
  4505.                 unsigned startPos = 1) const;
  4506.  
  4507.  
  4508. ΓòÉΓòÉΓòÉ 1.11.13. IDBCSBuffer::insert ΓòÉΓòÉΓòÉ
  4509.  
  4510. Inserts the specified string after the specified location. 
  4511.  
  4512. public:
  4513. IBuffer*
  4514.   insert( const char* pInsert,
  4515.           unsigned insertLen,
  4516.           unsigned pos,
  4517.           char padCharacter);
  4518.  
  4519.  
  4520. ΓòÉΓòÉΓòÉ 1.11.14. IDBCSBuffer::isCharValid ΓòÉΓòÉΓòÉ
  4521.  
  4522. If the character at the specified index is in the set of valid characters, true 
  4523. is returned. 
  4524.  
  4525. The parameters are the following: 
  4526.  
  4527. pos       The position in the receiver's buffer for the validity check. 
  4528.  
  4529.           Warning: It is important that this position not be the second byte of 
  4530.           a DBCS character. If it is, you might get false results. 
  4531.  
  4532. pValidChars The string of the valid characters. It can contain a mixture of 
  4533.           DBCS and SBCS characters. 
  4534.  
  4535. numValidChars The size of this string of valid characters. 
  4536.  
  4537. protected:
  4538. Boolean
  4539.   isCharValid( unsigned pos,
  4540.                const char* pValidChars,
  4541.                unsigned numValidChars) const;
  4542.  
  4543.  
  4544. ΓòÉΓòÉΓòÉ 1.11.15. IDBCSBuffer::isDBCS ΓòÉΓòÉΓòÉ
  4545.  
  4546. If all the characters are DBCS, true is returned. 
  4547.  
  4548. public:
  4549. Boolean isDBCS() const;
  4550.  
  4551.  
  4552. ΓòÉΓòÉΓòÉ 1.11.16. IDBCSBuffer::isDBCS1 ΓòÉΓòÉΓòÉ
  4553.  
  4554. If the byte at the specified offset is the first byte of DBCS, true is 
  4555. returned. 
  4556.  
  4557. Note:  The User Interface Class Library provides this function only for 
  4558.        compatibility with prior library versions. We recommend using 
  4559.        IDBCSBuffer::charLength to determine if the byte is part of a 
  4560.        multiple-byte character. 
  4561.  
  4562. protected:
  4563. Boolean isDBCS1(unsigned pos) const;
  4564.  
  4565. Platform Support 
  4566.  
  4567. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  4568. ΓöéPM          ΓöéMOTIF       Γöé
  4569. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  4570. ΓöéYes         ΓöéNo          Γöé
  4571. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  4572.  
  4573.  
  4574. ΓòÉΓòÉΓòÉ 1.11.17. IDBCSBuffer::isMBCS ΓòÉΓòÉΓòÉ
  4575.  
  4576. If all the characters are MBCS, true is returned. 
  4577.  
  4578. public:
  4579. Boolean isMBCS() const;
  4580.  
  4581.  
  4582. ΓòÉΓòÉΓòÉ 1.11.18. IDBCSBuffer::isPrevDBCS ΓòÉΓòÉΓòÉ
  4583.  
  4584. If the preceding character to the one at the specified offset is a DBCS 
  4585. character, true is returned. 
  4586.  
  4587. Note:  The User Interface Class Library provides this function only for 
  4588.        compatibility with prior library versions. We recommend using 
  4589.        IDBCSBuffer::prevCharLength to determine if the preceding byte is part 
  4590.        of a multiple-byte character. 
  4591.  
  4592. protected:
  4593. Boolean isPrevDBCS(unsigned pos) const;
  4594.  
  4595. Platform Support 
  4596.  
  4597. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  4598. ΓöéPM          ΓöéMOTIF       Γöé
  4599. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  4600. ΓöéYes         ΓöéNo          Γöé
  4601. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  4602.  
  4603.  
  4604. ΓòÉΓòÉΓòÉ 1.11.19. IDBCSBuffer::isSBC ΓòÉΓòÉΓòÉ
  4605.  
  4606. If the byte pointed to by the specified character is a single-byte character, 
  4607. true is returned. This is a static function. 
  4608.  
  4609. protected:
  4610. static Boolean isSBC(char const*);
  4611.  
  4612.  
  4613. ΓòÉΓòÉΓòÉ 1.11.20. IDBCSBuffer::isSBCS ΓòÉΓòÉΓòÉ
  4614.  
  4615. If all the characters are SBCS, true is returned. 
  4616.  
  4617. public:
  4618. Boolean isSBCS() const;
  4619.  
  4620.  
  4621. ΓòÉΓòÉΓòÉ 1.11.21. IDBCSBuffer::isValidDBCS ΓòÉΓòÉΓòÉ
  4622.  
  4623. If no DBCS characters have a 0 second byte, true is returned. 
  4624.  
  4625. public:
  4626. Boolean isValidDBCS() const;
  4627.  
  4628.  
  4629. ΓòÉΓòÉΓòÉ 1.11.22. IDBCSBuffer::isValidMBCS ΓòÉΓòÉΓòÉ
  4630.  
  4631. If no MBCS characters have a 0 second byte, true is returned. 
  4632.  
  4633. public:
  4634. Boolean isValidMBCS() const;
  4635.  
  4636.  
  4637. ΓòÉΓòÉΓòÉ 1.11.23. IDBCSBuffer::lastIndexOf ΓòÉΓòÉΓòÉ
  4638.  
  4639. Returns the index of the last occurrence of the specified string or character. 
  4640. The search starts at the position specified by startPos (inclusive) and 
  4641. proceeds backward. The returned value is in the range 0 <= x <= startPos. The 
  4642. default of 0 starts the search at the end of the receiver's string. If the 
  4643. search target is not found, 0 is returned. 
  4644.  
  4645. If you specify 0  or 1for startPos, this function returns 0 indicating the 
  4646. search target was not found. 
  4647.  
  4648. Overload 1 
  4649.  
  4650. public:
  4651. unsigned
  4652.   lastIndexOf( const IStringTest& aTest,
  4653.                unsigned startPos = 1) const;
  4654.  
  4655. Overload 2 
  4656.  
  4657. public:
  4658. unsigned
  4659.   lastIndexOf( const char* pString,
  4660.                unsigned len,
  4661.                unsigned startPos = 0) const;
  4662.  
  4663.  
  4664. ΓòÉΓòÉΓòÉ 1.11.24. IDBCSBuffer::lastIndexOfAnyBut ΓòÉΓòÉΓòÉ
  4665.  
  4666. Returns the index of the last character not in the specified string or 
  4667. character. The search starts at the position specified by startPos (inclusive) 
  4668. and proceeds backward. The default of 0 starts the search at the end of the 
  4669. receiver's string. If the search target is not found, 0 is returned. 
  4670.  
  4671. If you specify 0 for startPos, this function returns 0 indicating the search 
  4672. target was not found. 
  4673.  
  4674. Overload 1 
  4675.  
  4676. public:
  4677. unsigned
  4678.   lastIndexOfAnyBut( const IStringTest& aTest,
  4679.                      unsigned startPos = 0) const;
  4680.  
  4681. Overload 2 
  4682.  
  4683. public:
  4684. unsigned
  4685.   lastIndexOfAnyBut( const char* pString,
  4686.                      unsigned len,
  4687.                      unsigned startPos = 0) const;
  4688.  
  4689.  
  4690. ΓòÉΓòÉΓòÉ 1.11.25. IDBCSBuffer::lastIndexOfAnyOf ΓòÉΓòÉΓòÉ
  4691.  
  4692. Returns the index of the last character in the specified string or character. 
  4693. The search starts at the position specified by startPos (inclusive) and 
  4694. proceeds backward. The default of 0 starts the search at the end of the 
  4695. receiver's string. If the search target is not found, 0 is returned. 
  4696.  
  4697. If you specify 0 or 1 for startPos, this function returns 0 indicating the 
  4698. search target was not found. 
  4699.  
  4700. Overload 1 
  4701.  
  4702. public:
  4703. unsigned
  4704.   lastIndexOfAnyOf( const char* pString,
  4705.                     unsigned len,
  4706.                     unsigned startPos = 0) const;
  4707.  
  4708. Overload 2 
  4709.  
  4710. public:
  4711. unsigned
  4712.   lastIndexOfAnyOf( const IStringTest& aTest,
  4713.                     unsigned startPos = 0) const;
  4714.  
  4715.  
  4716. ΓòÉΓòÉΓòÉ 1.11.26. IDBCSBuffer::leftJustify ΓòÉΓòÉΓòÉ
  4717.  
  4718. Left-justifies the receiver in a string of the specified length. If the new 
  4719. length (length) is larger than the current length, the string is extended by 
  4720. the pad character (padCharacter). The default pad character is a blank. 
  4721.  
  4722. public:
  4723. IBuffer* leftJustify(unsigned newLen, char padCharacter);
  4724.  
  4725.  
  4726. ΓòÉΓòÉΓòÉ 1.11.27. IDBCSBuffer::lowerCase ΓòÉΓòÉΓòÉ
  4727.  
  4728. Translates all upper-case letters in the receiver to lower-case. 
  4729.  
  4730. public:
  4731. IBuffer* lowerCase();
  4732.  
  4733.  
  4734. ΓòÉΓòÉΓòÉ 1.11.28. IDBCSBuffer::maxCharLength ΓòÉΓòÉΓòÉ
  4735.  
  4736. Returns the maximum number of bytes in a multiple-byte character. This is a 
  4737. static function. 
  4738.  
  4739. protected:
  4740. static size_t maxCharLength();
  4741.  
  4742.  
  4743. ΓòÉΓòÉΓòÉ 1.11.29. IDBCSBuffer::next ΓòÉΓòÉΓòÉ
  4744.  
  4745. Returns a pointer to the next character, not the next byte, in the buffer. 
  4746.  
  4747. Overload 1 
  4748.  
  4749. public:
  4750. char* next(const char* prev);
  4751.  
  4752. Overload 2 
  4753.  
  4754. public:
  4755. const char* next(const char* prev) const;
  4756.  
  4757.  
  4758. ΓòÉΓòÉΓòÉ 1.11.30. IDBCSBuffer::overlayWith ΓòÉΓòÉΓòÉ
  4759.  
  4760. Replaces a specified portion of the receiver's contents with the specified 
  4761. string. If pos is beyond the end of the receiver's data, it is padded with the 
  4762. pad character (padCharacter). 
  4763.  
  4764. public:
  4765. IBuffer*
  4766.   overlayWith( const char* overlay,
  4767.                unsigned len,
  4768.                unsigned pos,
  4769.                char padCharacter);
  4770.  
  4771.  
  4772. ΓòÉΓòÉΓòÉ 1.11.31. IDBCSBuffer::prevCharLength ΓòÉΓòÉΓòÉ
  4773.  
  4774. Returns the number of bytes in the preceding character to the one at the 
  4775. specified offset. 
  4776.  
  4777. protected:
  4778. size_t prevCharLength(unsigned pos) const;
  4779.  
  4780.  
  4781. ΓòÉΓòÉΓòÉ 1.11.32. IDBCSBuffer::remove ΓòÉΓòÉΓòÉ
  4782.  
  4783. Deletes the specified portion of the string (that is, the substring) from the 
  4784. receiver. You can use this function to truncate an IString object at a specific 
  4785. position. For example: 
  4786.  
  4787. aString.remove(8);
  4788. removes the substring beginning at index 8 and takes the rest of the string as 
  4789. a default. 
  4790.  
  4791. public:
  4792. IBuffer* remove(unsigned startPos, unsigned numChars);
  4793.  
  4794.  
  4795. ΓòÉΓòÉΓòÉ 1.11.33. IDBCSBuffer::reverse ΓòÉΓòÉΓòÉ
  4796.  
  4797. Reverses the receiver's contents. 
  4798.  
  4799. public:
  4800. IBuffer* reverse();
  4801.  
  4802.  
  4803. ΓòÉΓòÉΓòÉ 1.11.34. IDBCSBuffer::rightJustify ΓòÉΓòÉΓòÉ
  4804.  
  4805. Right-justifies the receiver in a string of the specified length. If the 
  4806. receiver's data is shorter than the requested length (length), it is padded on 
  4807. the left with the pad character (padCharacter). The default pad character is a 
  4808. blank. 
  4809.  
  4810. public:
  4811. IBuffer* rightJustify(unsigned newLen, char padCharacter);
  4812.  
  4813.  
  4814. ΓòÉΓòÉΓòÉ 1.11.35. IDBCSBuffer::startBackwardsSearch ΓòÉΓòÉΓòÉ
  4815.  
  4816. Initializes a search of type IString::lastIndexOf. 
  4817.  
  4818.     If searchLen is greater than the length of the buffer, 0 is returned 
  4819.      indicating an invalid search request. 
  4820.  
  4821.     If the starting position is 0 or beyond the last searchLen bytes of the 
  4822.      buffer, the position where the last searchLen bytes start in the buffer is 
  4823.      returned. 
  4824.  
  4825.     If the starting position is 1 through the last searchLen bytes, the value 
  4826.      of startingPos is returned. 
  4827.  
  4828. protected:
  4829. unsigned
  4830.   startBackwardsSearch( unsigned startPos,
  4831.                         unsigned searchLen) const;
  4832.  
  4833.  
  4834. ΓòÉΓòÉΓòÉ 1.11.36. IDBCSBuffer::startSearch ΓòÉΓòÉΓòÉ
  4835.  
  4836. Initializes a search of type IString::indexOf. 
  4837.  
  4838.     If startPos is 0, the search uses a starting position of 1. 
  4839.  
  4840.     If the specified startPos and searchLen result in an invalid search, 0 is 
  4841.      returned. This usually occurs when the sum of startPos and searchLen is 
  4842.      greater than the size of the buffer. 
  4843.  
  4844. protected:
  4845. unsigned
  4846.   startSearch( unsigned startPos,
  4847.                unsigned searchLen) const;
  4848.  
  4849.  
  4850. ΓòÉΓòÉΓòÉ 1.11.37. IDBCSBuffer::strip ΓòÉΓòÉΓòÉ
  4851.  
  4852. Strips both leading and trailing character or characters. You can specify the 
  4853. character or characters as the following: 
  4854.  
  4855.     A char* array 
  4856.     An IStringTestobject 
  4857. The default is white space. 
  4858.  
  4859. Overload 1 
  4860.  
  4861. public:
  4862. IBuffer*
  4863.   strip( const IStringTest& aTest,
  4864.          IStringEnum::StripMode mode);
  4865.  
  4866. Overload 2 
  4867.  
  4868. public:
  4869. IBuffer*
  4870.   strip( const char* pChars,
  4871.          unsigned len,
  4872.          IStringEnum::StripMode mode);
  4873.  
  4874.  
  4875. ΓòÉΓòÉΓòÉ 1.11.38. IDBCSBuffer::subString ΓòÉΓòÉΓòÉ
  4876.  
  4877. Returns a new IBuffer, of the same type as the previous one, containing the 
  4878. specified subset of characters. 
  4879.  
  4880. The parameters are the following: 
  4881.  
  4882. startPos  The index at which to start the substring. If startPos is 0, the 
  4883.           function uses position 1. If startPos is beyond the end of the 
  4884.           buffer, nothing is copied. The buffer is filled out by the specified 
  4885.           padding character. 
  4886.  
  4887. len       The length to copy from the buffer. If the length extends beyond the 
  4888.           end of the buffer, only the portion up to the end is copied. The 
  4889.           buffer is then padded. If len is 0, a reference to the NULL buffer is 
  4890.           returned. 
  4891.  
  4892. padCharacter Specifies the character the function uses to pad the copied string 
  4893.           if less than len bytes have been copied from the source buffer. 
  4894.  
  4895. public:
  4896. IBuffer*
  4897.   subString( unsigned startPos,
  4898.              unsigned len,
  4899.              char padCharacter) const;
  4900.  
  4901.  
  4902. ΓòÉΓòÉΓòÉ 1.11.39. IDBCSBuffer::translate ΓòÉΓòÉΓòÉ
  4903.  
  4904. Converts all of the receiver's characters that are in the first specified 
  4905. string to the corresponding character in the second specified string. 
  4906.  
  4907. public:
  4908. IBuffer*
  4909.   translate( const char* pInputChars,
  4910.              unsigned inputLen,
  4911.              const char* pOutputChars,
  4912.              unsigned outputLen,
  4913.              char padCharacter);
  4914.  
  4915.  
  4916. ΓòÉΓòÉΓòÉ 1.11.40. IDBCSBuffer::upperCase ΓòÉΓòÉΓòÉ
  4917.  
  4918. Translates all lower-case letters in the receiver to upper-case. 
  4919.  
  4920. public:
  4921. IBuffer* upperCase();
  4922.  
  4923.  
  4924. ΓòÉΓòÉΓòÉ 1.11.41. IDBCSBuffer::~IDBCSBuffer ΓòÉΓòÉΓòÉ
  4925.  
  4926. protected:
  4927. ~IDBCSBuffer();
  4928.  
  4929.  
  4930. ΓòÉΓòÉΓòÉ 1.12. IDeviceError ΓòÉΓòÉΓòÉ
  4931.  
  4932. Description 
  4933.  
  4934. Derivation 
  4935.  
  4936. Constructors 
  4937.  
  4938. Public Functions 
  4939.  
  4940. Public Data 
  4941.  
  4942. Public Data includes Styles and Notification IDs if they exist. 
  4943.  
  4944. To close all the panels in a chapter, double click on this panel's system menu. 
  4945.  
  4946.  
  4947. ΓòÉΓòÉΓòÉ <hidden> Derivation - IDeviceError ΓòÉΓòÉΓòÉ
  4948.  
  4949. IException
  4950.   Γöé
  4951. IDeviceError
  4952.  
  4953. Inherited by none. 
  4954.  
  4955.  
  4956. ΓòÉΓòÉΓòÉ <hidden> Class Description - IDeviceError ΓòÉΓòÉΓòÉ
  4957.  
  4958. iexcbase.hpp 
  4959.  
  4960. Objects of the IDeviceError class represent an exception. When a member 
  4961. function makes a hardware-related request of the operating system or the 
  4962. presentation system that the system cannot satisfy because of a hardware 
  4963. failure, the member function creates and throws an object of the IDeviceError 
  4964. class. An example of a failing hardware-related request is printing to a 
  4965. disconnected printer. 
  4966.  
  4967.  
  4968. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IDeviceError ΓòÉΓòÉΓòÉ
  4969.  
  4970. Constructors
  4971. IDeviceError
  4972.  
  4973. Exception Type
  4974. name
  4975.  
  4976. Inherited Members
  4977. IException
  4978. addLocation
  4979. appendText
  4980. assertParameter
  4981. errorCodeGroup
  4982. errorId
  4983. isRecoverable
  4984. locationAtIndex
  4985. locationCount
  4986. logExceptionData
  4987. name
  4988. setErrorCodeGroup
  4989. setErrorId
  4990. setSeverity
  4991. setText
  4992. setTraceFunction
  4993. terminate
  4994. text
  4995. textCount
  4996.  
  4997.  
  4998. ΓòÉΓòÉΓòÉ <hidden> IDeviceError - Constructors ΓòÉΓòÉΓòÉ
  4999.  
  5000. You can construct objects of this class. 
  5001.  
  5002.  
  5003. ΓòÉΓòÉΓòÉ <hidden> IDeviceError - Exception Type ΓòÉΓòÉΓòÉ
  5004.  
  5005. These members provide support for determining the name (type) of the exception. 
  5006. This is used for logging out an exception object's error information. 
  5007.  
  5008.  
  5009. ΓòÉΓòÉΓòÉ <hidden> Public Data - IDeviceError ΓòÉΓòÉΓòÉ
  5010.  
  5011. Inherited Members
  5012. IException
  5013. baseLibrary
  5014. CLibrary
  5015. operatingSystem
  5016. other
  5017. presentationSystem
  5018.  
  5019.  
  5020. ΓòÉΓòÉΓòÉ 1.12.1. IDeviceError::IDeviceError ΓòÉΓòÉΓòÉ
  5021.  
  5022. You can create objects of this class by doing the following: 
  5023.  
  5024.     Using the constructor. 
  5025.  
  5026.      errorText      The text describing this particular error. 
  5027.  
  5028.      errorId        The identifier you want to associate with this particular 
  5029.                     error. 
  5030.  
  5031.      severity       Use the enumeration IException::Severity to specify the 
  5032.                     severity of the error. The default is unrecoverable. 
  5033.  
  5034.     Using the macros discussed in IException. The User Interface Class Library 
  5035.      provides these macros to make creating exceptions easier for you. 
  5036.  
  5037. public:
  5038. IDeviceError( const char* errorText,
  5039.               unsigned long errorId,
  5040.               Severity severity = IException::unrecoverable);
  5041.  
  5042.  
  5043. ΓòÉΓòÉΓòÉ 1.12.2. IDeviceError::name ΓòÉΓòÉΓòÉ
  5044.  
  5045. Returns the name of the object's class. 
  5046.  
  5047. public:
  5048. virtual const char* name() const;
  5049.  
  5050.  
  5051. ΓòÉΓòÉΓòÉ 1.13. IErrorInfo ΓòÉΓòÉΓòÉ
  5052.  
  5053. Description 
  5054.  
  5055. Derivation 
  5056.  
  5057. Constructors 
  5058.  
  5059. Public Functions 
  5060.  
  5061. Protected Data 
  5062.  
  5063. Nested Types 
  5064.  
  5065. To close all the panels in a chapter, double click on this panel's system menu. 
  5066.  
  5067.  
  5068. ΓòÉΓòÉΓòÉ <hidden> Derivation - IErrorInfo ΓòÉΓòÉΓòÉ
  5069.  
  5070. IBase
  5071.   Γöé
  5072. IVBase
  5073.   Γöé
  5074. IErrorInfo
  5075.  
  5076. Inherited by: 
  5077.  
  5078.      ICLibErrorInfo 
  5079.      IGUIErrorInfo 
  5080.      IMMErrorInfo 
  5081.      ISystemErrorInfo 
  5082.      IXLibErrorInfo 
  5083.  
  5084.  
  5085. ΓòÉΓòÉΓòÉ <hidden> Class Description - IErrorInfo ΓòÉΓòÉΓòÉ
  5086.  
  5087. iexcept.hpp 
  5088.  
  5089. The IErrorInfo class is an abstract base class that defines the interface for 
  5090. its derived classes. These classes retrieve error information and text that you 
  5091. can subsequently use to create an exception object. The following macros assist 
  5092. in throwing exceptions: 
  5093.  
  5094. IASSERTPARM 
  5095.      This macro accepts an expression to test. The expression is asserted to be 
  5096.      true. If it evaluates to false, the macro generates code that calls the 
  5097.      IExcept__assertParameter function, which creates an 
  5098.      IInvalidParameterexception. The error group, other, is added to the 
  5099.      object. The exception data is logged using 
  5100.      IException::TraceFn::logExceptionData, and the exception is then thrown. 
  5101.  
  5102. IASSERTSTATE 
  5103.      This macro accepts an expression to test. The expression is asserted to be 
  5104.      true. If it evaluates to false, the macro generates code that calls the 
  5105.      IExcept__assertState function, which creates an IInvalidRequestexception. 
  5106.      The error group, other, is added to the object. The exception data is 
  5107.      logged, and the exception is then thrown. 
  5108.  
  5109. ITHROWLIBRARYERROR 
  5110.      This macro can throw any of the User Interface Class Library-defined 
  5111.      exceptions. 
  5112.  
  5113.      id             The ID of the message to load from the class library 
  5114.                     message file. 
  5115.  
  5116.      name           A value from the enumeration IErrorInfo::ExceptionType, 
  5117.                     indicating the type of exception to create. 
  5118.  
  5119.      severity       A value from the enumeration IException::Severity, 
  5120.                     indicating the severity of the exception. 
  5121.  
  5122.      The macro generates code that calls the IExcept__throwLibraryError 
  5123.      function, which does the following: 
  5124.  
  5125.        1. Loads the message text from the class library message file 
  5126.        2. Uses the message text to create an exception object 
  5127.        3. Adds location information 
  5128.        4. Logs the exception data 
  5129.        5. Throws the exception 
  5130.  
  5131. ITHROWLIBRARYERROR1 
  5132.      This macro can throw any of the User Interface Class Library-defined 
  5133.      exceptions. It is identical to the ITHROWLIBRARYERROR macro, except it has 
  5134.      a fourth parameter: 
  5135.  
  5136.      text           Replacement text for the retrieved message. 
  5137.  
  5138. ITHROWERROR 
  5139.      This macro can throw any of the User Interface Class Library-defined 
  5140.      exceptions. 
  5141.  
  5142.      messageId      The ID of the message to load from the message file. 
  5143.  
  5144.      name           A value from the enumeration IErrorInfo::ExceptionType, 
  5145.                     indicating the type of exception to create. 
  5146.  
  5147.      severity       A value from the enumeration IException::Severity, 
  5148.                     indicating the severity of the exception. 
  5149.  
  5150.      messageFile    The name of the message file to load the exception text 
  5151.                     from.  This name should include the file extension.  e.g. 
  5152.                     "USERMSG.MSG" 
  5153.  
  5154.      errorGroup     The errorGroup associated with this error.  This can be one 
  5155.                     of the values for ErrorCodeGroup defined in IException, or 
  5156.                     a value you provide. 
  5157.  
  5158.      The macro generates code that calls the IExcept__throwError function, 
  5159.      which does the following: 
  5160.  
  5161.        1. Loads the message text from the specified library message file 
  5162.        2. Uses the message text to create an exception object 
  5163.        3. Adds the error group to the object 
  5164.        4. Adds location information 
  5165.        5. Logs the exception data 
  5166.        6. Throws the exception 
  5167.  
  5168. ITHROWERROR1 
  5169.      This macro can throw any of the User Interface Class Library-defined 
  5170.      exceptions. It is identical to the ITHROWERROR macro, except it has a 
  5171.      fourth parameter: 
  5172.  
  5173.      substitutionText Substitution text for the retrieved message. 
  5174.  
  5175. Presentation Manager Information 
  5176.  
  5177. IGUIErrorInfo, ISystemErrorInfo, and ICLibErrorInfo are derived from this 
  5178. class. You can use IGUIErrorInfo to obtain information about errors detected by 
  5179. the Win calls for Presentation Manager. Use ISystemErrorInfo to obtain error 
  5180. information about DOS system call errors. 
  5181.  
  5182. Motif Information 
  5183.  
  5184. IXLibErrorInfo is derived from this class. You can use IXLibErrorInfo to obtain 
  5185. error information about error conditions detected when calling X library APIs. 
  5186. Use ICLibErrorInfo to obtain error information about error conditions detected 
  5187. when calling C Library functions. 
  5188.  
  5189. You can create objects of IGUIErrorInfo and ISystemErrorInfo on AIX, but they 
  5190. have default messages: 
  5191.  
  5192. IGUIErrorInfo       GUI exception condition detected 
  5193. ISystemErrorInfo    System exception condition detected 
  5194.  
  5195.  
  5196. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IErrorInfo ΓòÉΓòÉΓòÉ
  5197.  
  5198. Constructors
  5199. IErrorInfo
  5200. ~IErrorInfo
  5201.  
  5202. Error Information
  5203. errorId
  5204. isAvailable
  5205. operator const char *
  5206. text
  5207.  
  5208. Throw Support
  5209. throwError
  5210.  
  5211. Inherited Members
  5212. IVBase
  5213. asDebugInfo
  5214. asString
  5215.  
  5216. IBase
  5217. asDebugInfo
  5218. asString
  5219. messageFile
  5220. messageText
  5221. setMessageFile
  5222. version
  5223.  
  5224.  
  5225. ΓòÉΓòÉΓòÉ <hidden> IErrorInfo - Constructors ΓòÉΓòÉΓòÉ
  5226.  
  5227. This is a virtual base class so you cannot create objects of this type without 
  5228. deriving from this class. 
  5229.  
  5230.  
  5231. ΓòÉΓòÉΓòÉ <hidden> IErrorInfo - Error Information ΓòÉΓòÉΓòÉ
  5232.  
  5233. Use these members to return error information provided by objects of this 
  5234. class.  All the members are pure virtual. 
  5235.  
  5236.  
  5237. ΓòÉΓòÉΓòÉ <hidden> IErrorInfo - Throw Support ΓòÉΓòÉΓòÉ
  5238.  
  5239. Use these members to support the throwing of exceptions. 
  5240.  
  5241.  
  5242. ΓòÉΓòÉΓòÉ <hidden> Protected Data - IErrorInfo ΓòÉΓòÉΓòÉ
  5243.  
  5244. Inherited Members
  5245. IBase
  5246. recoverable
  5247. unrecoverable
  5248.  
  5249.  
  5250. ΓòÉΓòÉΓòÉ 1.13.1. IErrorInfo::errorId ΓòÉΓòÉΓòÉ
  5251.  
  5252. Returns the error ID. 
  5253.  
  5254. public:
  5255. virtual unsigned long errorId() const = 0;
  5256.  
  5257.  
  5258. ΓòÉΓòÉΓòÉ 1.13.2. IErrorInfo::IErrorInfo ΓòÉΓòÉΓòÉ
  5259.  
  5260. This is a virtual base class so you cannot create objects of this type without 
  5261. deriving from this class. 
  5262.  
  5263. public:
  5264. IErrorInfo();
  5265.  
  5266.  
  5267. ΓòÉΓòÉΓòÉ 1.13.3. IErrorInfo::isAvailable ΓòÉΓòÉΓòÉ
  5268.  
  5269. If error information is available, true is returned. 
  5270.  
  5271. public:
  5272. virtual Boolean isAvailable() const = 0;
  5273.  
  5274.  
  5275. ΓòÉΓòÉΓòÉ 1.13.4. IErrorInfo::operator const char * ΓòÉΓòÉΓòÉ
  5276.  
  5277. Returns the error text. 
  5278.  
  5279. public:
  5280. virtual  operator const char *() const = 0;
  5281.  
  5282.  
  5283. ΓòÉΓòÉΓòÉ 1.13.5. IErrorInfo::text ΓòÉΓòÉΓòÉ
  5284.  
  5285. Returns the error text. 
  5286.  
  5287. public:
  5288. virtual const char* text() const = 0;
  5289.  
  5290.  
  5291. ΓòÉΓòÉΓòÉ 1.13.6. IErrorInfo::throwError ΓòÉΓòÉΓòÉ
  5292.  
  5293. Creates an IErrorInfo object and uses it to do the following: 
  5294.  
  5295.   1. Create an exception object 
  5296.   2. Add the error code group to the object 
  5297.   3. Add the location information to the object 
  5298.   4. Log the exception data 
  5299.   5. Throw the exception 
  5300.  
  5301. location  An IExceptionLocation object containing the following: 
  5302.  
  5303.               Function name 
  5304.               File name 
  5305.               Line number where the function is called 
  5306.  
  5307. name      Use the enumeration ExceptionType to specify the type of the 
  5308.           exception. The default is accessError. 
  5309.  
  5310. severity  Use the enumeration IException::Severity to specify the severity of 
  5311.           the error. The default is recoverable. 
  5312.  
  5313. errorGroup Use one of the ErrorCodeGroup values provided in IException, or 
  5314.           provide your own group for this parameter.  The default is 
  5315.           baseLibrary. 
  5316.  
  5317. public:
  5318. void
  5319.   throwError( const IExceptionLocation& location,
  5320.               ExceptionType name = accessError,
  5321.               IException::Severity severity = recoverable,
  5322.               IException::ErrorCodeGroup errorGroup = IException::baseLibrary);
  5323.  
  5324.  
  5325. ΓòÉΓòÉΓòÉ 1.13.7. IErrorInfo::~IErrorInfo ΓòÉΓòÉΓòÉ
  5326.  
  5327. public:
  5328. virtual  ~IErrorInfo();
  5329.  
  5330.  
  5331. ΓòÉΓòÉΓòÉ <hidden> Nested Types - IErrorInfo ΓòÉΓòÉΓòÉ
  5332.  
  5333. Enumerations 
  5334.  
  5335.       ExceptionType 
  5336.  
  5337.  
  5338. ΓòÉΓòÉΓòÉ <hidden> Enums - ExceptionType ΓòÉΓòÉΓòÉ
  5339.  
  5340. enum ExceptionType { accessError,
  5341.                      deviceError,
  5342.                      invalidParameter,
  5343.                      invalidRequest,
  5344.                      outOfSystemResource,
  5345.                      outOfWindowResource,
  5346.                      outOfMemory,
  5347.                      resourceExhausted };
  5348.  
  5349. The following enumeration type is defined to specify the type of exception to 
  5350. create on various functions and macros: 
  5351.  
  5352. ExceptionType - Used to specify the type of exception to be created.  The 
  5353. allowable values are: 
  5354.  
  5355. accessError 
  5356.      Creates an IAccessError object. 
  5357.  
  5358. deviceError 
  5359.      Creates an IDeviceError object. 
  5360.  
  5361. invalidParameter 
  5362.      Creates an IInvalidParameter object. 
  5363.  
  5364. invalidRequest 
  5365.      Creates an IInvalidRequest object. 
  5366.  
  5367. outOfSystemResource 
  5368.      Creates an IOutOfSystemResource object. 
  5369.  
  5370. outOfWindowResource 
  5371.      Creates an IOutOfWindowResource object. 
  5372.  
  5373. outOfMemory 
  5374.      Creates an IOutOfMemory object. 
  5375.  
  5376. resourceExhausted 
  5377.      Creates an IResourceExhausted object. 
  5378.  
  5379.  
  5380. ΓòÉΓòÉΓòÉ 1.14. IException ΓòÉΓòÉΓòÉ
  5381.  
  5382. Description 
  5383.  
  5384. Derivation 
  5385.  
  5386. Constructors 
  5387.  
  5388. Public Functions 
  5389.  
  5390. Public Data 
  5391.  
  5392. Nested Types 
  5393.  
  5394. Public Data includes Styles and Notification IDs if they exist. 
  5395.  
  5396. To close all the panels in a chapter, double click on this panel's system menu. 
  5397.  
  5398.  
  5399. ΓòÉΓòÉΓòÉ <hidden> Derivation - IException ΓòÉΓòÉΓòÉ
  5400.  
  5401. Inherits from none. 
  5402.  
  5403. Inherited by: 
  5404.  
  5405.      IAccessError 
  5406.      IAssertionFailure 
  5407.      IDeviceError 
  5408.      IInvalidParameter 
  5409.      IInvalidRequest 
  5410.      IResourceExhausted 
  5411.  
  5412.  
  5413. ΓòÉΓòÉΓòÉ <hidden> Class Description - IException ΓòÉΓòÉΓòÉ
  5414.  
  5415. iexcbase.hpp 
  5416.  
  5417. The IException class is the base class from which all exception objects thrown 
  5418. in the library are derived. None of the functions in this class throws 
  5419. exceptions because an exception has probably already been thrown or is about to 
  5420. be thrown. Member functions in the User Interface Class Library create objects 
  5421. of classes derived from IException for all error conditions the functions 
  5422. encounter. Each exception object contains the following: 
  5423.  
  5424.     A stack of exception message text strings (descriptions) 
  5425.     An error ID 
  5426.     A severity code 
  5427.     An error code group 
  5428.     Information about where the exception was thrown 
  5429. IException provides all of the functions required for it and its derived 
  5430. classes, including functions that operate on the text strings in the stack. 
  5431.  
  5432. The library defines the derived classes so that you can catch exceptions by 
  5433. their type. In general, never create an IException object. Instead, create and 
  5434. throw an object of the appropriate derived class. The derived classes of 
  5435. IException are the following: 
  5436.  
  5437.      IAccessError 
  5438.      IAssertionFailure 
  5439.      IDeviceError 
  5440.      IInvalidParameter 
  5441.      IInvalidRequest 
  5442.      IResourceExhausted 
  5443. In addition, IResourceExhausted has the following derived classes: 
  5444.  
  5445.      IOutOfMemory 
  5446.      IOutOfSystemResource 
  5447.      IOutOfWindowResource 
  5448. You can also derive your own exception type from IException. 
  5449.  
  5450. The User Interface Class Library provides the following macros to assist in 
  5451. using exception handling. If you derive your own exception type and you want to 
  5452. use a macro, you must use the ITHROW macro or write your own macro. 
  5453.  
  5454. ITHROW 
  5455.      Accepts as input a predefined object of any IException-derived class. The 
  5456.      macro generates code to add the location information to the objects, logs 
  5457.      all object data, and throws the exception. 
  5458.  
  5459. IRETHROW 
  5460.      Accepts as input an object of any derived class of IException that has 
  5461.      been previously thrown and caught. Like the ITHROW macro, it also captures 
  5462.      the location information and logs all object data before re-throwing the 
  5463.      exception. 
  5464.  
  5465. IASSERT 
  5466.      If you define IC_DEVELOP during the compile for debugging purposes, this 
  5467.      macro expands to provide assertion support in the library. This macro 
  5468.      accepts an expression to test. If the test evaluation returns false, 
  5469.      IASSERT calls assertParameter. 
  5470.  
  5471. IEXCLASSDECLARE 
  5472.      Creates a declaration for a derived class of IException or one of its 
  5473.      derived classes. 
  5474.  
  5475. IEXCLASSIMPLEMENT 
  5476.      Creates a definition for a derived class of IException or one of its 
  5477.      derived classes. 
  5478.  
  5479. IEXCEPTION_LOCATION 
  5480.      Expands to create an object of the class IExceptionLocation. 
  5481.  
  5482. INO_EXCEPTIONS_SUPPORT 
  5483.      Supports compilers lacking an exception-handling implementation. If you 
  5484.      use the INO_EXCEPTIONS_SUPPORT macro, the following macros end the program 
  5485.      after capturing the location information and logging it. These macros 
  5486.      normally throw an exception. 
  5487.  
  5488.      ITHROW                             Found in IException. 
  5489.      IASSERTPARM                        Found in IErrorInfo. 
  5490.      IASSERTSTATE                       Found in IErrorInfo. 
  5491.      ITHROWERROR                        Found in IErrorInfo. 
  5492.      ITHROWERROR1                       Found in IErrorInfo. 
  5493.      ITHROWLIBRARYERROR                 Found in IErrorInfo. 
  5494.      ITHROWLIBRARYERROR1                Found in IErrorInfo. 
  5495.      ITHROWGUIERROR                     Found in IGUIErrorInfo. 
  5496.      ITHROWGUIERROR2                    Found in IGUIErrorInfo. 
  5497.      ITHROWSYSTEMERROR                  Found in ISystemErrorInfo. 
  5498.  
  5499.      Warning: The INO_EXCEPTIONS_SUPPORT macro might not work correctly on all 
  5500.      compilers. 
  5501.  
  5502. Whenever the User Interface Class Library throws one of these exceptions, trace 
  5503. records are output with information about the exception. The class ITrace 
  5504. describes tracing in more detail. 
  5505.  
  5506.  
  5507. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IException ΓòÉΓòÉΓòÉ
  5508.  
  5509. Application Termination
  5510. terminate
  5511.  
  5512. Constructors
  5513. IException
  5514. ~IException
  5515.  
  5516. Error Code
  5517. errorCodeGroup
  5518. setErrorCodeGroup
  5519.  
  5520. Error Information
  5521. errorId
  5522. setErrorId
  5523.  
  5524. Exception Location
  5525. addLocation
  5526. locationAtIndex
  5527. locationCount
  5528.  
  5529. Exception Logging
  5530. logExceptionData
  5531. setTraceFunction
  5532.  
  5533. Exception Severity
  5534. isRecoverable
  5535. setSeverity
  5536.  
  5537. Exception Text
  5538. appendText
  5539. setText
  5540. text
  5541. textCount
  5542.  
  5543. Exception Type
  5544. name
  5545.  
  5546. Throw Support
  5547. assertParameter
  5548.  
  5549.  
  5550. ΓòÉΓòÉΓòÉ <hidden> IException - Application Termination ΓòÉΓòÉΓòÉ
  5551.  
  5552. These members provide support for terminating an application instead of 
  5553. throwing an exception. 
  5554.  
  5555.  
  5556. ΓòÉΓòÉΓòÉ <hidden> IException - Constructors ΓòÉΓòÉΓòÉ
  5557.  
  5558. You can construct and destruct objects of this class. You cannot assign one 
  5559. IException object from another. 
  5560.  
  5561.  
  5562. ΓòÉΓòÉΓòÉ <hidden> IException - Error Code ΓòÉΓòÉΓòÉ
  5563.  
  5564. Use these members to determine which class library an exception originated 
  5565. from. 
  5566.  
  5567.  
  5568. ΓòÉΓòÉΓòÉ <hidden> IException - Error Information ΓòÉΓòÉΓòÉ
  5569.  
  5570. Use these members to get or modify the error identifier of the exception 
  5571. object. 
  5572.  
  5573.  
  5574. ΓòÉΓòÉΓòÉ <hidden> IException - Exception Location ΓòÉΓòÉΓòÉ
  5575.  
  5576. Use these members to set and access the location information in the exception 
  5577. object. 
  5578.  
  5579.  
  5580. ΓòÉΓòÉΓòÉ <hidden> IException - Exception Logging ΓòÉΓòÉΓòÉ
  5581.  
  5582. Use these members to log exception information. 
  5583.  
  5584.  
  5585. ΓòÉΓòÉΓòÉ <hidden> IException - Exception Severity ΓòÉΓòÉΓòÉ
  5586.  
  5587. Use these members to set and determine the severity of the error condition. 
  5588.  
  5589.  
  5590. ΓòÉΓòÉΓòÉ <hidden> IException - Exception Text ΓòÉΓòÉΓòÉ
  5591.  
  5592. Use these members to set, modify, and retrieve the exception text in the 
  5593. object. 
  5594.  
  5595.  
  5596. ΓòÉΓòÉΓòÉ <hidden> IException - Exception Type ΓòÉΓòÉΓòÉ
  5597.  
  5598. Use these members to determine the name (type) of the exception.  This is used 
  5599. for logging out an exception object's error information. 
  5600.  
  5601.  
  5602. ΓòÉΓòÉΓòÉ <hidden> IException - Hidden Functions ΓòÉΓòÉΓòÉ
  5603.  
  5604. These members are hidden to prevent you from copying objects of this class. 
  5605.  
  5606.  
  5607. ΓòÉΓòÉΓòÉ <hidden> IException - Throw Support ΓòÉΓòÉΓòÉ
  5608.  
  5609. These members support the throwing of exceptions. 
  5610.  
  5611.  
  5612. ΓòÉΓòÉΓòÉ <hidden> Public Data - IException ΓòÉΓòÉΓòÉ
  5613.  
  5614. Error Code
  5615. baseLibrary
  5616. CLibrary
  5617. operatingSystem
  5618. other
  5619. presentationSystem
  5620.  
  5621.  
  5622. ΓòÉΓòÉΓòÉ 1.14.1. IException::addLocation ΓòÉΓòÉΓòÉ
  5623.  
  5624. Adds the location information to the exception object. The User Interface Class 
  5625. Library captures this information when an exception is thrown or re-thrown. An 
  5626. array of IExceptionLocation objects is stored in the exception object. 
  5627.  
  5628. location  An IExceptionLocation object containing the following: 
  5629.  
  5630.               Function name 
  5631.               File name 
  5632.               Line number where the function is called 
  5633.  
  5634. public:
  5635. virtual IException&
  5636.   addLocation( const IExceptionLocation& location);
  5637.  
  5638.  
  5639. ΓòÉΓòÉΓòÉ 1.14.2. IException::appendText ΓòÉΓòÉΓòÉ
  5640.  
  5641. Appends the specified text to the text string on the top of the exception text 
  5642. stack. 
  5643.  
  5644. errorText The text you want to append. 
  5645.  
  5646. public:
  5647. IException& appendText(const char* errorText);
  5648.  
  5649.  
  5650. ΓòÉΓòÉΓòÉ 1.14.3. IException::assertParameter ΓòÉΓòÉΓòÉ
  5651.  
  5652. The IASSERT macro uses this function to do the following: 
  5653.  
  5654.   1. Create an IAssertionFailure exception 
  5655.   2. Add the location information to it 
  5656.   3. Log the exception data 
  5657.   4. Throw the exception 
  5658.  
  5659. exceptionText The text describing the exception. 
  5660.  
  5661. location  An IExceptionLocation object containing the following: 
  5662.  
  5663.               Function name 
  5664.               File name 
  5665.               Line number where the function is called 
  5666.  
  5667. public:
  5668. static void
  5669.   assertParameter( const char* exceptionText,
  5670.                    IExceptionLocation location);
  5671.  
  5672.  
  5673. ΓòÉΓòÉΓòÉ 1.14.4. IException::baseLibrary ΓòÉΓòÉΓòÉ
  5674.  
  5675. This is the error group for IBM Open Class Library errors. 
  5676.  
  5677. public:
  5678. static ErrorCodeGroup const baseLibrary;
  5679.  
  5680.  
  5681. ΓòÉΓòÉΓòÉ 1.14.5. IException::CLibrary ΓòÉΓòÉΓòÉ
  5682.  
  5683. This is the error group for the C library errors. 
  5684.  
  5685. public:
  5686. static ErrorCodeGroup const CLibrary;
  5687.  
  5688.  
  5689. ΓòÉΓòÉΓòÉ 1.14.6. IException::errorCodeGroup ΓòÉΓòÉΓòÉ
  5690.  
  5691. Returns the error group the exception originated from. 
  5692.  
  5693. public:
  5694. ErrorCodeGroup errorCodeGroup() const;
  5695.  
  5696.  
  5697. ΓòÉΓòÉΓòÉ 1.14.7. IException::errorId ΓòÉΓòÉΓòÉ
  5698.  
  5699. Returns the error ID of the exception. 
  5700.  
  5701. public:
  5702. unsigned long errorId() const;
  5703.  
  5704. Used in sample:   List Box Sample: alistbox.cpp 
  5705.  
  5706.  
  5707. ΓòÉΓòÉΓòÉ 1.14.8. IException::IException ΓòÉΓòÉΓòÉ
  5708.  
  5709. You can construct and destruct objects of this class. You cannot assign one 
  5710. IException object from another. 
  5711.  
  5712. Overload 1 
  5713.  
  5714. public:
  5715. IException(const IException& exception);
  5716. The copy constructor is provided so that the compiler can make copies of the 
  5717. object during the throwing of an exception. 
  5718.  
  5719. Overload 2 
  5720.  
  5721. public:
  5722. IException( const char* errorText,
  5723.             unsigned long errorId = 0,
  5724.             Severity severity = IException::unrecoverable);
  5725.  
  5726. You can construct objects of this class by doing the following: 
  5727.  
  5728.     Using the primary constructor. Normally, this is the only way you can 
  5729.      construct an object of this class. 
  5730.  
  5731.      errorText      The text describing this error. 
  5732.  
  5733.      errorId        (Optional) The identifier you want to associate with this 
  5734.                     particular error. 
  5735.  
  5736.      severity       (Optional) Use the enumeration IException::Severity to 
  5737.                     specify the severity of the error. The default is 
  5738.                     unrecoverable. 
  5739.  
  5740.     Using the copy constructor. The User Interface Class Library provides this 
  5741.      constructor so the compiler can copy the exception when it is thrown. 
  5742.  
  5743.      exception      The exception object you want to copy. 
  5744.  
  5745.  
  5746. ΓòÉΓòÉΓòÉ 1.14.9. IException::isRecoverable ΓòÉΓòÉΓòÉ
  5747.  
  5748. If the thrower (that is, whatever creates the exception) determines the 
  5749. exception is recoverable, 1 is returned. If the thrower determines it is 
  5750. unrecoverable, 0 is returned. 
  5751.  
  5752. public:
  5753. virtual int isRecoverable() const;
  5754.  
  5755.  
  5756. ΓòÉΓòÉΓòÉ 1.14.10. IException::locationAtIndex ΓòÉΓòÉΓòÉ
  5757.  
  5758. Returns the IExceptionLocation object at the specified index. 
  5759.  
  5760. locationIndex If the index is not valid, a 0 pointer is returned. 
  5761.  
  5762. public:
  5763. const IExceptionLocation*
  5764.   locationAtIndex( unsigned long locationIndex) const;
  5765.  
  5766.  
  5767. ΓòÉΓòÉΓòÉ 1.14.11. IException::locationCount ΓòÉΓòÉΓòÉ
  5768.  
  5769. Returns the number of locations stored in the exception location array. 
  5770.  
  5771. public:
  5772. unsigned long locationCount() const;
  5773.  
  5774.  
  5775. ΓòÉΓòÉΓòÉ 1.14.12. IException::logExceptionData ΓòÉΓòÉΓòÉ
  5776.  
  5777. Logs the exception data stored in the IException object using the function 
  5778. specified by IException::setTraceFunction. If you have not set a tracing 
  5779. function, the exception information is written to standard error output. 
  5780.  
  5781. public:
  5782. virtual IException& logExceptionData();
  5783.  
  5784.  
  5785. ΓòÉΓòÉΓòÉ 1.14.13. IException::name ΓòÉΓòÉΓòÉ
  5786.  
  5787. Returns the name of the object's class. 
  5788.  
  5789. public:
  5790. virtual const char* name() const;
  5791.  
  5792. Used in sample:   List Box Sample: alistbox.cpp 
  5793.  
  5794.  
  5795. ΓòÉΓòÉΓòÉ 1.14.14. IException::operatingSystem ΓòÉΓòÉΓòÉ
  5796.  
  5797. This is the error group for operating system errors. 
  5798.  
  5799. public:
  5800. static ErrorCodeGroup const operatingSystem;
  5801.  
  5802.  
  5803. ΓòÉΓòÉΓòÉ 1.14.15. IException::other ΓòÉΓòÉΓòÉ
  5804.  
  5805. This is the error group for errors which don't fall in any of the other groups. 
  5806.  
  5807. public:
  5808. static ErrorCodeGroup const other;
  5809.  
  5810.  
  5811. ΓòÉΓòÉΓòÉ 1.14.16. IException::presentationSystem ΓòÉΓòÉΓòÉ
  5812.  
  5813. This is the error group for presentation system errors. 
  5814.  
  5815. public:
  5816. static ErrorCodeGroup const presentationSystem;
  5817.  
  5818.  
  5819. ΓòÉΓòÉΓòÉ 1.14.17. IException::setErrorCodeGroup ΓòÉΓòÉΓòÉ
  5820.  
  5821. Sets the id of the originating class library into the exception object. 
  5822.  
  5823. public:
  5824. IException& setErrorCodeGroup(ErrorCodeGroup errorGroup);
  5825.  
  5826.  
  5827. ΓòÉΓòÉΓòÉ 1.14.18. IException::setErrorId ΓòÉΓòÉΓòÉ
  5828.  
  5829. Sets the error ID to the specified value. 
  5830.  
  5831. errorId   The identifier you want to associate with this error. 
  5832.  
  5833. public:
  5834. IException& setErrorId(unsigned long errorId);
  5835.  
  5836.  
  5837. ΓòÉΓòÉΓòÉ 1.14.19. IException::setSeverity ΓòÉΓòÉΓòÉ
  5838.  
  5839. Sets the severity of the exception. 
  5840.  
  5841. severity  Use the enumeration Severity to specify the severity of the 
  5842.           exception. 
  5843.  
  5844. public:
  5845. IException& setSeverity(Severity severity);
  5846.  
  5847.  
  5848. ΓòÉΓòÉΓòÉ 1.14.20. IException::setText ΓòÉΓòÉΓòÉ
  5849.  
  5850. Adds the specified text to the top of the exception text stack. 
  5851.  
  5852. errorText The error text you want to add. 
  5853.  
  5854. public:
  5855. IException& setText(const char* errorText);
  5856.  
  5857.  
  5858. ΓòÉΓòÉΓòÉ 1.14.21. IException::setTraceFunction ΓòÉΓòÉΓòÉ
  5859.  
  5860. Registers an object of IException::TraceFn to be used to log exception data. 
  5861. The ITrace member functions and macros write the trace messages. 
  5862. IException::logExceptionData calls IException::TraceFn::write during exception 
  5863. processing to write the data. If you do not register an object, data is written 
  5864. to standard error output. 
  5865.  
  5866. traceFunction Your own trace function implementation. 
  5867.  
  5868. public:
  5869. static void
  5870.   setTraceFunction( IException::TraceFn& traceFunction);
  5871.  
  5872.  
  5873. ΓòÉΓòÉΓòÉ 1.14.22. IException::terminate ΓòÉΓòÉΓòÉ
  5874.  
  5875. Ends the application. Normally, the User Interface Class Library only intends 
  5876. this function to be used internally by the library's exception handling macros 
  5877. when the compiler you are using does not support C++ exception handling. This 
  5878. only occurs if you define the INO_EXCEPTIONS_SUPPORT macro. The macros that use 
  5879. this function are: 
  5880.  
  5881. ITHROW                        Found in IException. 
  5882. IASSERTPARM                   Found in IErrorInfo. 
  5883. IASSERTSTATE                  Found in IErrorInfo. 
  5884. ITHROWLIBRARYERROR            Found in IErrorInfo. 
  5885. ITHROWLIBRARYERROR1           Found in IErrorInfo 
  5886. ITHROWGUIERROR                Found in IGUIErrorInfo. 
  5887. ITHROWGUIERROR2               Found in IGUIErrorInfo. 
  5888. ITHROWSYSTEMERROR             Found in ISystemErrorInfo. 
  5889.  
  5890. public:
  5891. virtual void terminate();
  5892.  
  5893.  
  5894. ΓòÉΓòÉΓòÉ 1.14.23. IException::text ΓòÉΓòÉΓòÉ
  5895.  
  5896. Returns a constant char* pointing to an exception text string from the 
  5897. exception text stack. 
  5898.  
  5899. indexFromTop The default index is 0, which is the top of the stack. If you 
  5900.           specify an index which is not valid, a 0 pointer is returned. 
  5901.  
  5902. public:
  5903. const char* text(unsigned long indexFromTop = 0) const;
  5904.  
  5905. Used in samples: 
  5906.  
  5907.      List Box Sample: alistbox.cpp 
  5908.      Lancelot - A Valiant Example: linfonb.cpp 
  5909.  
  5910.  
  5911. ΓòÉΓòÉΓòÉ 1.14.24. IException::textCount ΓòÉΓòÉΓòÉ
  5912.  
  5913. Returns the number of text strings in the exception text stack. 
  5914.  
  5915. public:
  5916. unsigned long textCount() const;
  5917.  
  5918. Used in sample:   List Box Sample: alistbox.cpp 
  5919.  
  5920.  
  5921. ΓòÉΓòÉΓòÉ 1.14.25. IException::~IException ΓòÉΓòÉΓòÉ
  5922.  
  5923. public:
  5924. virtual  ~IException();
  5925.  
  5926.  
  5927. ΓòÉΓòÉΓòÉ <hidden> Nested Types - IException ΓòÉΓòÉΓòÉ
  5928.  
  5929. Classes 
  5930.  
  5931.       IException::TraceFn 
  5932.  
  5933. Enumerations 
  5934.  
  5935.       Severity 
  5936.  
  5937. Type Definitions 
  5938.  
  5939.       ErrorCodeGroup 
  5940.  
  5941.  
  5942. ΓòÉΓòÉΓòÉ <hidden> Enums - Severity ΓòÉΓòÉΓòÉ
  5943.  
  5944. enum Severity { unrecoverable, recoverable };
  5945.  
  5946. Use these enumerators to specify the severity of the exception: 
  5947.  
  5948. unrecoverable 
  5949.      Classifies the exception as unrecoverable. 
  5950.  
  5951. recoverable 
  5952.      Classifies the exception as recoverable. 
  5953.  
  5954.  
  5955. ΓòÉΓòÉΓòÉ <hidden> Type Definition - IException::ErrorCodeGroup ΓòÉΓòÉΓòÉ
  5956.  
  5957. typedef const char * ErrorCodeGroup;
  5958.  
  5959. This identifies the source of the exception's error code. 
  5960.  
  5961.  
  5962. ΓòÉΓòÉΓòÉ 1.15. IException::TraceFn ΓòÉΓòÉΓòÉ
  5963.  
  5964. Description 
  5965.  
  5966. Derivation 
  5967.  
  5968. Public Functions 
  5969.  
  5970. Protected Functions 
  5971.  
  5972. To close all the panels in a chapter, double click on this panel's system menu. 
  5973.  
  5974.  
  5975. ΓòÉΓòÉΓòÉ <hidden> Derivation - IException::TraceFn ΓòÉΓòÉΓòÉ
  5976.  
  5977. Inherits from none. 
  5978.  
  5979. Inherited by none. 
  5980.  
  5981.  
  5982. ΓòÉΓòÉΓòÉ <hidden> Class Description - IException::TraceFn ΓòÉΓòÉΓòÉ
  5983.  
  5984. iexcbase.hpp 
  5985.  
  5986. Objects of the class IException and its derived classes use IException::TraceFn 
  5987. to log exception object data. 
  5988.  
  5989. A default TraceFn derived object is registered by the Collection Class Library. 
  5990. If the User Interface Library is used, it registers a TraceFn derived object 
  5991. which overrides the write function.  It uses ITrace to write out the buffers of 
  5992. data, so the buffers will be written to wherever the ICLUI TRACETO environment 
  5993. variable directs the output from ITrace. 
  5994.  
  5995. If you want to provide your own tracing function, derive your own class from 
  5996. IException::TraceFn and register it with IException using 
  5997. IException::setTraceFunction. You can completely take over exception logging by 
  5998. overriding the logData function.  You are passed the IException object so you 
  5999. can completely customize the logging of exception data.  If you only wish to 
  6000. change how the buffers of exception data are logged you should override the 
  6001. write function. 
  6002.  
  6003. The exceptionLogged function is provided so that you can determine when the 
  6004. last buffer of exception data has been passed to the write function by the 
  6005. default logData function.  This allows you to gather all of the exception data 
  6006. by only overriding the write and exceptionLogged functions for situations where 
  6007. you must write all of the exception data out with one call. 
  6008.  
  6009.  
  6010. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IException::TraceFn ΓòÉΓòÉΓòÉ
  6011.  
  6012. Tracing
  6013. logData
  6014. write
  6015.  
  6016.  
  6017. ΓòÉΓòÉΓòÉ <hidden> IException::TraceFn - Constructors ΓòÉΓòÉΓòÉ
  6018.  
  6019. The only way to create objects of this class is from a derived class.  To 
  6020. enforce this, the only constructors we provide for this class are protected. 
  6021.  
  6022. Derived classes use these members to create objects of this class. 
  6023.  
  6024.  
  6025. ΓòÉΓòÉΓòÉ <hidden> IException::TraceFn - Tracing ΓòÉΓòÉΓòÉ
  6026.  
  6027. The IException's logExceptionData member uses these members to log instance 
  6028. data of exception objects. 
  6029.  
  6030.  
  6031. ΓòÉΓòÉΓòÉ <hidden> Protected Functions - IException::TraceFn ΓòÉΓòÉΓòÉ
  6032.  
  6033. Constructors
  6034. TraceFn
  6035.  
  6036. Tracing
  6037. exceptionLogged
  6038.  
  6039.  
  6040. ΓòÉΓòÉΓòÉ 1.15.1. IException::TraceFn::exceptionLogged ΓòÉΓòÉΓòÉ
  6041.  
  6042. This function is called by the default logData function after the last buffer 
  6043. of exception data has been passed to the write function. 
  6044.  
  6045. protected:
  6046. virtual void exceptionLogged();
  6047.  
  6048.  
  6049. ΓòÉΓòÉΓòÉ 1.15.2. IException::TraceFn::logData ΓòÉΓòÉΓòÉ
  6050.  
  6051. Logs error information contained in an Exception object. 
  6052.  
  6053. public:
  6054. virtual void logData(IException& exception);
  6055.  
  6056.  
  6057. ΓòÉΓòÉΓòÉ 1.15.3. IException::TraceFn::TraceFn ΓòÉΓòÉΓòÉ
  6058.  
  6059. This default constructor can be used by derived classes to create objects of 
  6060. this class. 
  6061.  
  6062. protected:
  6063. TraceFn();
  6064.  
  6065.  
  6066. ΓòÉΓòÉΓòÉ 1.15.4. IException::TraceFn::write ΓòÉΓòÉΓòÉ
  6067.  
  6068. Writes a buffer of exception data. 
  6069.  
  6070. public:
  6071. virtual void write(const char* buffer);
  6072.  
  6073.  
  6074. ΓòÉΓòÉΓòÉ 1.16. IExceptionLocation ΓòÉΓòÉΓòÉ
  6075.  
  6076. Description 
  6077.  
  6078. Derivation 
  6079.  
  6080. Constructors 
  6081.  
  6082. Public Functions 
  6083.  
  6084. To close all the panels in a chapter, double click on this panel's system menu. 
  6085.  
  6086.  
  6087. ΓòÉΓòÉΓòÉ <hidden> Derivation - IExceptionLocation ΓòÉΓòÉΓòÉ
  6088.  
  6089. Inherits from none. 
  6090.  
  6091. Inherited by none. 
  6092.  
  6093.  
  6094. ΓòÉΓòÉΓòÉ <hidden> Class Description - IExceptionLocation ΓòÉΓòÉΓòÉ
  6095.  
  6096. iexcbase.hpp 
  6097.  
  6098. Objects of the IExceptionLocation class save the location information when an 
  6099. exception is thrown or re-thrown. None of the functions in this class throws 
  6100. exceptions because an exception probably has been thrown already or is about to 
  6101. be thrown. 
  6102.  
  6103. Typically, either the ITHROW or IRETHROW macro creates an IExceptionLocation 
  6104. object when an exception is to be thrown or re-thrown, respectively. However, 
  6105. you can create your own IExceptionLocation object by constructing it yourself 
  6106. or by using the IEXCEPTION_LOCATION macro. 
  6107.  
  6108.  
  6109. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IExceptionLocation ΓòÉΓòÉΓòÉ
  6110.  
  6111. Attributes
  6112. fileName
  6113. functionName
  6114. lineNumber
  6115.  
  6116. Constructors
  6117. IExceptionLocation
  6118.  
  6119.  
  6120. ΓòÉΓòÉΓòÉ <hidden> IExceptionLocation - Attributes ΓòÉΓòÉΓòÉ
  6121.  
  6122. Use these members to return the attributes of the exception location object. 
  6123.  
  6124.  
  6125. ΓòÉΓòÉΓòÉ <hidden> IExceptionLocation - Constructors ΓòÉΓòÉΓòÉ
  6126.  
  6127. You can construct objects of this class. 
  6128.  
  6129.  
  6130. ΓòÉΓòÉΓòÉ 1.16.1. IExceptionLocation::fileName ΓòÉΓòÉΓòÉ
  6131.  
  6132. Returns the path-qualified source file name where an exception has been thrown 
  6133. or re-thrown. 
  6134.  
  6135. public:
  6136. const char* fileName() const;
  6137.  
  6138.  
  6139. ΓòÉΓòÉΓòÉ 1.16.2. IExceptionLocation::functionName ΓòÉΓòÉΓòÉ
  6140.  
  6141. Returns the name of the function that has thrown or re-thrown an exception. 
  6142.  
  6143. public:
  6144. const char* functionName() const;
  6145.  
  6146.  
  6147. ΓòÉΓòÉΓòÉ 1.16.3. IExceptionLocation::IExceptionLocation ΓòÉΓòÉΓòÉ
  6148.  
  6149. You can create objects of this class by doing the following: 
  6150.  
  6151.     Using the constructor. 
  6152.  
  6153.      fileName       The source file containing the function that created this 
  6154.                     object. 
  6155.  
  6156.      functionName   The name of the function creating this object. 
  6157.  
  6158.      lineNumber     The line number of the statement from the source file from 
  6159.                     which the object was created. 
  6160.  
  6161.     Using the macro IEXCEPTION_LOCATION. This macro captures the current 
  6162.      location information using constants provided by the compiler for all of 
  6163.      the parameters. Default values are provided for all the parameters to 
  6164.      support environments in which all constants or alternative means for 
  6165.      getting location information are not provided. 
  6166.  
  6167. public:
  6168. IExceptionLocation( const char* fileName = 0,
  6169.                     const char* functionName = 0,
  6170.                     unsigned long lineNumber = 0);
  6171.  
  6172.  
  6173. ΓòÉΓòÉΓòÉ 1.16.4. IExceptionLocation::lineNumber ΓòÉΓòÉΓòÉ
  6174.  
  6175. Returns the line number of the statement in the source file from which an 
  6176. exception has been thrown or re-thrown. 
  6177.  
  6178. public:
  6179. unsigned long lineNumber() const;
  6180.  
  6181.  
  6182. ΓòÉΓòÉΓòÉ 1.17. IGUIErrorInfo ΓòÉΓòÉΓòÉ
  6183.  
  6184. Description 
  6185.  
  6186. Derivation 
  6187.  
  6188. Constructors 
  6189.  
  6190. Public Functions 
  6191.  
  6192. Protected Data 
  6193.  
  6194. To close all the panels in a chapter, double click on this panel's system menu. 
  6195.  
  6196.  
  6197. ΓòÉΓòÉΓòÉ <hidden> Derivation - IGUIErrorInfo ΓòÉΓòÉΓòÉ
  6198.  
  6199. IBase
  6200.   Γöé
  6201. IVBase
  6202.   Γöé
  6203. IErrorInfo
  6204.   Γöé
  6205. IGUIErrorInfo
  6206.  
  6207. Inherited by none. 
  6208.  
  6209.  
  6210. ΓòÉΓòÉΓòÉ <hidden> Class Description - IGUIErrorInfo ΓòÉΓòÉΓòÉ
  6211.  
  6212. iexcept.hpp 
  6213.  
  6214. Objects of the IGUIErrorInfo class represent error information that you can 
  6215. include in an exception object. When an OS/2 Win call results in an error 
  6216. condition, objects of the IGUIErrorInfo class are created. You can use the 
  6217. error text to construct a derived class object of IException. 
  6218.  
  6219. The User Interface Class Library provides the following macros for throwing 
  6220. exceptions constructed with IGUIErrorInfo information: 
  6221.  
  6222. ITHROWGUIERROR 
  6223.      This macro accepts as its only parameter the name of the GUI function that 
  6224.      returned an error condition. This macro then generates code that calls 
  6225.      IGUIError::throwGUIError, which does the following: 
  6226.  
  6227.        1. Creates an IGUIErrorInfo object 
  6228.        2. Uses the object to create an object of IAccessError 
  6229.        3. Adds the presentationSystem error group to the object 
  6230.        4. Adds location information 
  6231.        5. Logs the exception data 
  6232.        6. Throws the exception 
  6233.  
  6234.      Note:  This macro uses the recoverable enumerator provided by 
  6235.             IException::Severity. 
  6236.  
  6237. ITHROWGUIERROR2 
  6238.      This macro can throw any of the User Interface Class Library-defined 
  6239.      exceptions. This macro accepts the following parameters: 
  6240.  
  6241.      location       The name of the GUI function returning an error code, the 
  6242.                     name of the file the function is in, and the function's 
  6243.                     line number. 
  6244.  
  6245.      name           Use the enumeration IErrorInfo::ExceptionType to specify 
  6246.                     the type of the exception. The default is accessError. 
  6247.  
  6248.      severity       Use the enumeration IException::Severity to specify the 
  6249.                     severity of the error. The default is recoverable. 
  6250.  
  6251.      This macro generates code that calls throwGUIError, which does the 
  6252.      following: 
  6253.  
  6254.        1. Creates an IGUIErrorInfo object 
  6255.        2. Uses the object to create an IException object 
  6256.        3. Adds the presentationSystem error group to the object 
  6257.        4. Adds location information 
  6258.        5. Logs the exception data 
  6259.        6. Throws the exception 
  6260.  
  6261. Portability Considerations You can use this class in OS/2 to create error 
  6262. information for GUI errors resulting from Win calls. Objects of this class 
  6263. obtain the error information by calling WinGetLastError, which is the 
  6264. Presentation Manager API that maintains the error information per thread. Motif 
  6265. does not have a similar mechanism where you can query the X server for error 
  6266. information. If you use objects of this class in AIX, they obtain a default 
  6267. message, which is "GUI exception condition detected." 
  6268.  
  6269. Presentation Manager Information 
  6270.  
  6271. You can use objects of the IGUIErrorInfo class to obtain information about the 
  6272. last error that occurred on a call to Presentation Manager. 
  6273.  
  6274. Motif Information 
  6275.  
  6276. You can create objects of this class on AIX, but the objects contain no useful 
  6277. information and only have the default message: "GUI exception condition 
  6278. detected." 
  6279.  
  6280.  
  6281. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IGUIErrorInfo ΓòÉΓòÉΓòÉ
  6282.  
  6283. Constructors
  6284. IGUIErrorInfo
  6285. ~IGUIErrorInfo
  6286.  
  6287. Error Information
  6288. errorId
  6289. isAvailable
  6290. operator const char *
  6291. text
  6292.  
  6293. Throw Support
  6294. throwGUIError
  6295.  
  6296. Inherited Members
  6297. IErrorInfo
  6298. errorId
  6299. isAvailable
  6300. operator const char *
  6301. text
  6302. throwError
  6303.  
  6304. IVBase
  6305. asDebugInfo
  6306. asString
  6307.  
  6308. IBase
  6309. asDebugInfo
  6310. asString
  6311. messageFile
  6312. messageText
  6313. setMessageFile
  6314. version
  6315.  
  6316.  
  6317. ΓòÉΓòÉΓòÉ <hidden> IGUIErrorInfo - Constructors ΓòÉΓòÉΓòÉ
  6318.  
  6319. You can construct and destruct objects of this class. You cannot copy or assign 
  6320. objects of this class. 
  6321.  
  6322.  
  6323. ΓòÉΓòÉΓòÉ <hidden> IGUIErrorInfo - Error Information ΓòÉΓòÉΓòÉ
  6324.  
  6325. Use these members to return error information provided by objects of this 
  6326. class. 
  6327.  
  6328.  
  6329. ΓòÉΓòÉΓòÉ <hidden> IGUIErrorInfo - Hidden Functions ΓòÉΓòÉΓòÉ
  6330.  
  6331. These members are hidden to prevent you from copying objects of this class. 
  6332.  
  6333.  
  6334. ΓòÉΓòÉΓòÉ <hidden> IGUIErrorInfo - Throw Support ΓòÉΓòÉΓòÉ
  6335.  
  6336. Use these members to support the throwing of exceptions using information from 
  6337. an IGUIErrorInfo object.  The throwGUIError function is used by the 
  6338. ITHROWGUIERROR macro. 
  6339.  
  6340.  
  6341. ΓòÉΓòÉΓòÉ <hidden> Protected Data - IGUIErrorInfo ΓòÉΓòÉΓòÉ
  6342.  
  6343. Inherited Members
  6344. IBase
  6345. recoverable
  6346. unrecoverable
  6347.  
  6348.  
  6349. ΓòÉΓòÉΓòÉ 1.17.1. IGUIErrorInfo::errorId ΓòÉΓòÉΓòÉ
  6350.  
  6351. Returns the error ID. 
  6352.  
  6353. public:
  6354. virtual unsigned long errorId() const;
  6355.  
  6356. Presentation Manager: In the case of a Presentation Manager error, the 
  6357. IGUIErrorInfo constructor obtains the errorId using WinGetLastError. 
  6358.  
  6359.  
  6360. ΓòÉΓòÉΓòÉ 1.17.2. IGUIErrorInfo::IGUIErrorInfo ΓòÉΓòÉΓòÉ
  6361.  
  6362. You can construct and destruct objects of this class. You cannot copy or assign 
  6363. objects of this class. 
  6364.  
  6365. public:
  6366. IGUIErrorInfo(const char* GUIFunctionName = 0);
  6367.  
  6368. You can only construct objects of this class using the default constructor. 
  6369.  
  6370. Note:  If the constructor cannot load the error text, the User Interface Class 
  6371.        Library provides the following default text: "No error text is 
  6372.        available." 
  6373.  
  6374. GUIFunctionName The name of the failing GUI function. If you specify 
  6375.           GUIFunctionName, the constructor prefixes it to the error text. 
  6376.           Optional. 
  6377.  
  6378.  
  6379. ΓòÉΓòÉΓòÉ 1.17.3. IGUIErrorInfo::isAvailable ΓòÉΓòÉΓòÉ
  6380.  
  6381. If the error information is available, true is returned. 
  6382.  
  6383. public:
  6384. virtual Boolean isAvailable() const;
  6385.  
  6386.  
  6387. ΓòÉΓòÉΓòÉ 1.17.4. IGUIErrorInfo::operator const char * ΓòÉΓòÉΓòÉ
  6388.  
  6389. Returns the error text. 
  6390.  
  6391. public:
  6392. virtual  operator const char *() const;
  6393.  
  6394.  
  6395. ΓòÉΓòÉΓòÉ 1.17.5. IGUIErrorInfo::text ΓòÉΓòÉΓòÉ
  6396.  
  6397. Returns the error text. 
  6398.  
  6399. public:
  6400. virtual const char* text() const;
  6401.  
  6402.  
  6403. ΓòÉΓòÉΓòÉ 1.17.6. IGUIErrorInfo::throwGUIError ΓòÉΓòÉΓòÉ
  6404.  
  6405. Creates an IGUIErrorInfo object and uses the text from it to do the following: 
  6406.  
  6407.   1. Create an exception object 
  6408.   2. Add the location information to it 
  6409.   3. Log the exception data 
  6410.   4. Throw the exception. 
  6411.  
  6412. functionName The name of the function where the exception occurred. 
  6413.  
  6414. location  An IExceptionLocation object containing the following: 
  6415.  
  6416.               Function name 
  6417.               File name 
  6418.               Line number where the function is called 
  6419.  
  6420. name      Use the enumeration IErrorInfo::ExceptionType to specify the type of 
  6421.           the exception. The default is accessError. 
  6422.  
  6423. severity  Use the enumeration IException::Severity to specify the severity of 
  6424.           the error. The default is recoverable. 
  6425.  
  6426. public:
  6427. static void
  6428.   throwGUIError( const char* functionName,
  6429.                  const IExceptionLocation& location,
  6430.                  IErrorInfo::ExceptionType name = accessError,
  6431.                  IException::Severity severity = recoverable);
  6432.  
  6433.  
  6434. ΓòÉΓòÉΓòÉ 1.17.7. IGUIErrorInfo::~IGUIErrorInfo ΓòÉΓòÉΓòÉ
  6435.  
  6436. public:
  6437. virtual  ~IGUIErrorInfo();
  6438.  
  6439.  
  6440. ΓòÉΓòÉΓòÉ 1.18. IInvalidParameter ΓòÉΓòÉΓòÉ
  6441.  
  6442. Description 
  6443.  
  6444. Derivation 
  6445.  
  6446. Constructors 
  6447.  
  6448. Public Functions 
  6449.  
  6450. Public Data 
  6451.  
  6452. Public Data includes Styles and Notification IDs if they exist. 
  6453.  
  6454. To close all the panels in a chapter, double click on this panel's system menu. 
  6455.  
  6456.  
  6457. ΓòÉΓòÉΓòÉ <hidden> Derivation - IInvalidParameter ΓòÉΓòÉΓòÉ
  6458.  
  6459. IException
  6460.   Γöé
  6461. IInvalidParameter
  6462.  
  6463. Inherited by none. 
  6464.  
  6465.  
  6466. ΓòÉΓòÉΓòÉ <hidden> Class Description - IInvalidParameter ΓòÉΓòÉΓòÉ
  6467.  
  6468. iexcbase.hpp 
  6469.  
  6470. Objects of the IInvalidParameter class represent an exception. When a member 
  6471. function detects an invalid input parameter, the member function creates and 
  6472. throws an object of the IInvalidParameter class. This exception is identical to 
  6473. the exception IAssertionFailure, with one difference: IInvalidParameter is 
  6474. thrown whether or not you define IC_DEVELOP for the compile. 
  6475.  
  6476.  
  6477. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IInvalidParameter ΓòÉΓòÉΓòÉ
  6478.  
  6479. Constructors
  6480. IInvalidParameter
  6481.  
  6482. Exception Type
  6483. name
  6484.  
  6485. Inherited Members
  6486. IException
  6487. addLocation
  6488. appendText
  6489. assertParameter
  6490. errorCodeGroup
  6491. errorId
  6492. isRecoverable
  6493. locationAtIndex
  6494. locationCount
  6495. logExceptionData
  6496. name
  6497. setErrorCodeGroup
  6498. setErrorId
  6499. setSeverity
  6500. setText
  6501. setTraceFunction
  6502. terminate
  6503. text
  6504. textCount
  6505.  
  6506.  
  6507. ΓòÉΓòÉΓòÉ <hidden> IInvalidParameter - Constructors ΓòÉΓòÉΓòÉ
  6508.  
  6509. You can construct objects of this class. 
  6510.  
  6511.  
  6512. ΓòÉΓòÉΓòÉ <hidden> IInvalidParameter - Exception Type ΓòÉΓòÉΓòÉ
  6513.  
  6514. Use these members to determine the name (type) of the exception.  This is used 
  6515. for logging out an exception object's error information. 
  6516.  
  6517.  
  6518. ΓòÉΓòÉΓòÉ <hidden> Public Data - IInvalidParameter ΓòÉΓòÉΓòÉ
  6519.  
  6520. Inherited Members
  6521. IException
  6522. baseLibrary
  6523. CLibrary
  6524. operatingSystem
  6525. other
  6526. presentationSystem
  6527.  
  6528.  
  6529. ΓòÉΓòÉΓòÉ 1.18.1. IInvalidParameter::IInvalidParameter ΓòÉΓòÉΓòÉ
  6530.  
  6531. You can create objects of this class by doing the following: 
  6532.  
  6533.     Using the constructor. 
  6534.  
  6535.      errorText      The text describing this particular error. 
  6536.  
  6537.      errorId        The identifier you want to associate with this particular 
  6538.                     error. 
  6539.  
  6540.      severity       Use the enumeration IException::Severity to specify the 
  6541.                     severity of the error. The default is unrecoverable. 
  6542.  
  6543.     Using the macros discussed in IException. The User Interface Class Library 
  6544.      provides these macros to make creating exceptions easier for you. 
  6545.  
  6546. public:
  6547. IInvalidParameter( const char* errorText,
  6548.                    unsigned long errorId,
  6549.                    Severity severity = IException::unrecoverable);
  6550.  
  6551.  
  6552. ΓòÉΓòÉΓòÉ 1.18.2. IInvalidParameter::name ΓòÉΓòÉΓòÉ
  6553.  
  6554. Returns the name of the object's class. 
  6555.  
  6556. public:
  6557. virtual const char* name() const;
  6558.  
  6559.  
  6560. ΓòÉΓòÉΓòÉ 1.19. IInvalidRequest ΓòÉΓòÉΓòÉ
  6561.  
  6562. Description 
  6563.  
  6564. Derivation 
  6565.  
  6566. Constructors 
  6567.  
  6568. Public Functions 
  6569.  
  6570. Public Data 
  6571.  
  6572. Public Data includes Styles and Notification IDs if they exist. 
  6573.  
  6574. To close all the panels in a chapter, double click on this panel's system menu. 
  6575.  
  6576.  
  6577. ΓòÉΓòÉΓòÉ <hidden> Derivation - IInvalidRequest ΓòÉΓòÉΓòÉ
  6578.  
  6579. IException
  6580.   Γöé
  6581. IInvalidRequest
  6582.  
  6583. Inherited by none. 
  6584.  
  6585.  
  6586. ΓòÉΓòÉΓòÉ <hidden> Class Description - IInvalidRequest ΓòÉΓòÉΓòÉ
  6587.  
  6588. iexcbase.hpp 
  6589.  
  6590. Objects of the IInvalidRequest class represent an exception. Whenever an object 
  6591. cannot satisfy a request, the member function creates and throws an object of 
  6592. the IInvalidRequest class. An example of such a request occurs if you try to 
  6593. paste text from the system clipboard, but the clipboard has no data. 
  6594.  
  6595.  
  6596. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IInvalidRequest ΓòÉΓòÉΓòÉ
  6597.  
  6598. Constructors
  6599. IInvalidRequest
  6600.  
  6601. Exception Type
  6602. name
  6603.  
  6604. Inherited Members
  6605. IException
  6606. addLocation
  6607. appendText
  6608. assertParameter
  6609. errorCodeGroup
  6610. errorId
  6611. isRecoverable
  6612. locationAtIndex
  6613. locationCount
  6614. logExceptionData
  6615. name
  6616. setErrorCodeGroup
  6617. setErrorId
  6618. setSeverity
  6619. setText
  6620. setTraceFunction
  6621. terminate
  6622. text
  6623. textCount
  6624.  
  6625.  
  6626. ΓòÉΓòÉΓòÉ <hidden> IInvalidRequest - Constructors ΓòÉΓòÉΓòÉ
  6627.  
  6628. You can construct objects of this class. 
  6629.  
  6630.  
  6631. ΓòÉΓòÉΓòÉ <hidden> IInvalidRequest - Exception Type ΓòÉΓòÉΓòÉ
  6632.  
  6633. Use these members to determine the name (type) of the exception.  This is used 
  6634. for logging out an exception object's error information. 
  6635.  
  6636.  
  6637. ΓòÉΓòÉΓòÉ <hidden> Public Data - IInvalidRequest ΓòÉΓòÉΓòÉ
  6638.  
  6639. Inherited Members
  6640. IException
  6641. baseLibrary
  6642. CLibrary
  6643. operatingSystem
  6644. other
  6645. presentationSystem
  6646.  
  6647.  
  6648. ΓòÉΓòÉΓòÉ 1.19.1. IInvalidRequest::IInvalidRequest ΓòÉΓòÉΓòÉ
  6649.  
  6650. You can create objects of this class by doing the following: 
  6651.  
  6652.     Using the constructor. 
  6653.  
  6654.      errorText      The text describing this particular error. 
  6655.  
  6656.      errorId        The identifier you want to associate with this particular 
  6657.                     error. 
  6658.  
  6659.      severity       Use the enumeration IException::Severity to specify the 
  6660.                     severity of the error. The default is unrecoverable. 
  6661.  
  6662.     Using the macros discussed in IException. The User Interface Class Library 
  6663.      provides these macros to make creating exceptions easier for you. 
  6664.  
  6665. public:
  6666. IInvalidRequest( const char* errorText,
  6667.                  unsigned long errorId,
  6668.                  Severity severity = IException::unrecoverable);
  6669.  
  6670.  
  6671. ΓòÉΓòÉΓòÉ 1.19.2. IInvalidRequest::name ΓòÉΓòÉΓòÉ
  6672.  
  6673. Returns the name of the object's class. 
  6674.  
  6675. public:
  6676. virtual const char* name() const;
  6677.  
  6678.  
  6679. ΓòÉΓòÉΓòÉ 1.20. IMessageText ΓòÉΓòÉΓòÉ
  6680.  
  6681. Description 
  6682.  
  6683. Derivation 
  6684.  
  6685. Constructors 
  6686.  
  6687. Public Functions 
  6688.  
  6689. To close all the panels in a chapter, double click on this panel's system menu. 
  6690.  
  6691.  
  6692. ΓòÉΓòÉΓòÉ <hidden> Derivation - IMessageText ΓòÉΓòÉΓòÉ
  6693.  
  6694. Inherits from none. 
  6695.  
  6696. Inherited by none. 
  6697.  
  6698.  
  6699. ΓòÉΓòÉΓòÉ <hidden> Class Description - IMessageText ΓòÉΓòÉΓòÉ
  6700.  
  6701. imsgtext.hpp 
  6702.  
  6703. Objects of the IMessageText class load message text from a message file. When 
  6704. the User Interface Class Library detects an error condition and prepares to 
  6705. throw an exception, the library creates an object of this class if it is using 
  6706. customized message text. You can use the message text provided by this class to 
  6707. construct an object of a class derived from IException. 
  6708.  
  6709. Presentation Manager Information The IMessageText object searches for the 
  6710. message file as follows: 
  6711.  
  6712.     The system root directory 
  6713.     The current working directory 
  6714.     The DPATH environment setting 
  6715.     The APPEND environment setting 
  6716. Typically, message files have the extension .MSG. 
  6717.  
  6718. Motif Information 
  6719.  
  6720. The IMessageText object searches for the message file using the NLSPATH 
  6721. environment setting. 
  6722.  
  6723.  
  6724. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IMessageText ΓòÉΓòÉΓòÉ
  6725.  
  6726. Constructors
  6727. IMessageText
  6728. operator =
  6729. ~IMessageText
  6730.  
  6731. Text Operations
  6732. operator const char *
  6733. setDefaultText
  6734. text
  6735.  
  6736.  
  6737. ΓòÉΓòÉΓòÉ <hidden> IMessageText - Constructors ΓòÉΓòÉΓòÉ
  6738.  
  6739. You can construct, destruct, copy, and assign objects of this class. 
  6740.  
  6741.  
  6742. ΓòÉΓòÉΓòÉ <hidden> IMessageText - Text Operations ΓòÉΓòÉΓòÉ
  6743.  
  6744. Use these members to obtain the text from the object and to set the default 
  6745. text for the object. 
  6746.  
  6747.  
  6748. ΓòÉΓòÉΓòÉ 1.20.1. IMessageText::IMessageText ΓòÉΓòÉΓòÉ
  6749.  
  6750. You can construct, destruct, copy, and assign objects of this class. 
  6751.  
  6752. Overload 1 
  6753.  
  6754. public:
  6755. IMessageText( unsigned long messageId,
  6756.               const char* messageFileName,
  6757.               const char* textInsert1 = 0,
  6758.               const char* textInsert2 = 0,
  6759.               const char* textInsert3 = 0,
  6760.               const char* textInsert4 = 0,
  6761.               const char* textInsert5 = 0,
  6762.               const char* textInsert6 = 0,
  6763.               const char* textInsert7 = 0,
  6764.               const char* textInsert8 = 0,
  6765.               const char* textInsert9 = 0);
  6766.  
  6767. You can construct objects of this class using this constructor, allowing you to 
  6768. retrieve a message from a file and, optionally, insert additional text strings 
  6769. within the retrieved message. 
  6770.  
  6771. You can specify that the object insert the text strings through substitution 
  6772. symbols within the message. For example: 
  6773.  
  6774. The application cannot find the file, %1, at the specified path, %2.
  6775. Using this constructor, you can replace the substitution symbols by supplying 
  6776. the file name and path name via textInsert1 and textInsert2 respectively. 
  6777. Notice the substitution symbol number (%1) matches the parameter number 
  6778. (textInsert1). 
  6779.  
  6780. Warning: You must use the numbers in sequence. For example, you cannot use %1, 
  6781. %2, and %5 in a message, skipping %3 and %4. Instead, you must use %1, %2, and 
  6782. %3. You must specify the substitution symbols sequentially and the text 
  6783. insertion parameters' numbers must match their respective substitution symbol. 
  6784.  
  6785. messageId      The message ID. 
  6786.  
  6787. messageFileName The name of the message file to retrieve the message from. The 
  6788.                message file name must include the file extension. 
  6789.  
  6790.                If you specify 0, the message text is in a message segment bound 
  6791.                to the .EXE. The IMessageText object loads the message from the 
  6792.                application. Otherwise, the library searches for the message 
  6793.                text in the specified message file. 
  6794.  
  6795.                Note:  If the User Interface Class Library cannot load the text 
  6796.                       from the message file, this constructor uses the 
  6797.                       following default text: "Unable to load text from message 
  6798.                       file." 
  6799.  
  6800. textInsert1 through textInsert9 (Optional) A text string you insert into the 
  6801.                message. 
  6802.  
  6803. Overload 2 
  6804.  
  6805. public:
  6806. IMessageText(const IMessageText& text);
  6807.  
  6808. You can construct objects of this class using the User Interface Class Library 
  6809. provided copy constructor. 
  6810.  
  6811. text      The error message text. 
  6812.  
  6813.  
  6814. ΓòÉΓòÉΓòÉ 1.20.2. IMessageText::operator = ΓòÉΓòÉΓòÉ
  6815.  
  6816. Sets the object data to the values of the specified IMessageText object. 
  6817.  
  6818. text      The message text object you want to copy. 
  6819.  
  6820. public:
  6821. IMessageText& operator =(const IMessageText& text);
  6822.  
  6823.  
  6824. ΓòÉΓòÉΓòÉ 1.20.3. IMessageText::operator const char * ΓòÉΓòÉΓòÉ
  6825.  
  6826. Returns the message text. 
  6827.  
  6828. public:
  6829. operator const char *() const;
  6830.  
  6831.  
  6832. ΓòÉΓòÉΓòÉ 1.20.4. IMessageText::setDefaultText ΓòÉΓòÉΓòÉ
  6833.  
  6834. Sets the default message text to the specified text string. The text is set 
  6835. only if the constructor cannot load the text for the specified message ID. 
  6836.  
  6837. Note:  The default text is: "Unable to load text from message file." 
  6838.  
  6839. text      The new default text string. 
  6840.  
  6841. public:
  6842. IMessageText& setDefaultText(const char* text);
  6843.  
  6844.  
  6845. ΓòÉΓòÉΓòÉ 1.20.5. IMessageText::text ΓòÉΓòÉΓòÉ
  6846.  
  6847. Returns the message text. 
  6848.  
  6849. public:
  6850. const char* text() const;
  6851.  
  6852.  
  6853. ΓòÉΓòÉΓòÉ 1.20.6. IMessageText::~IMessageText ΓòÉΓòÉΓòÉ
  6854.  
  6855. public:
  6856. ~IMessageText();
  6857.  
  6858.  
  6859. ΓòÉΓòÉΓòÉ 1.21. INotificationEvent ΓòÉΓòÉΓòÉ
  6860.  
  6861. Description 
  6862.  
  6863. Derivation 
  6864.  
  6865. Constructors 
  6866.  
  6867. Public Functions 
  6868.  
  6869. Protected Data 
  6870.  
  6871. To close all the panels in a chapter, double click on this panel's system menu. 
  6872.  
  6873.  
  6874. ΓòÉΓòÉΓòÉ <hidden> Derivation - INotificationEvent ΓòÉΓòÉΓòÉ
  6875.  
  6876. IBase
  6877.   Γöé
  6878. INotificationEvent
  6879.  
  6880. Inherited by none. 
  6881.  
  6882.  
  6883. ΓòÉΓòÉΓòÉ <hidden> Class Description - INotificationEvent ΓòÉΓòÉΓòÉ
  6884.  
  6885. inotifev.hpp 
  6886.  
  6887. The class INotificationEvent provides the details of a notification event to an 
  6888. observer object.  INotifier objects create notification events when these 
  6889. objects change or when they must notify observer objects of events.  All IBM 
  6890. User Interface Class Library classes may inherit from the INotifier class to 
  6891. obtain the ability to notify.  Currently, the IBM User Interface Class Library 
  6892. has implemented the IWindowclass as inheriting from INotifier.  Therefore, all 
  6893. classes derived from IWindowinherit this ability. 
  6894.  
  6895.  
  6896. ΓòÉΓòÉΓòÉ <hidden> Public Functions - INotificationEvent ΓòÉΓòÉΓòÉ
  6897.  
  6898. Constructors
  6899. INotificationEvent
  6900. operator =
  6901. ~INotificationEvent
  6902.  
  6903. Event Attributes
  6904. eventData
  6905. hasNotifierAttrChanged
  6906. notificationId
  6907. notifier
  6908. observerData
  6909. setEventData
  6910. setNotifierAttrChanged
  6911. setObserverData
  6912.  
  6913. Inherited Members
  6914. IBase
  6915. asDebugInfo
  6916. asString
  6917. messageFile
  6918. messageText
  6919. setMessageFile
  6920. version
  6921.  
  6922.  
  6923. ΓòÉΓòÉΓòÉ <hidden> INotificationEvent - Constructors ΓòÉΓòÉΓòÉ
  6924.  
  6925. You can construct, destruct, and assign objects of this class. 
  6926.  
  6927.  
  6928. ΓòÉΓòÉΓòÉ <hidden> INotificationEvent - Event Attributes ΓòÉΓòÉΓòÉ
  6929.  
  6930. Use these members to get and set the attributes of objects of this class. 
  6931.  
  6932.  
  6933. ΓòÉΓòÉΓòÉ <hidden> Protected Data - INotificationEvent ΓòÉΓòÉΓòÉ
  6934.  
  6935. Inherited Members
  6936. IBase
  6937. recoverable
  6938. unrecoverable
  6939.  
  6940.  
  6941. ΓòÉΓòÉΓòÉ 1.21.1. INotificationEvent::eventData ΓòÉΓòÉΓòÉ
  6942.  
  6943. Returns the data specific to the event. 
  6944.  
  6945. public:
  6946. IEventData eventData() const;
  6947.  
  6948. Used in samples: 
  6949.  
  6950.      Notify Sample: notify.cpp 
  6951.      Multimedia MMREMOTE Sample: mmremote.cpp 
  6952.      Multimedia MMSTEREO Sample: mltcd.cpp 
  6953.      Multimedia MMSTEREO Sample: mltvid.cpp 
  6954.      Multimedia MMSTEREO Sample: mltwave.cpp 
  6955.  
  6956.  
  6957. ΓòÉΓòÉΓòÉ 1.21.2. INotificationEvent::hasNotifierAttrChanged ΓòÉΓòÉΓòÉ
  6958.  
  6959. Returns true if the event represents a change in an attribute of the notifier 
  6960. object. 
  6961.  
  6962. public:
  6963. Boolean hasNotifierAttrChanged() const;
  6964.  
  6965.  
  6966. ΓòÉΓòÉΓòÉ 1.21.3. INotificationEvent::INotificationEvent ΓòÉΓòÉΓòÉ
  6967.  
  6968. You can construct, destruct, and assign objects of this class. 
  6969.  
  6970. Overload 1 
  6971.  
  6972. public:
  6973. INotificationEvent(const INotificationEvent& event);
  6974.  
  6975. You can construct an INotificationEvent object using a copy of an existing 
  6976. notification event. 
  6977.  
  6978. Overload 2 
  6979.  
  6980. public:
  6981. INotificationEvent( const INotificationId& identifier,
  6982.                     INotifier& notifier,
  6983.                     Boolean notifierAttrChanged = true,
  6984.                     const IEventData& eventData = IEventData ( ),
  6985.                     const IEventData& observerData = IEventData ( ));
  6986.  
  6987. You can construct an INotificationEvent object using a notification identifier, 
  6988. a reference to a notifier object derived from INotifier, and a Boolean 
  6989. indicator of whether this event describes a change in an attribute of the 
  6990. notifier.  The notifier can also include data specific to the particular 
  6991. notification.  This data is documented with the notification IDs in the 
  6992. definition of the derived notifier class.  The notifier must also add observer 
  6993. data to the event if the observer provided this data when registering with the 
  6994. notifier. 
  6995.  
  6996.  
  6997. ΓòÉΓòÉΓòÉ 1.21.4. INotificationEvent::notificationId ΓòÉΓòÉΓòÉ
  6998.  
  6999. Returns the INotificationId for the event.  The derived INotifier classes 
  7000. document the notification identifiers. 
  7001.  
  7002. public:
  7003. INotificationId notificationId() const;
  7004.  
  7005. Used in samples: 
  7006.  
  7007.      Notify Sample: notify.cpp 
  7008.      Multimedia MMREMOTE Sample: mmremote.cpp 
  7009.      Multimedia MMSTEREO Sample: mltcd.cpp 
  7010.      Multimedia MMSTEREO Sample: mltvid.cpp 
  7011.      Multimedia MMSTEREO Sample: mltwave.cpp 
  7012.  
  7013.  
  7014. ΓòÉΓòÉΓòÉ 1.21.5. INotificationEvent::notifier ΓòÉΓòÉΓòÉ
  7015.  
  7016. Returns a reference to the notifier object. 
  7017.  
  7018. public:
  7019. INotifier& notifier() const;
  7020.  
  7021. Used in sample:   Notify Sample: notify.cpp 
  7022.  
  7023.  
  7024. ΓòÉΓòÉΓòÉ 1.21.6. INotificationEvent::observerData ΓòÉΓòÉΓòÉ
  7025.  
  7026. Returns observer data that is added when the observer registers with the 
  7027. notifier object. 
  7028.  
  7029. public:
  7030. IEventData observerData() const;
  7031.  
  7032.  
  7033. ΓòÉΓòÉΓòÉ 1.21.7. INotificationEvent::operator = ΓòÉΓòÉΓòÉ
  7034.  
  7035. Replaces the contents of one INotificationId object with another INotification 
  7036. object. 
  7037.  
  7038. public:
  7039. INotificationEvent&
  7040.   operator =( const INotificationEvent& event);
  7041.  
  7042.  
  7043. ΓòÉΓòÉΓòÉ 1.21.8. INotificationEvent::setEventData ΓòÉΓòÉΓòÉ
  7044.  
  7045. Stores event data that is specific to a particular notification. The existence 
  7046. and type of the event data is documented with the notification IDs in the 
  7047. definition of the derived notifier class. 
  7048.  
  7049. public:
  7050. INotificationEvent&
  7051.   setEventData( const IEventData& eventData);
  7052.  
  7053.  
  7054. ΓòÉΓòÉΓòÉ 1.21.9. INotificationEvent::setNotifierAttrChanged ΓòÉΓòÉΓòÉ
  7055.  
  7056. Indicates that the notification event is a change in one of the notifier's 
  7057. attributes. 
  7058.  
  7059. public:
  7060. INotificationEvent&
  7061.   setNotifierAttrChanged( Boolean notifierAttrchanged = true);
  7062.  
  7063.  
  7064. ΓòÉΓòÉΓòÉ 1.21.10. INotificationEvent::setObserverData ΓòÉΓòÉΓòÉ
  7065.  
  7066. Stores observer data in the notification event. The observer provides this data 
  7067. when it registers with a notifier by calling the INotifier::addObserver 
  7068. protected member function. 
  7069.  
  7070. public:
  7071. INotificationEvent&
  7072.   setObserverData( const IEventData& observerData);
  7073.  
  7074.  
  7075. ΓòÉΓòÉΓòÉ 1.21.11. INotificationEvent::~INotificationEvent ΓòÉΓòÉΓòÉ
  7076.  
  7077. public:
  7078. ~INotificationEvent();
  7079.  
  7080.  
  7081. ΓòÉΓòÉΓòÉ 1.22. INotifier ΓòÉΓòÉΓòÉ
  7082.  
  7083. Description 
  7084.  
  7085. Derivation 
  7086.  
  7087. Constructors 
  7088.  
  7089. Public Functions 
  7090.  
  7091. Protected Functions 
  7092.  
  7093. Protected Data 
  7094.  
  7095. To close all the panels in a chapter, double click on this panel's system menu. 
  7096.  
  7097.  
  7098. ΓòÉΓòÉΓòÉ <hidden> Derivation - INotifier ΓòÉΓòÉΓòÉ
  7099.  
  7100. IBase
  7101.   Γöé
  7102. IVBase
  7103.   Γöé
  7104. INotifier
  7105.  
  7106. Inherited by: 
  7107.  
  7108.      IStandardNotifier 
  7109.      IWindow 
  7110.  
  7111.  
  7112. ΓòÉΓòÉΓòÉ <hidden> Class Description - INotifier ΓòÉΓòÉΓòÉ
  7113.  
  7114. inotify.hpp 
  7115.  
  7116. The class INotifier defines the notification protocol that objects that support 
  7117. observation must supply.  Because this class is an abstract base class, you 
  7118. cannot construct objects of this class.  All IBM User Interface Class Library 
  7119. window classes inherit the notification process from INotifier. 
  7120.  
  7121. You can implement a notification protocol in the following way: 
  7122.  
  7123.     Derive a class from the IStandardNotifier class which inherits from 
  7124.      INotifier for a direct implementation of the INotifier protocol 
  7125.  
  7126.     Derive from the INotifier class and implement your own notification 
  7127.      protocol 
  7128.  
  7129. Because IWindow inherits from and implements the INotifier protocol,  IWindow 
  7130. provides a visual implementation.  IStandardNotifier inherits from INotifier 
  7131. and can be used for any generic notifier, visual or not. You might want to 
  7132. derive your classes from IStandardNotifier if you are providing a nonvisual 
  7133. notifier. 
  7134.  
  7135. INotifier objects define INotificationIds for each notification that the 
  7136. derived class provides.  You should document the details of these 
  7137. notifications, including any notifier data, within the description of the 
  7138. notification IDs of the derived class definition. 
  7139.  
  7140. INotifier objects notify their observers of all events after the observer 
  7141. requests notification by calling INotifier::addObserver.  The observer object 
  7142. must check the notification ID and process the events it is interested in. 
  7143.  
  7144. Presentation Manager Information See Building VisualAge C++ Parts for Fun and 
  7145. Profit for more information on part construction. 
  7146.  
  7147.  
  7148. ΓòÉΓòÉΓòÉ <hidden> Public Functions - INotifier ΓòÉΓòÉΓòÉ
  7149.  
  7150. Constructors
  7151. INotifier
  7152. ~INotifier
  7153.  
  7154. Notification Members
  7155. disableNotification
  7156. enableNotification
  7157. isEnabledForNotification
  7158.  
  7159. Observer Notification
  7160. notifyObservers
  7161.  
  7162. Inherited Members
  7163. IVBase
  7164. asDebugInfo
  7165. asString
  7166.  
  7167. IBase
  7168. asDebugInfo
  7169. asString
  7170. messageFile
  7171. messageText
  7172. setMessageFile
  7173. version
  7174.  
  7175.  
  7176. ΓòÉΓòÉΓòÉ <hidden> INotifier - Constructors ΓòÉΓòÉΓòÉ
  7177.  
  7178. This class is an abstract base class therefore objects cannot be constructed. 
  7179.  
  7180.  
  7181. ΓòÉΓòÉΓòÉ <hidden> INotifier - Notification Members ΓòÉΓòÉΓòÉ
  7182.  
  7183. Use these members to affect the ability of INotifier to notify observers of 
  7184. events. 
  7185.  
  7186.  
  7187. ΓòÉΓòÉΓòÉ <hidden> INotifier - Observer Addition and Removal ΓòÉΓòÉΓòÉ
  7188.  
  7189. IObserver objects use these members to add and remove themselves from the 
  7190. notifier's collection. 
  7191.  
  7192.  
  7193. ΓòÉΓòÉΓòÉ <hidden> INotifier - Observer Notification ΓòÉΓòÉΓòÉ
  7194.  
  7195. These members notify observers of a change in a notifier. 
  7196.  
  7197.  
  7198. ΓòÉΓòÉΓòÉ <hidden> Protected Functions - INotifier ΓòÉΓòÉΓòÉ
  7199.  
  7200. Observer Addition and Removal
  7201. addObserver
  7202. observerList
  7203. removeAllObservers
  7204. removeObserver
  7205.  
  7206. Observer Notification
  7207. notifyObservers
  7208.  
  7209.  
  7210. ΓòÉΓòÉΓòÉ <hidden> Protected Data - INotifier ΓòÉΓòÉΓòÉ
  7211.  
  7212. Inherited Members
  7213. IBase
  7214. recoverable
  7215. unrecoverable
  7216.  
  7217.  
  7218. ΓòÉΓòÉΓòÉ 1.22.1. INotifier::addObserver ΓòÉΓòÉΓòÉ
  7219.  
  7220. Adds an observer to the notifier's list of observers. 
  7221.  
  7222. protected:
  7223. virtual INotifier&
  7224.   addObserver( IObserver& observer,
  7225.                const IEventData& userData) = 0;
  7226.  
  7227.  
  7228. ΓòÉΓòÉΓòÉ 1.22.2. INotifier::disableNotification ΓòÉΓòÉΓòÉ
  7229.  
  7230. Stops the notifier from sending notifications to its observers. 
  7231.  
  7232. public:
  7233. virtual INotifier& disableNotification() = 0;
  7234.  
  7235.  
  7236. ΓòÉΓòÉΓòÉ 1.22.3. INotifier::enableNotification ΓòÉΓòÉΓòÉ
  7237.  
  7238. Starts the notifier sending notifications to its observers.  This function can 
  7239. be overridden by derived classes to perform customized notification that your 
  7240. application might need.  For instance, one of your function methods may require 
  7241. that a data base be accessible before processing a retrieve function. 
  7242.  
  7243. public:
  7244. virtual INotifier&
  7245.   enableNotification( Boolean enable = true) = 0;
  7246.  
  7247.  
  7248. ΓòÉΓòÉΓòÉ 1.22.4. INotifier::INotifier ΓòÉΓòÉΓòÉ
  7249.  
  7250. This class is an abstract base class therefore objects cannot be constructed. 
  7251.  
  7252. public:
  7253. INotifier();
  7254.  
  7255.  
  7256. ΓòÉΓòÉΓòÉ 1.22.5. INotifier::isEnabledForNotification ΓòÉΓòÉΓòÉ
  7257.  
  7258. Returns true if a notifier can send notifications to its observers. 
  7259.  
  7260. public:
  7261. virtual Boolean isEnabledForNotification() const = 0;
  7262.  
  7263.  
  7264. ΓòÉΓòÉΓòÉ 1.22.6. INotifier::notifyObservers ΓòÉΓòÉΓòÉ
  7265.  
  7266. Notifies all observers in a notifier's list of observers. Each observer 
  7267. receives a notification event containing the identity of the notifier, the 
  7268. notification ID, and any optional data provided by the specific notifier 
  7269. object. 
  7270.  
  7271. Note:  A public and a protected version of notifyObservers are provided for 
  7272.        convenience. The protected version does not require the caller to 
  7273.        construct an INotificationEvent to call it.  In this case, the 
  7274.        construction of the INotificationEvent occurs in the code of the 
  7275.        protected notifyObservers function. 
  7276.  
  7277. Overload 1 
  7278.  
  7279. public:
  7280. virtual INotifier&
  7281.   notifyObservers( const INotificationEvent& event) = 0;
  7282.  
  7283. Overload 2 
  7284.  
  7285. protected:
  7286. virtual INotifier&
  7287.   notifyObservers( const INotificationId& id) = 0;
  7288.  
  7289.  
  7290. ΓòÉΓòÉΓòÉ 1.22.7. INotifier::observerList ΓòÉΓòÉΓòÉ
  7291.  
  7292. Returns the list of observers. If the observer list does not exist, the derived 
  7293. notifier class must create it before calling this member function. 
  7294.  
  7295. protected:
  7296. virtual IObserverList& observerList() const = 0;
  7297.  
  7298.  
  7299. ΓòÉΓòÉΓòÉ 1.22.8. INotifier::removeAllObservers ΓòÉΓòÉΓòÉ
  7300.  
  7301. Removes all observers from the notifier's list of observers. 
  7302.  
  7303. protected:
  7304. virtual INotifier& removeAllObservers() = 0;
  7305.  
  7306.  
  7307. ΓòÉΓòÉΓòÉ 1.22.9. INotifier::removeObserver ΓòÉΓòÉΓòÉ
  7308.  
  7309. Removes an observer from the notifier's list of observers. 
  7310.  
  7311. protected:
  7312. virtual INotifier& removeObserver(IObserver& observer) = 0;
  7313.  
  7314.  
  7315. ΓòÉΓòÉΓòÉ 1.22.10. INotifier::~INotifier ΓòÉΓòÉΓòÉ
  7316.  
  7317. public:
  7318. virtual  ~INotifier();
  7319.  
  7320.  
  7321. ΓòÉΓòÉΓòÉ 1.23. IObserver ΓòÉΓòÉΓòÉ
  7322.  
  7323. Description 
  7324.  
  7325. Derivation 
  7326.  
  7327. Public Functions 
  7328.  
  7329. Protected Functions 
  7330.  
  7331. Protected Data 
  7332.  
  7333. To close all the panels in a chapter, double click on this panel's system menu. 
  7334.  
  7335.  
  7336. ΓòÉΓòÉΓòÉ <hidden> Derivation - IObserver ΓòÉΓòÉΓòÉ
  7337.  
  7338. IBase
  7339.   Γöé
  7340. IVBase
  7341.   Γöé
  7342. IObserver
  7343.  
  7344. Inherited by none. 
  7345.  
  7346.  
  7347. ΓòÉΓòÉΓòÉ <hidden> Class Description - IObserver ΓòÉΓòÉΓòÉ
  7348.  
  7349. iobservr.hpp 
  7350.  
  7351. The IObserver class is the abstract base class for all objects that are to be 
  7352. notified of changes in the state of other objects in the system. You can derive 
  7353. objects that require notification from this class and implement the function 
  7354. dispatchNotificationEvent to process specific events. 
  7355.  
  7356.  
  7357. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IObserver ΓòÉΓòÉΓòÉ
  7358.  
  7359. Constructors
  7360. ~IObserver
  7361.  
  7362. Event Dispatching
  7363. handleNotificationsFor
  7364. stopHandlingNotificationsFor
  7365.  
  7366. Inherited Members
  7367. IVBase
  7368. asDebugInfo
  7369. asString
  7370.  
  7371. IBase
  7372. asDebugInfo
  7373. asString
  7374. messageFile
  7375. messageText
  7376. setMessageFile
  7377. version
  7378.  
  7379.  
  7380. ΓòÉΓòÉΓòÉ <hidden> IObserver - Constructors ΓòÉΓòÉΓòÉ
  7381.  
  7382. Only derived classes can create objects of this class.  To enforce this, the 
  7383. only constructor has protected access. 
  7384.  
  7385.  
  7386. ΓòÉΓòÉΓòÉ <hidden> IObserver - Event Dispatching ΓòÉΓòÉΓòÉ
  7387.  
  7388. Use these members to evaluate events and determine if it is appropriate for an 
  7389. observer object to process it.  They also attach the observer to and detach the 
  7390. observer from the INotifier object. 
  7391.  
  7392.  
  7393. ΓòÉΓòÉΓòÉ <hidden> Protected Functions - IObserver ΓòÉΓòÉΓòÉ
  7394.  
  7395. Constructors
  7396. IObserver
  7397.  
  7398. Event Dispatching
  7399. dispatchNotificationEvent
  7400.  
  7401.  
  7402. ΓòÉΓòÉΓòÉ <hidden> Protected Data - IObserver ΓòÉΓòÉΓòÉ
  7403.  
  7404. Inherited Members
  7405. IBase
  7406. recoverable
  7407. unrecoverable
  7408.  
  7409.  
  7410. ΓòÉΓòÉΓòÉ 1.23.1. IObserver::dispatchNotificationEvent ΓòÉΓòÉΓòÉ
  7411.  
  7412. Notifies an observer of an event in a notification enabled object. The 
  7413. notification also includes event specific information. 
  7414.  
  7415. protected:
  7416. virtual IObserver&
  7417.   dispatchNotificationEvent( const INotificationEvent& event) = 0;
  7418.  
  7419.  
  7420. ΓòÉΓòÉΓòÉ 1.23.2. IObserver::handleNotificationsFor ΓòÉΓòÉΓòÉ
  7421.  
  7422. Attaches the observer to the INotifier object argument. The observer is 
  7423. notified of events after the notifier object has been enabled for 
  7424. notifications. 
  7425.  
  7426. public:
  7427. virtual IObserver&
  7428.   handleNotificationsFor( INotifier& notifier,
  7429.                           const IEventData& userData = IEventData ( ));
  7430.  
  7431. Used in samples: 
  7432.  
  7433.      Notify Sample: notify.cpp 
  7434.      Multimedia MMREMOTE Sample: mmremote.cpp 
  7435.      Multimedia MMSTEREO Sample: mltcd.cpp 
  7436.      Multimedia MMSTEREO Sample: mltvid.cpp 
  7437.      Multimedia MMSTEREO Sample: mltwave.cpp 
  7438.  
  7439.  
  7440. ΓòÉΓòÉΓòÉ 1.23.3. IObserver::IObserver ΓòÉΓòÉΓòÉ
  7441.  
  7442. The default constructor. 
  7443.  
  7444. protected:
  7445. IObserver();
  7446.  
  7447.  
  7448. ΓòÉΓòÉΓòÉ 1.23.4. IObserver::stopHandlingNotificationsFor ΓòÉΓòÉΓòÉ
  7449.  
  7450. Detaches the observer from the argument INotifier object. 
  7451.  
  7452. public:
  7453. virtual IObserver&
  7454.   stopHandlingNotificationsFor( INotifier& notifier);
  7455.  
  7456. Used in samples: 
  7457.  
  7458.      Multimedia MMSTEREO Sample: mltcd.cpp 
  7459.      Multimedia MMSTEREO Sample: mltvid.cpp 
  7460.      Multimedia MMSTEREO Sample: mltwave.cpp 
  7461.  
  7462.  
  7463. ΓòÉΓòÉΓòÉ 1.23.5. IObserver::~IObserver ΓòÉΓòÉΓòÉ
  7464.  
  7465. public:
  7466. virtual  ~IObserver();
  7467.  
  7468.  
  7469. ΓòÉΓòÉΓòÉ 1.24. IObserverList ΓòÉΓòÉΓòÉ
  7470.  
  7471. Description 
  7472.  
  7473. Derivation 
  7474.  
  7475. Constructors 
  7476.  
  7477. Public Functions 
  7478.  
  7479. Protected Data 
  7480.  
  7481. Nested Types 
  7482.  
  7483. To close all the panels in a chapter, double click on this panel's system menu. 
  7484.  
  7485.  
  7486. ΓòÉΓòÉΓòÉ <hidden> Derivation - IObserverList ΓòÉΓòÉΓòÉ
  7487.  
  7488. IBase
  7489.   Γöé
  7490. IVBase
  7491.   Γöé
  7492. IObserverList
  7493.  
  7494. Inherited by none. 
  7495.  
  7496.  
  7497. ΓòÉΓòÉΓòÉ <hidden> Class Description - IObserverList ΓòÉΓòÉΓòÉ
  7498.  
  7499. iobslist.hpp 
  7500.  
  7501. The IObserverList class provides the interface for a list of IObserver objects. 
  7502. This class implements the list of observers as an ordered list that can be 
  7503. traversed with cursor logic. 
  7504.  
  7505.  
  7506. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IObserverList ΓòÉΓòÉΓòÉ
  7507.  
  7508. Constructors
  7509. IObserverList
  7510. ~IObserverList
  7511.  
  7512. Observer Addition and Removal
  7513. add
  7514. elementAt
  7515. isEmpty
  7516. numberOfElements
  7517. remove
  7518. removeAll
  7519. removeAt
  7520.  
  7521. Observer Notification
  7522. notifyObservers
  7523.  
  7524. Inherited Members
  7525. IVBase
  7526. asDebugInfo
  7527. asString
  7528.  
  7529. IBase
  7530. asDebugInfo
  7531. asString
  7532. messageFile
  7533. messageText
  7534. setMessageFile
  7535. version
  7536.  
  7537.  
  7538. ΓòÉΓòÉΓòÉ <hidden> IObserverList - Constructors ΓòÉΓòÉΓòÉ
  7539.  
  7540. You can construct and destruct objects of this class. 
  7541.  
  7542.  
  7543. ΓòÉΓòÉΓòÉ <hidden> IObserverList - Hidden Functions ΓòÉΓòÉΓòÉ
  7544.  
  7545.  
  7546. ΓòÉΓòÉΓòÉ <hidden> IObserverList - Observer Addition and Removal ΓòÉΓòÉΓòÉ
  7547.  
  7548. Use these members to add, remove, and find IObserver objects in the observer 
  7549. list's collection. 
  7550.  
  7551.  
  7552. ΓòÉΓòÉΓòÉ <hidden> IObserverList - Observer Notification ΓòÉΓòÉΓòÉ
  7553.  
  7554. These members notify observers of a change in a notifier. 
  7555.  
  7556.  
  7557. ΓòÉΓòÉΓòÉ <hidden> Protected Data - IObserverList ΓòÉΓòÉΓòÉ
  7558.  
  7559. Inherited Members
  7560. IBase
  7561. recoverable
  7562. unrecoverable
  7563.  
  7564.  
  7565. ΓòÉΓòÉΓòÉ 1.24.1. IObserverList::add ΓòÉΓòÉΓòÉ
  7566.  
  7567. Adds an observer to the end of the list. 
  7568.  
  7569. public:
  7570. virtual Boolean add(IObserver& observer, void* userData);
  7571.  
  7572.  
  7573. ΓòÉΓòÉΓòÉ 1.24.2. IObserverList::elementAt ΓòÉΓòÉΓòÉ
  7574.  
  7575. Returns an observer from the list using the specified cursor object. 
  7576.  
  7577. public:
  7578. virtual IObserver& elementAt(const Cursor& cursor) const;
  7579.  
  7580.  
  7581. ΓòÉΓòÉΓòÉ 1.24.3. IObserverList::IObserverList ΓòÉΓòÉΓòÉ
  7582.  
  7583. You can construct and destruct objects of this class. 
  7584.  
  7585. public:
  7586. IObserverList();
  7587.  
  7588. You may only construct objects of this class using the default constructor that 
  7589. takes no arguments. 
  7590.  
  7591.  
  7592. ΓòÉΓòÉΓòÉ 1.24.4. IObserverList::isEmpty ΓòÉΓòÉΓòÉ
  7593.  
  7594. Returns true if there are no observers in the list. 
  7595.  
  7596. public:
  7597. Boolean isEmpty() const;
  7598.  
  7599.  
  7600. ΓòÉΓòÉΓòÉ 1.24.5. IObserverList::notifyObservers ΓòÉΓòÉΓòÉ
  7601.  
  7602. Traverses the list of observers and calls each member's 
  7603. dispatchNotificationEvent function passing a specified notification event 
  7604. object. 
  7605.  
  7606. public:
  7607. IObserverList&
  7608.   notifyObservers( const INotificationEvent& event);
  7609.  
  7610.  
  7611. ΓòÉΓòÉΓòÉ 1.24.6. IObserverList::numberOfElements ΓòÉΓòÉΓòÉ
  7612.  
  7613. Returns the number of observers in the list. 
  7614.  
  7615. public:
  7616. unsigned long numberOfElements() const;
  7617.  
  7618.  
  7619. ΓòÉΓòÉΓòÉ 1.24.7. IObserverList::remove ΓòÉΓòÉΓòÉ
  7620.  
  7621. Removes the specified observer from the list. 
  7622.  
  7623. public:
  7624. virtual IObserverList& remove(const IObserver& observer);
  7625.  
  7626.  
  7627. ΓòÉΓòÉΓòÉ 1.24.8. IObserverList::removeAll ΓòÉΓòÉΓòÉ
  7628.  
  7629. Removes all observers from the list. 
  7630.  
  7631. public:
  7632. virtual IObserverList& removeAll();
  7633.  
  7634.  
  7635. ΓòÉΓòÉΓòÉ 1.24.9. IObserverList::removeAt ΓòÉΓòÉΓòÉ
  7636.  
  7637. Removes an observer at the specified cursor location from the list. 
  7638.  
  7639. public:
  7640. virtual IObserverList& removeAt(const Cursor& cursor);
  7641.  
  7642.  
  7643. ΓòÉΓòÉΓòÉ 1.24.10. IObserverList::~IObserverList ΓòÉΓòÉΓòÉ
  7644.  
  7645. public:
  7646. virtual  ~IObserverList();
  7647.  
  7648.  
  7649. ΓòÉΓòÉΓòÉ <hidden> Nested Types - IObserverList ΓòÉΓòÉΓòÉ
  7650.  
  7651. Classes 
  7652.  
  7653.       IObserverList::Cursor 
  7654.  
  7655.  
  7656. ΓòÉΓòÉΓòÉ 1.25. IObserverList::Cursor ΓòÉΓòÉΓòÉ
  7657.  
  7658. Description 
  7659.  
  7660. Derivation 
  7661.  
  7662. Constructors 
  7663.  
  7664. Public Functions 
  7665.  
  7666. Protected Data 
  7667.  
  7668. To close all the panels in a chapter, double click on this panel's system menu. 
  7669.  
  7670.  
  7671. ΓòÉΓòÉΓòÉ <hidden> Derivation - IObserverList::Cursor ΓòÉΓòÉΓòÉ
  7672.  
  7673. IBase
  7674.   Γöé
  7675. IVBase
  7676.   Γöé
  7677. IObserverList::Cursor
  7678.  
  7679. Inherited by none. 
  7680.  
  7681.  
  7682. ΓòÉΓòÉΓòÉ <hidden> Class Description - IObserverList::Cursor ΓòÉΓòÉΓòÉ
  7683.  
  7684. iobslist.hpp 
  7685.  
  7686. This is a nested cursor class used to iterate over the observers added to an 
  7687. INotifier. 
  7688.  
  7689.  
  7690. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IObserverList::Cursor ΓòÉΓòÉΓòÉ
  7691.  
  7692. Constructors
  7693. Cursor
  7694. ~Cursor
  7695.  
  7696. Cursor Movement
  7697. invalidate
  7698. isValid
  7699. setToFirst
  7700. setToLast
  7701. setToNext
  7702. setToPrevious
  7703.  
  7704. Inherited Members
  7705. IVBase
  7706. asDebugInfo
  7707. asString
  7708.  
  7709. IBase
  7710. asDebugInfo
  7711. asString
  7712. messageFile
  7713. messageText
  7714. setMessageFile
  7715. version
  7716.  
  7717.  
  7718. ΓòÉΓòÉΓòÉ <hidden> IObserverList::Cursor - Constructors ΓòÉΓòÉΓòÉ
  7719.  
  7720. You can construct and destruct objects of this class. 
  7721.  
  7722.  
  7723. ΓòÉΓòÉΓòÉ <hidden> IObserverList::Cursor - Cursor Movement ΓòÉΓòÉΓòÉ
  7724.  
  7725. These members provide cursor movement operations. 
  7726.  
  7727.  
  7728. ΓòÉΓòÉΓòÉ <hidden> Protected Data - IObserverList::Cursor ΓòÉΓòÉΓòÉ
  7729.  
  7730. Inherited Members
  7731. IBase
  7732. recoverable
  7733. unrecoverable
  7734.  
  7735.  
  7736. ΓòÉΓòÉΓòÉ 1.25.1. IObserverList::Cursor::Cursor ΓòÉΓòÉΓòÉ
  7737.  
  7738. Create an IObserverList::Cursor by providing a reference to an IObserverlist. 
  7739.  
  7740. public:
  7741. Cursor(IObserverList& observerList);
  7742.  
  7743.  
  7744. ΓòÉΓòÉΓòÉ 1.25.2. IObserverList::Cursor::invalidate ΓòÉΓòÉΓòÉ
  7745.  
  7746. Marks the cursor as invalid. 
  7747.  
  7748. public:
  7749. virtual void invalidate();
  7750.  
  7751.  
  7752. ΓòÉΓòÉΓòÉ 1.25.3. IObserverList::Cursor::isValid ΓòÉΓòÉΓòÉ
  7753.  
  7754. Returns true if the cursor is on a valid observer. 
  7755.  
  7756. public:
  7757. virtual Boolean isValid() const;
  7758.  
  7759.  
  7760. ΓòÉΓòÉΓòÉ 1.25.4. IObserverList::Cursor::setToFirst ΓòÉΓòÉΓòÉ
  7761.  
  7762. Set the cursor position to the first observer in the list. 
  7763.  
  7764. public:
  7765. virtual Boolean setToFirst();
  7766.  
  7767.  
  7768. ΓòÉΓòÉΓòÉ 1.25.5. IObserverList::Cursor::setToLast ΓòÉΓòÉΓòÉ
  7769.  
  7770. Sets the cursor position to the last observer in the list. 
  7771.  
  7772. public:
  7773. virtual Boolean setToLast();
  7774.  
  7775.  
  7776. ΓòÉΓòÉΓòÉ 1.25.6. IObserverList::Cursor::setToNext ΓòÉΓòÉΓòÉ
  7777.  
  7778. Advances the cursor position to the next observer in the list. 
  7779.  
  7780. public:
  7781. virtual Boolean setToNext();
  7782.  
  7783.  
  7784. ΓòÉΓòÉΓòÉ 1.25.7. IObserverList::Cursor::setToPrevious ΓòÉΓòÉΓòÉ
  7785.  
  7786. Sets the cursor position to the prior observer in the list. 
  7787.  
  7788. public:
  7789. virtual Boolean setToPrevious();
  7790.  
  7791.  
  7792. ΓòÉΓòÉΓòÉ 1.25.8. IObserverList::Cursor::~Cursor ΓòÉΓòÉΓòÉ
  7793.  
  7794. public:
  7795. virtual  ~Cursor();
  7796.  
  7797.  
  7798. ΓòÉΓòÉΓòÉ 1.26. IOutOfMemory ΓòÉΓòÉΓòÉ
  7799.  
  7800. Description 
  7801.  
  7802. Derivation 
  7803.  
  7804. Constructors 
  7805.  
  7806. Public Functions 
  7807.  
  7808. Public Data 
  7809.  
  7810. Public Data includes Styles and Notification IDs if they exist. 
  7811.  
  7812. To close all the panels in a chapter, double click on this panel's system menu. 
  7813.  
  7814.  
  7815. ΓòÉΓòÉΓòÉ <hidden> Derivation - IOutOfMemory ΓòÉΓòÉΓòÉ
  7816.  
  7817. IException
  7818.   Γöé
  7819. IResourceExhausted
  7820.   Γöé
  7821. IOutOfMemory
  7822.  
  7823. Inherited by none. 
  7824.  
  7825.  
  7826. ΓòÉΓòÉΓòÉ <hidden> Class Description - IOutOfMemory ΓòÉΓòÉΓòÉ
  7827.  
  7828. iexcbase.hpp 
  7829.  
  7830. Objects of the IOutOfMemory class represent an exception. The User Interface 
  7831. Class Library's new_handler function creates an object of the IOutOfMemory 
  7832. class when heap memory is exhausted. 
  7833.  
  7834.  
  7835. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IOutOfMemory ΓòÉΓòÉΓòÉ
  7836.  
  7837. Constructors
  7838. IOutOfMemory
  7839.  
  7840. Exception Type
  7841. name
  7842.  
  7843. Inherited Members
  7844. IResourceExhausted
  7845. name
  7846.  
  7847. IException
  7848. addLocation
  7849. appendText
  7850. assertParameter
  7851. errorCodeGroup
  7852. errorId
  7853. isRecoverable
  7854. locationAtIndex
  7855. locationCount
  7856. logExceptionData
  7857. name
  7858. setErrorCodeGroup
  7859. setErrorId
  7860. setSeverity
  7861. setText
  7862. setTraceFunction
  7863. terminate
  7864. text
  7865. textCount
  7866.  
  7867.  
  7868. ΓòÉΓòÉΓòÉ <hidden> IOutOfMemory - Constructors ΓòÉΓòÉΓòÉ
  7869.  
  7870. You can construct objects of this class. 
  7871.  
  7872.  
  7873. ΓòÉΓòÉΓòÉ <hidden> IOutOfMemory - Exception Type ΓòÉΓòÉΓòÉ
  7874.  
  7875. Use these members to determine the name (type) of the exception.  This is used 
  7876. for logging out an exception object's error information. 
  7877.  
  7878.  
  7879. ΓòÉΓòÉΓòÉ <hidden> Public Data - IOutOfMemory ΓòÉΓòÉΓòÉ
  7880.  
  7881. Inherited Members
  7882. IException
  7883. baseLibrary
  7884. CLibrary
  7885. operatingSystem
  7886. other
  7887. presentationSystem
  7888.  
  7889.  
  7890. ΓòÉΓòÉΓòÉ 1.26.1. IOutOfMemory::IOutOfMemory ΓòÉΓòÉΓòÉ
  7891.  
  7892. You can create objects of this class by doing the following: 
  7893.  
  7894.     Using the constructor. 
  7895.  
  7896.      errorText      The text describing this particular error. 
  7897.  
  7898.      errorId        The identifier you want to associate with this particular 
  7899.                     error. 
  7900.  
  7901.      severity       Use the enumeration IException::Severity to specify the 
  7902.                     severity of the error. The default is unrecoverable. 
  7903.  
  7904.     Using the macros discussed in IException. The User Interface Class Library 
  7905.      provides these macros to make creating exceptions easier for you. 
  7906.  
  7907. public:
  7908. IOutOfMemory( const char* errorText,
  7909.               unsigned long errorId,
  7910.               Severity severity = IException::unrecoverable);
  7911.  
  7912.  
  7913. ΓòÉΓòÉΓòÉ 1.26.2. IOutOfMemory::name ΓòÉΓòÉΓòÉ
  7914.  
  7915. Returns the name of the object's class. 
  7916.  
  7917. public:
  7918. virtual const char* name() const;
  7919.  
  7920.  
  7921. ΓòÉΓòÉΓòÉ 1.27. IOutOfSystemResource ΓòÉΓòÉΓòÉ
  7922.  
  7923. Description 
  7924.  
  7925. Derivation 
  7926.  
  7927. Constructors 
  7928.  
  7929. Public Functions 
  7930.  
  7931. Public Data 
  7932.  
  7933. Public Data includes Styles and Notification IDs if they exist. 
  7934.  
  7935. To close all the panels in a chapter, double click on this panel's system menu. 
  7936.  
  7937.  
  7938. ΓòÉΓòÉΓòÉ <hidden> Derivation - IOutOfSystemResource ΓòÉΓòÉΓòÉ
  7939.  
  7940. IException
  7941.   Γöé
  7942. IResourceExhausted
  7943.   Γöé
  7944. IOutOfSystemResource
  7945.  
  7946. Inherited by none. 
  7947.  
  7948.  
  7949. ΓòÉΓòÉΓòÉ <hidden> Class Description - IOutOfSystemResource ΓòÉΓòÉΓòÉ
  7950.  
  7951. iexcbase.hpp 
  7952.  
  7953. Objects of the IOutOfSystemResource class represent an exception. When a member 
  7954. function makes an operating system resource request that the system cannot 
  7955. satisfy, the member function creates and throws an object of the 
  7956. IOutOfSystemResource class. 
  7957.  
  7958.  
  7959. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IOutOfSystemResource ΓòÉΓòÉΓòÉ
  7960.  
  7961. Constructors
  7962. IOutOfSystemResource
  7963.  
  7964. Exception Type
  7965. name
  7966.  
  7967. Inherited Members
  7968. IResourceExhausted
  7969. name
  7970.  
  7971. IException
  7972. addLocation
  7973. appendText
  7974. assertParameter
  7975. errorCodeGroup
  7976. errorId
  7977. isRecoverable
  7978. locationAtIndex
  7979. locationCount
  7980. logExceptionData
  7981. name
  7982. setErrorCodeGroup
  7983. setErrorId
  7984. setSeverity
  7985. setText
  7986. setTraceFunction
  7987. terminate
  7988. text
  7989. textCount
  7990.  
  7991.  
  7992. ΓòÉΓòÉΓòÉ <hidden> IOutOfSystemResource - Constructors ΓòÉΓòÉΓòÉ
  7993.  
  7994. You can construct objects of this class. 
  7995.  
  7996.  
  7997. ΓòÉΓòÉΓòÉ <hidden> IOutOfSystemResource - Exception Type ΓòÉΓòÉΓòÉ
  7998.  
  7999. Use these members to determine the name (type) of the exception.  This is used 
  8000. for logging out an exception object's error information. 
  8001.  
  8002.  
  8003. ΓòÉΓòÉΓòÉ <hidden> Public Data - IOutOfSystemResource ΓòÉΓòÉΓòÉ
  8004.  
  8005. Inherited Members
  8006. IException
  8007. baseLibrary
  8008. CLibrary
  8009. operatingSystem
  8010. other
  8011. presentationSystem
  8012.  
  8013.  
  8014. ΓòÉΓòÉΓòÉ 1.27.1. IOutOfSystemResource::IOutOfSystemResource ΓòÉΓòÉΓòÉ
  8015.  
  8016. You can create objects of this class by doing the following: 
  8017.  
  8018.     Using the constructor. 
  8019.  
  8020.      errorText      The text describing this particular error. 
  8021.  
  8022.      errorId        The identifier you want to associate with this particular 
  8023.                     error. 
  8024.  
  8025.      severity       Use the enumeration IException::Severity to specify the 
  8026.                     severity of the error. The default is unrecoverable. 
  8027.  
  8028.     Using the macros discussed in IException. The User Interface Class Library 
  8029.      provides these macros to make creating exceptions easier for you. 
  8030.  
  8031. public:
  8032. IOutOfSystemResource( const char* errorText,
  8033.                       unsigned long errorId,
  8034.                       Severity severity = IException::unrecoverable);
  8035.  
  8036.  
  8037. ΓòÉΓòÉΓòÉ 1.27.2. IOutOfSystemResource::name ΓòÉΓòÉΓòÉ
  8038.  
  8039. Returns the name of the object's class. 
  8040.  
  8041. public:
  8042. virtual const char* name() const;
  8043.  
  8044.  
  8045. ΓòÉΓòÉΓòÉ 1.28. IOutOfWindowResource ΓòÉΓòÉΓòÉ
  8046.  
  8047. Description 
  8048.  
  8049. Derivation 
  8050.  
  8051. Constructors 
  8052.  
  8053. Public Functions 
  8054.  
  8055. Public Data 
  8056.  
  8057. Public Data includes Styles and Notification IDs if they exist. 
  8058.  
  8059. To close all the panels in a chapter, double click on this panel's system menu. 
  8060.  
  8061.  
  8062. ΓòÉΓòÉΓòÉ <hidden> Derivation - IOutOfWindowResource ΓòÉΓòÉΓòÉ
  8063.  
  8064. IException
  8065.   Γöé
  8066. IResourceExhausted
  8067.   Γöé
  8068. IOutOfWindowResource
  8069.  
  8070. Inherited by none. 
  8071.  
  8072.  
  8073. ΓòÉΓòÉΓòÉ <hidden> Class Description - IOutOfWindowResource ΓòÉΓòÉΓòÉ
  8074.  
  8075. iexcbase.hpp 
  8076.  
  8077. Objects of the IOutOfWindowResource class represent an exception. When a member 
  8078. function makes a presentation (window) system resource request that the system 
  8079. cannot satisfy, the member function creates and throws an object of the 
  8080. IOutOfWindowResource class. 
  8081.  
  8082.  
  8083. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IOutOfWindowResource ΓòÉΓòÉΓòÉ
  8084.  
  8085. Constructors
  8086. IOutOfWindowResource
  8087.  
  8088. Exception Type
  8089. name
  8090.  
  8091. Inherited Members
  8092. IResourceExhausted
  8093. name
  8094.  
  8095. IException
  8096. addLocation
  8097. appendText
  8098. assertParameter
  8099. errorCodeGroup
  8100. errorId
  8101. isRecoverable
  8102. locationAtIndex
  8103. locationCount
  8104. logExceptionData
  8105. name
  8106. setErrorCodeGroup
  8107. setErrorId
  8108. setSeverity
  8109. setText
  8110. setTraceFunction
  8111. terminate
  8112. text
  8113. textCount
  8114.  
  8115.  
  8116. ΓòÉΓòÉΓòÉ <hidden> IOutOfWindowResource - Constructors ΓòÉΓòÉΓòÉ
  8117.  
  8118. You can construct objects of this class. 
  8119.  
  8120.  
  8121. ΓòÉΓòÉΓòÉ <hidden> IOutOfWindowResource - Exception Type ΓòÉΓòÉΓòÉ
  8122.  
  8123. Use these members to determine the name (type) of the exception.  This is used 
  8124. for logging out an exception object's error information. 
  8125.  
  8126.  
  8127. ΓòÉΓòÉΓòÉ <hidden> Public Data - IOutOfWindowResource ΓòÉΓòÉΓòÉ
  8128.  
  8129. Inherited Members
  8130. IException
  8131. baseLibrary
  8132. CLibrary
  8133. operatingSystem
  8134. other
  8135. presentationSystem
  8136.  
  8137.  
  8138. ΓòÉΓòÉΓòÉ 1.28.1. IOutOfWindowResource::IOutOfWindowResource ΓòÉΓòÉΓòÉ
  8139.  
  8140. You can create objects of this class by doing the following: 
  8141.  
  8142.     Using the constructor. 
  8143.  
  8144.      errorText      The text describing this particular error. 
  8145.  
  8146.      errorId        The identifier you want to associate with this particular 
  8147.                     error. 
  8148.  
  8149.      severity       Use the enumeration IException::Severity to specify the 
  8150.                     severity of the error. The default is unrecoverable. 
  8151.  
  8152.     Using the macros discussed in IException. The User Interface Class Library 
  8153.      provides these macros to make creating exceptions easier for you. 
  8154.  
  8155. public:
  8156. IOutOfWindowResource( const char* errorText,
  8157.                       unsigned long errorId,
  8158.                       Severity severity = IException::unrecoverable);
  8159.  
  8160.  
  8161. ΓòÉΓòÉΓòÉ 1.28.2. IOutOfWindowResource::name ΓòÉΓòÉΓòÉ
  8162.  
  8163. Returns the name of the object's class. 
  8164.  
  8165. public:
  8166. virtual const char* name() const;
  8167.  
  8168.  
  8169. ΓòÉΓòÉΓòÉ 1.29. IPair ΓòÉΓòÉΓòÉ
  8170.  
  8171. Description 
  8172.  
  8173. Derivation 
  8174.  
  8175. Constructors 
  8176.  
  8177. Public Functions 
  8178.  
  8179. Protected Data 
  8180.  
  8181. Nested Types 
  8182.  
  8183. To close all the panels in a chapter, double click on this panel's system menu. 
  8184.  
  8185.  
  8186. ΓòÉΓòÉΓòÉ <hidden> Derivation - IPair ΓòÉΓòÉΓòÉ
  8187.  
  8188. IBase
  8189.   Γöé
  8190. IPair
  8191.  
  8192. Inherited by: 
  8193.  
  8194.      IPoint 
  8195.      IRange 
  8196.      ISize 
  8197.  
  8198.  
  8199. ΓòÉΓòÉΓòÉ <hidden> Class Description - IPair ΓòÉΓòÉΓòÉ
  8200.  
  8201. ipoint.hpp 
  8202.  
  8203. Objects of the IPair class are generic ordered pairs of coordinates. The class 
  8204. serves as the base for the following specific ordered pair classes: 
  8205.  
  8206.     IPoint 
  8207.     ISize 
  8208.     IRange 
  8209.  
  8210. This class provides basic utilities to get and set the two coordinate values. 
  8211. In addition, it provides a full set of comparison and mathematical operators to 
  8212. manipulate ordered pairs. 
  8213.  
  8214.  
  8215. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IPair ΓòÉΓòÉΓòÉ
  8216.  
  8217. Comparison Operators
  8218. operator !=
  8219. operator <
  8220. operator <=
  8221. operator ==
  8222. operator >
  8223. operator >=
  8224.  
  8225. Constructors
  8226. IPair
  8227.  
  8228. Conversions
  8229. asDebugInfo
  8230. asString
  8231. operator -
  8232.  
  8233. Coordinates
  8234. coord1
  8235. coord2
  8236. setCoord1
  8237. setCoord2
  8238.  
  8239. Manipulation
  8240. operator %=
  8241. operator *=
  8242. operator +=
  8243. operator -=
  8244. operator /=
  8245. scaleBy
  8246. scaledBy
  8247.  
  8248. Minimum and Maximum
  8249. maximum
  8250. minimum
  8251.  
  8252. Miscellaneous
  8253. distanceFrom
  8254. dotProduct
  8255. transpose
  8256.  
  8257. Inherited Members
  8258. IBase
  8259. asDebugInfo
  8260. asString
  8261. messageFile
  8262. messageText
  8263. setMessageFile
  8264. version
  8265.  
  8266.  
  8267. ΓòÉΓòÉΓòÉ <hidden> IPair - Comparison Operators ΓòÉΓòÉΓòÉ
  8268.  
  8269. Use these members to compare one IPair object to another. 
  8270.  
  8271.  
  8272. ΓòÉΓòÉΓòÉ <hidden> IPair - Constructors ΓòÉΓòÉΓòÉ
  8273.  
  8274. You can construct, copy, and assign objects of this class. This class uses the 
  8275. compiler-generated copy constructor and assignment operator to copy and assign 
  8276. IPair objects. 
  8277.  
  8278.  
  8279. ΓòÉΓòÉΓòÉ <hidden> IPair - Conversions ΓòÉΓòÉΓòÉ
  8280.  
  8281. Use these members to return an IPair object in a different form. 
  8282.  
  8283.  
  8284. ΓòÉΓòÉΓòÉ <hidden> IPair - Coordinates ΓòÉΓòÉΓòÉ
  8285.  
  8286. Use these members to query and change the ordered pair of integers in an IPair 
  8287. object. 
  8288.  
  8289.  
  8290. ΓòÉΓòÉΓòÉ <hidden> IPair - Displaying ΓòÉΓòÉΓòÉ
  8291.  
  8292. Use this member to write ordered pairs to an ostream object. 
  8293.  
  8294.  
  8295. ΓòÉΓòÉΓòÉ <hidden> IPair - Manipulation ΓòÉΓòÉΓòÉ
  8296.  
  8297. Use these members to alter the coordinate values of an IPair object.  This 
  8298. includes both member and non-member arithmetic operators and members to scale 
  8299. the value of an IPair object. 
  8300.  
  8301.  
  8302. ΓòÉΓòÉΓòÉ <hidden> IPair - Minimum and Maximum ΓòÉΓòÉΓòÉ
  8303.  
  8304. Use these members to determine the smaller or larger of two IPair objects. 
  8305.  
  8306.  
  8307. ΓòÉΓòÉΓòÉ <hidden> IPair - Miscellaneous ΓòÉΓòÉΓòÉ
  8308.  
  8309. These members are additional, unrelated members of the IPair class. 
  8310.  
  8311.  
  8312. ΓòÉΓòÉΓòÉ <hidden> Protected Data - IPair ΓòÉΓòÉΓòÉ
  8313.  
  8314. Inherited Members
  8315. IBase
  8316. recoverable
  8317. unrecoverable
  8318.  
  8319.  
  8320. ΓòÉΓòÉΓòÉ 1.29.1. IPair::asDebugInfo ΓòÉΓòÉΓòÉ
  8321.  
  8322. Converts the ordered pair to an IString containing a diagnostic representation 
  8323. of the object. 
  8324.  
  8325. public:
  8326. IString asDebugInfo() const;
  8327.  
  8328.  
  8329. ΓòÉΓòÉΓòÉ 1.29.2. IPair::asString ΓòÉΓòÉΓòÉ
  8330.  
  8331. Converts the ordered pair (a, b) to an IString("(a, b)" ). 
  8332.  
  8333. public:
  8334. IString asString() const;
  8335.  
  8336.  
  8337. ΓòÉΓòÉΓòÉ 1.29.3. IPair::coord1 ΓòÉΓòÉΓòÉ
  8338.  
  8339. Obtains the value of the first coordinate. 
  8340.  
  8341. public:
  8342. Coord coord1() const;
  8343.  
  8344.  
  8345. ΓòÉΓòÉΓòÉ 1.29.4. IPair::coord2 ΓòÉΓòÉΓòÉ
  8346.  
  8347. Obtains the value of the second coordinate. 
  8348.  
  8349. public:
  8350. Coord coord2() const;
  8351.  
  8352.  
  8353. ΓòÉΓòÉΓòÉ 1.29.5. IPair::distanceFrom ΓòÉΓòÉΓòÉ
  8354.  
  8355. Returns the distance from some other ordered pair. 
  8356.  
  8357. public:
  8358. double distanceFrom(const IPair& aPair) const;
  8359.  
  8360.  
  8361. ΓòÉΓòÉΓòÉ 1.29.6. IPair::dotProduct ΓòÉΓòÉΓòÉ
  8362.  
  8363. Returns the dot product with another ordered pair. 
  8364.  
  8365. public:
  8366. long dotProduct(const IPair& aPair) const;
  8367.  
  8368.  
  8369. ΓòÉΓòÉΓòÉ 1.29.7. IPair::IPair ΓòÉΓòÉΓòÉ
  8370.  
  8371. You can construct, copy, and assign objects of this class. This class uses the 
  8372. compiler-generated copy constructor and assignment operator to copy and assign 
  8373. IPair objects. 
  8374.  
  8375. Overload 1 
  8376.  
  8377. public:
  8378. IPair(Coord init);
  8379.  
  8380. Overload 2 
  8381.  
  8382. public:
  8383. IPair();
  8384.  
  8385. Used in samples: 
  8386.  
  8387.      Hello World Sample - Version 5: aearthw5.cpp 
  8388.      Hello World Sample - Version 6: aearthw6.cpp 
  8389.  
  8390. Overload 3 
  8391.  
  8392. public:
  8393. IPair(Coord coord1, Coord coord2);
  8394.  
  8395. Used in samples: 
  8396.  
  8397.      Hello World Sample - Version 5: aearthw5.cpp 
  8398.      Hello World Sample - Version 6: aearthw6.cpp 
  8399.      2D Graphics Sample: 2d-draw.cpp 
  8400.      Direct Manipulation Sample 4: dmsamp4.cpp 
  8401.  
  8402.  
  8403. ΓòÉΓòÉΓòÉ 1.29.8. IPair::maximum ΓòÉΓòÉΓòÉ
  8404.  
  8405. Returns an ordered pair whose coordinates are the maximum of the corresponding 
  8406. coordinates of the IPair and the specified IPair. 
  8407.  
  8408. public:
  8409. IPair maximum(const IPair& aPair) const;
  8410.  
  8411. Used in sample:   Multimedia MMREMOTE Sample: mmremote.cpp 
  8412.  
  8413.  
  8414. ΓòÉΓòÉΓòÉ 1.29.9. IPair::minimum ΓòÉΓòÉΓòÉ
  8415.  
  8416. Returns an ordered pair whose coordinates are the minimum of the corresponding 
  8417. coordinates of the IPair and the specified IPair. 
  8418.  
  8419. public:
  8420. IPair minimum(const IPair& aPair) const;
  8421.  
  8422.  
  8423. ΓòÉΓòÉΓòÉ 1.29.10. IPair::operator != ΓòÉΓòÉΓòÉ
  8424.  
  8425. True if either coordinate differs. 
  8426.  
  8427. public:
  8428. Boolean operator !=(const IPair& aPair) const;
  8429.  
  8430.  
  8431. ΓòÉΓòÉΓòÉ 1.29.11. IPair::operator %= ΓòÉΓòÉΓòÉ
  8432.  
  8433. Replaces the coordinates with the remainder when divided by those of the 
  8434. following specified parameter: 
  8435.  
  8436. aPair 
  8437.      The library performs the remainder function between the corresponding 
  8438.      coordinates, coord1 with coord1 of aPair and coord2 with coord2. 
  8439.  
  8440. divisor 
  8441.      The library performs the remainder function between each coordinate and 
  8442.      the divisor. 
  8443.  
  8444. Overload 1 
  8445.  
  8446. public:
  8447. IPair& operator %=(const IPair& aPair);
  8448.  
  8449. Overload 2 
  8450.  
  8451. public:
  8452. IPair& operator %=(long divisor);
  8453.  
  8454.  
  8455. ΓòÉΓòÉΓòÉ 1.29.12. IPair::operator *= ΓòÉΓòÉΓòÉ
  8456.  
  8457. Multiplies the coordinates by those of the specified parameter: 
  8458.  
  8459. aPair 
  8460.      The library performs the product function between the corresponding 
  8461.      coordinates, coord1 with coord1 of aPair and coord2 with coord2. 
  8462.  
  8463. multiplier 
  8464.      The library perform the product function between each coordinate and the 
  8465.      multiplier. 
  8466.  
  8467. Overload 1 
  8468.  
  8469. public:
  8470. IPair& operator *=(const IPair& aPair);
  8471.  
  8472. Overload 2 
  8473.  
  8474. public:
  8475. IPair& operator *=(double multiplier);
  8476.  
  8477.  
  8478. ΓòÉΓòÉΓòÉ 1.29.13. IPair::operator += ΓòÉΓòÉΓòÉ
  8479.  
  8480. Adds the coordinates of the specified aPair to the coordinates of an ordered 
  8481. pair. 
  8482.  
  8483. public:
  8484. IPair& operator +=(const IPair& aPair);
  8485.  
  8486. Used in sample:   Lancelot - A Valiant Example: ltimec.cpp 
  8487.  
  8488.  
  8489. ΓòÉΓòÉΓòÉ 1.29.14. IPair::operator - ΓòÉΓòÉΓòÉ
  8490.  
  8491. Returns an ordered pair whose coordinates are the difference between the 
  8492. corresponding coordinates of pair1 and pair2. 
  8493.  
  8494. When you use the unary format, it returns an ordered pair with negated 
  8495. coordinates. 
  8496.  
  8497. public:
  8498. IPair operator -() const;
  8499.  
  8500.  
  8501. ΓòÉΓòÉΓòÉ 1.29.15. IPair::operator -= ΓòÉΓòÉΓòÉ
  8502.  
  8503. Subtracts the coordinates specified in aPair from the IPair coordinates. 
  8504.  
  8505. public:
  8506. IPair& operator -=(const IPair& aPair);
  8507.  
  8508.  
  8509. ΓòÉΓòÉΓòÉ 1.29.16. IPair::operator /= ΓòÉΓòÉΓòÉ
  8510.  
  8511. Divides the coordinates by those of the second specified parameter: 
  8512.  
  8513. aPair 
  8514.      The library performs the quotient function between the corresponding 
  8515.      coordinates, coord1 with coord1 of aPair and coord2 with coord2. 
  8516.  
  8517. divisor 
  8518.      The library performs the product function between each coordinate and the 
  8519.      divisor. 
  8520.  
  8521. Overload 1 
  8522.  
  8523. public:
  8524. IPair& operator /=(double divisor);
  8525.  
  8526. Overload 2 
  8527.  
  8528. public:
  8529. IPair& operator /=(const IPair& aPair);
  8530.  
  8531.  
  8532. ΓòÉΓòÉΓòÉ 1.29.17. IPair::operator < ΓòÉΓòÉΓòÉ
  8533.  
  8534. True if both coordinates are less than those of the specified aPair. 
  8535.  
  8536. public:
  8537. Boolean operator <(const IPair& aPair) const;
  8538.  
  8539.  
  8540. ΓòÉΓòÉΓòÉ 1.29.18. IPair::operator <= ΓòÉΓòÉΓòÉ
  8541.  
  8542. True if both coordinates are less than or equal. 
  8543.  
  8544. public:
  8545. Boolean operator <=(const IPair& aPair) const;
  8546.  
  8547.  
  8548. ΓòÉΓòÉΓòÉ 1.29.19. IPair::operator == ΓòÉΓòÉΓòÉ
  8549.  
  8550. True if both coordinates match those of the specified aPair. 
  8551.  
  8552. public:
  8553. Boolean operator ==(const IPair& aPair) const;
  8554.  
  8555.  
  8556. ΓòÉΓòÉΓòÉ 1.29.20. IPair::operator > ΓòÉΓòÉΓòÉ
  8557.  
  8558. True if both coordinates are greater than those of the specified aPair. 
  8559.  
  8560. public:
  8561. Boolean operator >(const IPair& aPair) const;
  8562.  
  8563.  
  8564. ΓòÉΓòÉΓòÉ 1.29.21. IPair::operator >= ΓòÉΓòÉΓòÉ
  8565.  
  8566. True if both coordinates are greater than or equal. 
  8567.  
  8568. public:
  8569. Boolean operator >=(const IPair& aPair) const;
  8570.  
  8571.  
  8572. ΓòÉΓòÉΓòÉ 1.29.22. IPair::scaleBy ΓòÉΓòÉΓòÉ
  8573.  
  8574. Scales the X-coordinate by xFactor, the Y-coordinate by yFactor. 
  8575.  
  8576. public:
  8577. IPair& scaleBy(double xFactor, double yFactor);
  8578.  
  8579.  
  8580. ΓòÉΓòÉΓòÉ 1.29.23. IPair::scaledBy ΓòÉΓòÉΓòÉ
  8581.  
  8582. Same as IPair::scaleBy, but returns a new IPair, leaving the original 
  8583. unmodified. 
  8584.  
  8585. public:
  8586. IPair scaledBy(double xFactor, double yFactor) const;
  8587.  
  8588. Used in samples: 
  8589.  
  8590.      Hello World Sample - Version 5: aearthw5.cpp 
  8591.      Hello World Sample - Version 6: aearthw6.cpp 
  8592.  
  8593.  
  8594. ΓòÉΓòÉΓòÉ 1.29.24. IPair::setCoord1 ΓòÉΓòÉΓòÉ
  8595.  
  8596. Sets the value of the first coordinate. 
  8597.  
  8598. public:
  8599. IPair& setCoord1(Coord coord1);
  8600.  
  8601.  
  8602. ΓòÉΓòÉΓòÉ 1.29.25. IPair::setCoord2 ΓòÉΓòÉΓòÉ
  8603.  
  8604. Sets the value of the second coordinate. 
  8605.  
  8606. public:
  8607. IPair& setCoord2(Coord coord2);
  8608.  
  8609.  
  8610. ΓòÉΓòÉΓòÉ 1.29.26. IPair::transpose ΓòÉΓòÉΓòÉ
  8611.  
  8612. Swaps the coordinates of the ordered pair. The friend version of this function 
  8613. returns a new pair with transposed coordinates. 
  8614.  
  8615. public:
  8616. IPair& transpose();
  8617.  
  8618.  
  8619. ΓòÉΓòÉΓòÉ <hidden> Nested Types - IPair ΓòÉΓòÉΓòÉ
  8620.  
  8621. Type Definitions 
  8622.  
  8623.       Coord 
  8624.  
  8625.  
  8626. ΓòÉΓòÉΓòÉ <hidden> Type Definition - IPair::Coord ΓòÉΓòÉΓòÉ
  8627.  
  8628. typedef long Coord;
  8629.  
  8630. Type of the coordinate values (long integer). 
  8631.  
  8632.  
  8633. ΓòÉΓòÉΓòÉ 1.30. IPoint ΓòÉΓòÉΓòÉ
  8634.  
  8635. Description 
  8636.  
  8637. Derivation 
  8638.  
  8639. Constructors 
  8640.  
  8641. Public Functions 
  8642.  
  8643. Protected Data 
  8644.  
  8645. To close all the panels in a chapter, double click on this panel's system menu. 
  8646.  
  8647.  
  8648. ΓòÉΓòÉΓòÉ <hidden> Derivation - IPoint ΓòÉΓòÉΓòÉ
  8649.  
  8650. IBase
  8651.   Γöé
  8652. IPair
  8653.   Γöé
  8654. IPoint
  8655.  
  8656. Inherited by none. 
  8657.  
  8658.  
  8659. ΓòÉΓòÉΓòÉ <hidden> Class Description - IPoint ΓòÉΓòÉΓòÉ
  8660.  
  8661. ipoint.hpp 
  8662.  
  8663. Objects of the IPoint class represent points in two-dimensional space. In 
  8664. addition to all the functions inherited from its base class, IPair, the IPoint 
  8665. class provides additional functions. 
  8666.  
  8667. Presentation Manager Information 
  8668.  
  8669. You can also construct objects of this class from a Presentation Manager 
  8670. Toolkit POINTL structure. 
  8671.  
  8672.  
  8673. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IPoint ΓòÉΓòÉΓòÉ
  8674.  
  8675. Constructors
  8676. IPoint
  8677.  
  8678. Conversions
  8679. asPOINTL
  8680.  
  8681. Coordinates
  8682. setX
  8683. setY
  8684. x
  8685. y
  8686.  
  8687. Inherited Members
  8688. IPair
  8689. asDebugInfo
  8690. asString
  8691. coord1
  8692. coord2
  8693. distanceFrom
  8694. dotProduct
  8695. maximum
  8696. minimum
  8697. operator !=
  8698. operator %=
  8699. operator *=
  8700. operator +=
  8701. operator -
  8702. operator -=
  8703. operator /=
  8704. operator <
  8705. operator <=
  8706. operator ==
  8707. operator >
  8708. operator >=
  8709. scaleBy
  8710. scaledBy
  8711. setCoord1
  8712. setCoord2
  8713. transpose
  8714.  
  8715. IBase
  8716. asDebugInfo
  8717. asString
  8718. messageFile
  8719. messageText
  8720. setMessageFile
  8721. version
  8722.  
  8723.  
  8724. ΓòÉΓòÉΓòÉ <hidden> IPoint - Constructors ΓòÉΓòÉΓòÉ
  8725.  
  8726. You can create, copy, and assign objects of this class. This class uses the 
  8727. compiler-generated copy constructor and assignment operator to copy and assign 
  8728. IPoint objects. 
  8729.  
  8730.  
  8731. ΓòÉΓòÉΓòÉ <hidden> IPoint - Conversions ΓòÉΓòÉΓòÉ
  8732.  
  8733. Use these members to return an IPoint object in a different form. 
  8734.  
  8735.  
  8736. ΓòÉΓòÉΓòÉ <hidden> IPoint - Coordinates ΓòÉΓòÉΓòÉ
  8737.  
  8738. Use these members to query and change the x and y coordinates of an IPoint 
  8739. object. 
  8740.  
  8741.  
  8742. ΓòÉΓòÉΓòÉ <hidden> Protected Data - IPoint ΓòÉΓòÉΓòÉ
  8743.  
  8744. Inherited Members
  8745. IBase
  8746. recoverable
  8747. unrecoverable
  8748.  
  8749.  
  8750. ΓòÉΓòÉΓòÉ 1.30.1. IPoint::asPOINTL ΓòÉΓòÉΓòÉ
  8751.  
  8752. Renders the point as a Presentation Manager Toolkit POINTL structure. 
  8753.  
  8754. public:
  8755. struct _POINTL asPOINTL() const;
  8756.  
  8757. Platform Support 
  8758.  
  8759. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  8760. ΓöéPM          ΓöéMOTIF       Γöé
  8761. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  8762. ΓöéYes         ΓöéNo          Γöé
  8763. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  8764.  
  8765. Used in samples: 
  8766.  
  8767.      Hello World Sample - Version 5: aearthw5.cpp 
  8768.      Hello World Sample - Version 6: aearthw6.cpp 
  8769.  
  8770.  
  8771. ΓòÉΓòÉΓòÉ 1.30.2. IPoint::IPoint ΓòÉΓòÉΓòÉ
  8772.  
  8773. You can create, copy, and assign objects of this class. This class uses the 
  8774. compiler-generated copy constructor and assignment operator to copy and assign 
  8775. IPoint objects. 
  8776.  
  8777. Overload 1 
  8778.  
  8779. public:
  8780. IPoint(const struct _POINTL& ptl);
  8781.  
  8782. Platform Support 
  8783.  
  8784. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  8785. ΓöéPM          ΓöéMOTIF       Γöé
  8786. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  8787. ΓöéYes         ΓöéNo          Γöé
  8788. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  8789.  
  8790. Overload 2 
  8791.  
  8792. public:
  8793. IPoint();
  8794.  
  8795. Used in samples: 
  8796.  
  8797.      2D Bitmap Sample: 2d-bmap.cpp 
  8798.      2D Graphics Sample: 2d-draw.cpp 
  8799.      Lancelot - A Valiant Example: ltimepie.cpp 
  8800.  
  8801. Overload 3 
  8802.  
  8803. public:
  8804. IPoint(const IPair& pair);
  8805.  
  8806. Overload 4 
  8807.  
  8808. public:
  8809. IPoint(Coord x, Coord y);
  8810.  
  8811. Used in samples: 
  8812.  
  8813.      Hello World Sample - Version 5: aearthw5.cpp 
  8814.      Hello World Sample - Version 6: ahellow6.cpp 
  8815.      Tool Bar Sample 1: tbar1.cpp 
  8816.      Tool Bar Sample 2: tbar2.cpp 
  8817.      2D Graphics Sample: 2d-draw.cpp 
  8818.  
  8819.  
  8820. ΓòÉΓòÉΓòÉ 1.30.3. IPoint::setX ΓòÉΓòÉΓòÉ
  8821.  
  8822. Sets the point's X-coordinate. 
  8823.  
  8824. public:
  8825. IPoint& setX(Coord X);
  8826.  
  8827. Used in sample:   2D Graphics Sample: 2d-draw.cpp 
  8828.  
  8829.  
  8830. ΓòÉΓòÉΓòÉ 1.30.4. IPoint::setY ΓòÉΓòÉΓòÉ
  8831.  
  8832. Sets the point's Y-coordinate. 
  8833.  
  8834. public:
  8835. IPoint& setY(Coord Y);
  8836.  
  8837. Used in sample:   2D Graphics Sample: 2d-draw.cpp 
  8838.  
  8839.  
  8840. ΓòÉΓòÉΓòÉ 1.30.5. IPoint::x ΓòÉΓòÉΓòÉ
  8841.  
  8842. Returns the point's X-coordinate. 
  8843.  
  8844. public:
  8845. Coord x() const;
  8846.  
  8847. Used in samples: 
  8848.  
  8849.      2D Graphics Sample: 2d-draw.cpp 
  8850.      BIGCPP Sample: bigcpp.cpp 
  8851.      Lancelot - A Valiant Example: lmainwin.cpp 
  8852.  
  8853.  
  8854. ΓòÉΓòÉΓòÉ 1.30.6. IPoint::y ΓòÉΓòÉΓòÉ
  8855.  
  8856. Returns the point's Y-coordinate. 
  8857.  
  8858. public:
  8859. Coord y() const;
  8860.  
  8861. Used in samples: 
  8862.  
  8863.      2D Graphics Sample: 2d-draw.cpp 
  8864.      BIGCPP Sample: bigcpp.cpp 
  8865.      Lancelot - A Valiant Example: lmainwin.cpp 
  8866.  
  8867.  
  8868. ΓòÉΓòÉΓòÉ 1.31. IPointArray ΓòÉΓòÉΓòÉ
  8869.  
  8870. Description 
  8871.  
  8872. Derivation 
  8873.  
  8874. Constructors 
  8875.  
  8876. Public Functions 
  8877.  
  8878. Protected Data 
  8879.  
  8880. To close all the panels in a chapter, double click on this panel's system menu. 
  8881.  
  8882.  
  8883. ΓòÉΓòÉΓòÉ <hidden> Derivation - IPointArray ΓòÉΓòÉΓòÉ
  8884.  
  8885. IBase
  8886.   Γöé
  8887. IPointArray
  8888.  
  8889. Inherited by none. 
  8890.  
  8891.  
  8892. ΓòÉΓòÉΓòÉ <hidden> Class Description - IPointArray ΓòÉΓòÉΓòÉ
  8893.  
  8894. iptarray.hpp 
  8895.  
  8896. The IPointArray class is used to represent an array of IPoint objects. 
  8897.  
  8898.  
  8899. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IPointArray ΓòÉΓòÉΓòÉ
  8900.  
  8901. Comparisons
  8902. operator !=
  8903. operator ==
  8904.  
  8905. Constructors
  8906. IPointArray
  8907. operator =
  8908. ~IPointArray
  8909.  
  8910. Data Access
  8911. add
  8912. insert
  8913. operator []
  8914. remove
  8915. resize
  8916. reverse
  8917. reversed
  8918. size
  8919.  
  8920. Inherited Members
  8921. IBase
  8922. asDebugInfo
  8923. asString
  8924. messageFile
  8925. messageText
  8926. setMessageFile
  8927. version
  8928.  
  8929.  
  8930. ΓòÉΓòÉΓòÉ <hidden> IPointArray - Comparisons ΓòÉΓòÉΓòÉ
  8931.  
  8932. Use these members to compare two point arrays. 
  8933.  
  8934.  
  8935. ΓòÉΓòÉΓòÉ <hidden> IPointArray - Constructors ΓòÉΓòÉΓòÉ
  8936.  
  8937. You can construct, copy, and assign objects of this class. 
  8938.  
  8939.  
  8940. ΓòÉΓòÉΓòÉ <hidden> IPointArray - Data Access ΓòÉΓòÉΓòÉ
  8941.  
  8942. Use these members to access attributes of objects of this class. 
  8943.  
  8944.  
  8945. ΓòÉΓòÉΓòÉ <hidden> Protected Data - IPointArray ΓòÉΓòÉΓòÉ
  8946.  
  8947. Inherited Members
  8948. IBase
  8949. recoverable
  8950. unrecoverable
  8951.  
  8952.  
  8953. ΓòÉΓòÉΓòÉ 1.31.1. IPointArray::add ΓòÉΓòÉΓòÉ
  8954.  
  8955. Adds a point to the end of the array. 
  8956.  
  8957. public:
  8958. IPointArray& add(const IPoint& point);
  8959.  
  8960. Platform Support 
  8961.  
  8962. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  8963. ΓöéPM          ΓöéMOTIF       Γöé
  8964. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  8965. ΓöéYes         ΓöéNo          Γöé
  8966. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  8967.  
  8968.  
  8969. ΓòÉΓòÉΓòÉ 1.31.2. IPointArray::insert ΓòÉΓòÉΓòÉ
  8970.  
  8971. Inserts a point before the index specified. 
  8972.  
  8973. public:
  8974. IPointArray&
  8975.   insert( unsigned long index,
  8976.           const IPoint& point);
  8977.  
  8978. Platform Support 
  8979.  
  8980. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  8981. ΓöéPM          ΓöéMOTIF       Γöé
  8982. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  8983. ΓöéYes         ΓöéNo          Γöé
  8984. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  8985.  
  8986.  
  8987. ΓòÉΓòÉΓòÉ 1.31.3. IPointArray::IPointArray ΓòÉΓòÉΓòÉ
  8988.  
  8989. You can construct, copy, and assign objects of this class. 
  8990.  
  8991. Overload 1 
  8992.  
  8993. public:
  8994. IPointArray(const IPointArray& pointArray);
  8995.  
  8996. Use this function to construct a IPointArray object from an existing 
  8997. IPointArray object. 
  8998.  
  8999. Platform Support 
  9000.  
  9001. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  9002. ΓöéPM          ΓöéMOTIF       Γöé
  9003. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  9004. ΓöéYes         ΓöéNo          Γöé
  9005. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  9006.  
  9007. Overload 2 
  9008.  
  9009. public:
  9010. IPointArray( unsigned long dimension = 0,
  9011.              const IPoint* array = 0);
  9012.  
  9013. Use this function to construct a IPointArray object from two optional 
  9014. arguments. The first argument specifies the length of the array and the second 
  9015. argument is a pointer to an array of IPoint objects.  The array of IPoints are 
  9016. used to initialize the IPointArray object.  If a pointer to an array of IPoint 
  9017. objects is specified, it is assumed that the IPoint array has at least as many 
  9018. elements as the array dimension specified. 
  9019.  
  9020. Platform Support 
  9021.  
  9022. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  9023. ΓöéPM          ΓöéMOTIF       Γöé
  9024. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  9025. ΓöéYes         ΓöéNo          Γöé
  9026. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  9027.  
  9028. Used in samples: 
  9029.  
  9030.      2D Graphics Sample: 2d-draw.cpp 
  9031.      BIGCPP Sample: bigcpp.cpp 
  9032.  
  9033.  
  9034. ΓòÉΓòÉΓòÉ 1.31.4. IPointArray::operator != ΓòÉΓòÉΓòÉ
  9035.  
  9036. Returns true if the arrays are not the same length or the points are not 
  9037. identical or both. 
  9038.  
  9039. public:
  9040. operator !=(const IPointArray& pointArray) const;
  9041.  
  9042. Platform Support 
  9043.  
  9044. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  9045. ΓöéPM          ΓöéMOTIF       Γöé
  9046. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  9047. ΓöéYes         ΓöéNo          Γöé
  9048. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  9049.  
  9050.  
  9051. ΓòÉΓòÉΓòÉ 1.31.5. IPointArray::operator = ΓòÉΓòÉΓòÉ
  9052.  
  9053. public:
  9054. IPointArray& operator =(const IPointArray& pointArray);
  9055.  
  9056. Use this function to assign one IPointArray object to another.  The target 
  9057. IPointArray object is grown or shrunk to the size of the source IPointArray 
  9058. object. 
  9059.  
  9060. Platform Support 
  9061.  
  9062. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  9063. ΓöéPM          ΓöéMOTIF       Γöé
  9064. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  9065. ΓöéYes         ΓöéNo          Γöé
  9066. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  9067.  
  9068.  
  9069. ΓòÉΓòÉΓòÉ 1.31.6. IPointArray::operator == ΓòÉΓòÉΓòÉ
  9070.  
  9071. Returns true if the arrays are the same length and have identical points. 
  9072.  
  9073. public:
  9074. Boolean operator ==(const IPointArray& pointArray) const;
  9075.  
  9076. Platform Support 
  9077.  
  9078. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  9079. ΓöéPM          ΓöéMOTIF       Γöé
  9080. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  9081. ΓöéYes         ΓöéNo          Γöé
  9082. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  9083.  
  9084.  
  9085. ΓòÉΓòÉΓòÉ 1.31.7. IPointArray::operator [] ΓòÉΓòÉΓòÉ
  9086.  
  9087. Returns a reference to the point at the specified index. 
  9088.  
  9089. Overload 1 
  9090.  
  9091. public:
  9092. IPoint& operator [](unsigned long index);
  9093.  
  9094. Platform Support 
  9095.  
  9096. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  9097. ΓöéPM          ΓöéMOTIF       Γöé
  9098. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  9099. ΓöéYes         ΓöéNo          Γöé
  9100. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  9101.  
  9102. Overload 2 
  9103.  
  9104. public:
  9105. const IPoint& operator [](unsigned long index) const;
  9106.  
  9107. Platform Support 
  9108.  
  9109. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  9110. ΓöéPM          ΓöéMOTIF       Γöé
  9111. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  9112. ΓöéYes         ΓöéNo          Γöé
  9113. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  9114.  
  9115.  
  9116. ΓòÉΓòÉΓòÉ 1.31.8. IPointArray::remove ΓòÉΓòÉΓòÉ
  9117.  
  9118. Removes a point at the specified index. 
  9119.  
  9120. public:
  9121. IPointArray& remove(unsigned long index);
  9122.  
  9123. Platform Support 
  9124.  
  9125. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  9126. ΓöéPM          ΓöéMOTIF       Γöé
  9127. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  9128. ΓöéYes         ΓöéNo          Γöé
  9129. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  9130.  
  9131.  
  9132. ΓòÉΓòÉΓòÉ 1.31.9. IPointArray::resize ΓòÉΓòÉΓòÉ
  9133.  
  9134. Increases or decreases the size of the array.  New points are initialized to 
  9135. 0,0. 
  9136.  
  9137. public:
  9138. IPointArray& resize(unsigned long newsize);
  9139.  
  9140. Platform Support 
  9141.  
  9142. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  9143. ΓöéPM          ΓöéMOTIF       Γöé
  9144. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  9145. ΓöéYes         ΓöéNo          Γöé
  9146. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  9147.  
  9148.  
  9149. ΓòÉΓòÉΓòÉ 1.31.10. IPointArray::reverse ΓòÉΓòÉΓòÉ
  9150.  
  9151. Reverses the elements in the array. 
  9152.  
  9153. public:
  9154. IPointArray& reverse();
  9155.  
  9156. Platform Support 
  9157.  
  9158. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  9159. ΓöéPM          ΓöéMOTIF       Γöé
  9160. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  9161. ΓöéYes         ΓöéNo          Γöé
  9162. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  9163.  
  9164.  
  9165. ΓòÉΓòÉΓòÉ 1.31.11. IPointArray::reversed ΓòÉΓòÉΓòÉ
  9166.  
  9167. Returns a copy of the point array with its elements reversed. 
  9168.  
  9169. public:
  9170. IPointArray reversed() const;
  9171.  
  9172. Platform Support 
  9173.  
  9174. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  9175. ΓöéPM          ΓöéMOTIF       Γöé
  9176. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  9177. ΓöéYes         ΓöéNo          Γöé
  9178. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  9179.  
  9180.  
  9181. ΓòÉΓòÉΓòÉ 1.31.12. IPointArray::size ΓòÉΓòÉΓòÉ
  9182.  
  9183. Returns the dimension of the array. 
  9184.  
  9185. public:
  9186. unsigned long size() const;
  9187.  
  9188. Platform Support 
  9189.  
  9190. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  9191. ΓöéPM          ΓöéMOTIF       Γöé
  9192. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  9193. ΓöéYes         ΓöéNo          Γöé
  9194. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  9195.  
  9196.  
  9197. ΓòÉΓòÉΓòÉ 1.31.13. IPointArray::~IPointArray ΓòÉΓòÉΓòÉ
  9198.  
  9199. public:
  9200. ~IPointArray();
  9201.  
  9202. Platform Support 
  9203.  
  9204. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  9205. ΓöéPM          ΓöéMOTIF       Γöé
  9206. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  9207. ΓöéYes         ΓöéNo          Γöé
  9208. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  9209.  
  9210.  
  9211. ΓòÉΓòÉΓòÉ 1.32. IRange ΓòÉΓòÉΓòÉ
  9212.  
  9213. Description 
  9214.  
  9215. Derivation 
  9216.  
  9217. Constructors 
  9218.  
  9219. Public Functions 
  9220.  
  9221. Protected Data 
  9222.  
  9223. To close all the panels in a chapter, double click on this panel's system menu. 
  9224.  
  9225.  
  9226. ΓòÉΓòÉΓòÉ <hidden> Derivation - IRange ΓòÉΓòÉΓòÉ
  9227.  
  9228. IBase
  9229.   Γöé
  9230. IPair
  9231.   Γöé
  9232. IRange
  9233.  
  9234. Inherited by none. 
  9235.  
  9236.  
  9237. ΓòÉΓòÉΓòÉ <hidden> Class Description - IRange ΓòÉΓòÉΓòÉ
  9238.  
  9239. ipoint.hpp 
  9240.  
  9241. Objects of the IRange class represent a range of IPair::Coord values between a 
  9242. specified lower and upper bound (inclusive). 
  9243.  
  9244.  
  9245. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IRange ΓòÉΓòÉΓòÉ
  9246.  
  9247. Constructors
  9248. IRange
  9249.  
  9250. Coordinates
  9251. lowerBound
  9252. setLowerBound
  9253. setUpperBound
  9254. upperBound
  9255.  
  9256. Testing
  9257. includes
  9258.  
  9259. Inherited Members
  9260. IPair
  9261. asDebugInfo
  9262. asString
  9263. coord1
  9264. coord2
  9265. distanceFrom
  9266. dotProduct
  9267. maximum
  9268. minimum
  9269. operator !=
  9270. operator %=
  9271. operator *=
  9272. operator +=
  9273. operator -
  9274. operator -=
  9275. operator /=
  9276. operator <
  9277. operator <=
  9278. operator ==
  9279. operator >
  9280. operator >=
  9281. scaleBy
  9282. scaledBy
  9283. setCoord1
  9284. setCoord2
  9285. transpose
  9286.  
  9287. IBase
  9288. asDebugInfo
  9289. asString
  9290. messageFile
  9291. messageText
  9292. setMessageFile
  9293. version
  9294.  
  9295.  
  9296. ΓòÉΓòÉΓòÉ <hidden> IRange - Constructors ΓòÉΓòÉΓòÉ
  9297.  
  9298. You can construct, copy, and assign objects of this class. This class uses the 
  9299. compiler-generated copy constructor and assignment operator to copy and assign 
  9300. IRange objects. 
  9301.  
  9302.  
  9303. ΓòÉΓòÉΓòÉ <hidden> IRange - Coordinates ΓòÉΓòÉΓòÉ
  9304.  
  9305. Use these members to query and change the ordered pair of integers in an IRange 
  9306. object. 
  9307.  
  9308.  
  9309. ΓòÉΓòÉΓòÉ <hidden> IRange - Testing ΓòÉΓòÉΓòÉ
  9310.  
  9311. Use these members to test coordinate values. 
  9312.  
  9313.  
  9314. ΓòÉΓòÉΓòÉ <hidden> Protected Data - IRange ΓòÉΓòÉΓòÉ
  9315.  
  9316. Inherited Members
  9317. IBase
  9318. recoverable
  9319. unrecoverable
  9320.  
  9321.  
  9322. ΓòÉΓòÉΓòÉ 1.32.1. IRange::includes ΓòÉΓòÉΓòÉ
  9323.  
  9324. Returns true if the range contains the specified coordinate value. 
  9325.  
  9326. public:
  9327. Boolean includes(Coord aValue) const;
  9328.  
  9329.  
  9330. ΓòÉΓòÉΓòÉ 1.32.2. IRange::IRange ΓòÉΓòÉΓòÉ
  9331.  
  9332. You can construct, copy, and assign objects of this class. This class uses the 
  9333. compiler-generated copy constructor and assignment operator to copy and assign 
  9334. IRange objects. 
  9335.  
  9336. Overload 1 
  9337.  
  9338. public:
  9339. IRange(Coord lower, Coord upper);
  9340.  
  9341. Used in samples: 
  9342.  
  9343.      Magnify Sample: magnify.cpp 
  9344.      Multimedia MMSTEREO Sample: mltamp.cpp 
  9345.      Lancelot - A Valiant Example: lskill.cpp 
  9346.      Lancelot - A Valiant Example: ltimec.cpp 
  9347.  
  9348. Overload 2 
  9349.  
  9350. public:
  9351. IRange();
  9352.  
  9353. Overload 3 
  9354.  
  9355. public:
  9356. IRange(const IPair& aPair);
  9357.  
  9358.  
  9359. ΓòÉΓòÉΓòÉ 1.32.3. IRange::lowerBound ΓòÉΓòÉΓòÉ
  9360.  
  9361. Returns the lower bound of the range. 
  9362.  
  9363. public:
  9364. Coord lowerBound() const;
  9365.  
  9366.  
  9367. ΓòÉΓòÉΓòÉ 1.32.4. IRange::setLowerBound ΓòÉΓòÉΓòÉ
  9368.  
  9369. Sets the lower bound of the range. 
  9370.  
  9371. public:
  9372. IRange& setLowerBound(Coord lower);
  9373.  
  9374.  
  9375. ΓòÉΓòÉΓòÉ 1.32.5. IRange::setUpperBound ΓòÉΓòÉΓòÉ
  9376.  
  9377. Sets the upper bound of the range. 
  9378.  
  9379. public:
  9380. IRange& setUpperBound(Coord upper);
  9381.  
  9382.  
  9383. ΓòÉΓòÉΓòÉ 1.32.6. IRange::upperBound ΓòÉΓòÉΓòÉ
  9384.  
  9385. Returns the upper bound of the range. 
  9386.  
  9387. public:
  9388. Coord upperBound() const;
  9389.  
  9390.  
  9391. ΓòÉΓòÉΓòÉ 1.33. IRectangle ΓòÉΓòÉΓòÉ
  9392.  
  9393. Description 
  9394.  
  9395. Derivation 
  9396.  
  9397. Constructors 
  9398.  
  9399. Public Functions 
  9400.  
  9401. Protected Functions 
  9402.  
  9403. Protected Data 
  9404.  
  9405. Nested Types 
  9406.  
  9407. To close all the panels in a chapter, double click on this panel's system menu. 
  9408.  
  9409.  
  9410. ΓòÉΓòÉΓòÉ <hidden> Derivation - IRectangle ΓòÉΓòÉΓòÉ
  9411.  
  9412. IBase
  9413.   Γöé
  9414. IRectangle
  9415.  
  9416. Inherited by none. 
  9417.  
  9418.  
  9419. ΓòÉΓòÉΓòÉ <hidden> Class Description - IRectangle ΓòÉΓòÉΓòÉ
  9420.  
  9421. irect.hpp 
  9422.  
  9423. Objects of the IRectangle class represent a rectangular area defined by two 
  9424. points that form opposite corners of the rectangle.  These two points are 
  9425. referred to as the minimum and maximum points. 
  9426.  
  9427. IRectangle objects are designed to be usable independently of the coordinate 
  9428. system in use.  The minimum, or origin, is defined as the point with the lowest 
  9429. coordinate values.  Therefore, in a coordinate space where 0,0 is the upper 
  9430. left and increasing a point's coordinate value moves it to the right and down, 
  9431. the minimum point of an IRectangle will be the top left corner and the maximum 
  9432. corner the lower right corner.  Conversely, in a coordinate space where 0,0 is 
  9433. the lower left corner and increasing a point's coordinate value moves it to the 
  9434. right and up, the minimum corner of an IRectangle will be the lower left, and 
  9435. the maximum corner the top right. 
  9436.  
  9437. IRectangle provides some member functions which use the terms "right", "left", 
  9438. "top", and "bottom".  These are synonyms for the functions defined in terms of 
  9439. minimum and maximum corners.  The directional orientation for the 
  9440. right/left/top/bottom functions is correct for a coordinate space where 0,0 is 
  9441. the lower left corner. For other coordinate systems, left and bottom are the 
  9442. sides of the rectangle with the lowest coordinate value, and top and right the 
  9443. sides with the highest. 
  9444.  
  9445. Mathematically, a rectangle includes all the points on the lines that intersect 
  9446. its minimum corner. It does not include the points that lie on its edges that 
  9447. do not intersect the origin.  This is important when you are doing detailed 
  9448. graphics work. For example, a rectangle specified as having a minimum of 0,0 
  9449. and maximum of 10,20 will include the points 0,0 though 0,19 but will not 
  9450. include 0,20.  Similarly, the points 1,0 through 9,0 are contained but 10,0 is 
  9451. not. 
  9452.  
  9453. Various graphics and windowing classes, as well as their member functions, use 
  9454. rectangles. 
  9455.  
  9456. Presentation Manager Information 
  9457.  
  9458. You can also construct objects of this class by providing a Presentation 
  9459. Manager Toolkit RECTL structure. 
  9460.  
  9461.  
  9462. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IRectangle ΓòÉΓòÉΓòÉ
  9463.  
  9464. Comparisons
  9465. operator !=
  9466. operator ==
  9467.  
  9468. Constructors
  9469. IRectangle
  9470.  
  9471. Conversions
  9472. asDebugInfo
  9473. asRECTL
  9474. asString
  9475.  
  9476. Dimensions
  9477. area
  9478. height
  9479. maxX
  9480. maxY
  9481. minX
  9482. minY
  9483. size
  9484. width
  9485.  
  9486. Manipulation
  9487. centerAt
  9488. centeredAt
  9489. expandBy
  9490. expandedBy
  9491. moveBy
  9492. movedBy
  9493. movedTo
  9494. moveTo
  9495. scaleBy
  9496. scaledBy
  9497. shrinkBy
  9498. shrunkBy
  9499. sizeBy
  9500. sizedBy
  9501. sizedTo
  9502. sizeTo
  9503.  
  9504. Manipulation Operators
  9505. operator &
  9506. operator &=
  9507. operator |
  9508. operator |=
  9509.  
  9510. Points
  9511. centerXCenterY
  9512. centerXMaxY
  9513. centerXMinY
  9514. maxXCenterY
  9515. maxXMaxY
  9516. maxXMinY
  9517. minXCenterY
  9518. minXMaxY
  9519. minXMinY
  9520.  
  9521. Synonyms
  9522. bottom
  9523. bottomCenter
  9524. bottomLeft
  9525. bottomRight
  9526. center
  9527. left
  9528. leftCenter
  9529. right
  9530. rightCenter
  9531. top
  9532. topCenter
  9533. topLeft
  9534. topRight
  9535.  
  9536. Testing
  9537. contains
  9538. intersects
  9539.  
  9540. Inherited Members
  9541. IBase
  9542. asDebugInfo
  9543. asString
  9544. messageFile
  9545. messageText
  9546. setMessageFile
  9547. version
  9548.  
  9549.  
  9550. ΓòÉΓòÉΓòÉ <hidden> IRectangle - Comparisons ΓòÉΓòÉΓòÉ
  9551.  
  9552. Use these members to compare two rectangles for equality or inequality. 
  9553.  
  9554.  
  9555. ΓòÉΓòÉΓòÉ <hidden> IRectangle - Constructors ΓòÉΓòÉΓòÉ
  9556.  
  9557. You can construct, copy, and assign objects of this class. 
  9558.  
  9559. Note:  The User Interface Class Library constructs rectangles by taking the two 
  9560.        points that are given (or implied) as opposite corners.  The minimum 
  9561.        point, or origin, is set to be the lesser of the two points. This 
  9562.        ensures that internally the origin and corner points always are such 
  9563.        that the origin is less than or equal to the corner. 
  9564.  
  9565.  
  9566. ΓòÉΓòÉΓòÉ <hidden> IRectangle - Conversions ΓòÉΓòÉΓòÉ
  9567.  
  9568. Use these members to convert a rectangle into various formats. 
  9569.  
  9570.  
  9571. ΓòÉΓòÉΓòÉ <hidden> IRectangle - Dimensions ΓòÉΓòÉΓòÉ
  9572.  
  9573. Use these members to obtain information about a rectangle's size. 
  9574.  
  9575.  
  9576. ΓòÉΓòÉΓòÉ <hidden> IRectangle - Displaying ΓòÉΓòÉΓòÉ
  9577.  
  9578. Use these members to write a rectangle to a stream. 
  9579.  
  9580.  
  9581. ΓòÉΓòÉΓòÉ <hidden> IRectangle - Implementation ΓòÉΓòÉΓòÉ
  9582.  
  9583. These members are used internally to implement the class. 
  9584.  
  9585.  
  9586. ΓòÉΓòÉΓòÉ <hidden> IRectangle - Manipulation ΓòÉΓòÉΓòÉ
  9587.  
  9588. Use these members to modify the rectangle, changing its size, proportions, or 
  9589. location. 
  9590.  
  9591.  
  9592. ΓòÉΓòÉΓòÉ <hidden> IRectangle - Manipulation Operators ΓòÉΓòÉΓòÉ
  9593.  
  9594. Use these members to find a rectangle's union and intersection with another 
  9595. rectangle. 
  9596.  
  9597.  
  9598. ΓòÉΓòÉΓòÉ <hidden> IRectangle - Points ΓòÉΓòÉΓòÉ
  9599.  
  9600. Use these members to access points on or within the rectangle. You can query 
  9601. any of nine points on a rectangle's perimeter or its center by using these 
  9602. members. 
  9603.  
  9604.  
  9605. ΓòÉΓòÉΓòÉ <hidden> IRectangle - Synonyms ΓòÉΓòÉΓòÉ
  9606.  
  9607. Use these members when you are working in a coordinate space where 0,0 is the 
  9608. lower-left corner.  In this case the right/left/top/bottom orientation is 
  9609. correct.  You can still use these members in other coordinate systems, but left 
  9610. and bottom are the sides of the rectangle with the lowest coordinate value, and 
  9611. top and right are the sides with the highest. 
  9612.  
  9613. The following table lists the members and synonyms defined for them: 
  9614.  
  9615. Function            Synonym 
  9616. minXMinY            bottomLeft 
  9617. minXCenterY         leftCenter 
  9618. minXMaxY            topLeft 
  9619. centerXMinY         bottomCenter 
  9620. centerXCenterY      center 
  9621. centerXMaxY         topCenter 
  9622. maxXMinY            bottomRight 
  9623. maxXCenterY         rightCenter 
  9624. maxXMaxY            topRight 
  9625. minX                left 
  9626. minY                bottom 
  9627. maxX                right 
  9628. maxY                top 
  9629.  
  9630.  
  9631. ΓòÉΓòÉΓòÉ <hidden> IRectangle - Testing ΓòÉΓòÉΓòÉ
  9632.  
  9633. Use these members to test various attributes of a rectangle. 
  9634.  
  9635.  
  9636. ΓòÉΓòÉΓòÉ <hidden> Protected Functions - IRectangle ΓòÉΓòÉΓòÉ
  9637.  
  9638. Implementation
  9639. validate
  9640.  
  9641.  
  9642. ΓòÉΓòÉΓòÉ <hidden> Protected Data - IRectangle ΓòÉΓòÉΓòÉ
  9643.  
  9644. Inherited Members
  9645. IBase
  9646. recoverable
  9647. unrecoverable
  9648.  
  9649.  
  9650. ΓòÉΓòÉΓòÉ 1.33.1. IRectangle::area ΓòÉΓòÉΓòÉ
  9651.  
  9652. Returns the area of the rectangle.  The area is determined by multiplying the 
  9653. width of the rectangle by the height.  For example, a rectangle defined from 
  9654. IPoint(1,1), IPoint(10,20) would have an area of 9*19, or 171. 
  9655.  
  9656. public:
  9657. Coord area() const;
  9658.  
  9659.  
  9660. ΓòÉΓòÉΓòÉ 1.33.2. IRectangle::asDebugInfo ΓòÉΓòÉΓòÉ
  9661.  
  9662. Renders the rectangle as a diagnostic representation. 
  9663.  
  9664. public:
  9665. IString asDebugInfo() const;
  9666.  
  9667.  
  9668. ΓòÉΓòÉΓòÉ 1.33.3. IRectangle::asRECTL ΓòÉΓòÉΓòÉ
  9669.  
  9670. Converts the rectangle into a system dependent structure. 
  9671.  
  9672. public:
  9673. struct _RECTL asRECTL() const;
  9674.  
  9675. Platform Support 
  9676.  
  9677. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  9678. ΓöéPM          ΓöéMOTIF       Γöé
  9679. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  9680. ΓöéYes         ΓöéNo          Γöé
  9681. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  9682.  
  9683. Presentation Manager: Renders the rectangle as a Presentation Manager Toolkit 
  9684. RECTL structure. 
  9685.  
  9686.  
  9687. ΓòÉΓòÉΓòÉ 1.33.4. IRectangle::asString ΓòÉΓòÉΓòÉ
  9688.  
  9689. Renders the rectangle as an IString("IRectangle(x1,y1,x2,y2)"). 
  9690.  
  9691. public:
  9692. IString asString() const;
  9693.  
  9694.  
  9695. ΓòÉΓòÉΓòÉ 1.33.5. IRectangle::bottom ΓòÉΓòÉΓòÉ
  9696.  
  9697. Returns the Y-coordinate of the horizontal line that forms the bottom of the 
  9698. rectangle. This is an alias for IRectangle::minY. 
  9699.  
  9700. public:
  9701. Coord bottom() const;
  9702.  
  9703. Used in samples: 
  9704.  
  9705.      2D Graphics Sample: 2d-draw.cpp 
  9706.      Magnify Sample: magnify.cpp 
  9707.      Direct Manipulation Sample 2: dmsamp2.cpp 
  9708.      Lancelot - A Valiant Example: lgoodies.cpp 
  9709.      Lancelot - A Valiant Example: ltimepie.cpp 
  9710.  
  9711.  
  9712. ΓòÉΓòÉΓòÉ 1.33.6. IRectangle::bottomCenter ΓòÉΓòÉΓòÉ
  9713.  
  9714. Returns the X- and Y-coordinates of the bottom-center point of the rectangle. 
  9715. This is an alias for IRectangle::centerXMinY. 
  9716.  
  9717. public:
  9718. IPoint bottomCenter() const;
  9719.  
  9720.  
  9721. ΓòÉΓòÉΓòÉ 1.33.7. IRectangle::bottomLeft ΓòÉΓòÉΓòÉ
  9722.  
  9723. Returns the X- and Y-coordinates of the bottom-left corner of the rectangle 
  9724. This is an alias for IRectangle::minXMinY. 
  9725.  
  9726. public:
  9727. IPoint bottomLeft() const;
  9728.  
  9729. Used in samples: 
  9730.  
  9731.      Hello World Sample - Version 4: adialog4.cpp 
  9732.      Hello World Sample - Version 5: adialog5.cpp 
  9733.      Hello World Sample - Version 6: adialog6.cpp 
  9734.      2D Graphics Sample: 2d-menu.cpp 
  9735.      BIGCPP Sample: bigcpp.cpp 
  9736.  
  9737.  
  9738. ΓòÉΓòÉΓòÉ 1.33.8. IRectangle::bottomRight ΓòÉΓòÉΓòÉ
  9739.  
  9740. Returns the X- and Y-coordinates of the bottom-right corner of the rectangle. 
  9741. This is an alias for IRectangle::maxXMinY. 
  9742.  
  9743. public:
  9744. IPoint bottomRight() const;
  9745.  
  9746. Used in sample:   BIGCPP Sample: bigcpp.cpp 
  9747.  
  9748.  
  9749. ΓòÉΓòÉΓòÉ 1.33.9. IRectangle::center ΓòÉΓòÉΓòÉ
  9750.  
  9751. Returns the X- and Y-coordinates of the center point of the rectangle. This is 
  9752. an alias for IRectangle::centerXCenterY. 
  9753.  
  9754. public:
  9755. IPoint center() const;
  9756.  
  9757. Used in samples: 
  9758.  
  9759.      Hello World Sample - Version 5: aearthw5.cpp 
  9760.      Hello World Sample - Version 6: aearthw6.cpp 
  9761.      2D Graphics Sample: 2d-draw.cpp 
  9762.      BIGCPP Sample: bigcpp.cpp 
  9763.      Lancelot - A Valiant Example: lgoodies.cpp 
  9764.  
  9765.  
  9766. ΓòÉΓòÉΓòÉ 1.33.10. IRectangle::centerAt ΓòÉΓòÉΓòÉ
  9767.  
  9768. Moves the rectangle so that its center is at the specified point. 
  9769.  
  9770. public:
  9771. IRectangle& centerAt(const IPoint& point);
  9772.  
  9773. Used in samples: 
  9774.  
  9775.      2D Graphics Sample: 2d-draw.cpp 
  9776.      Magnify Sample: magnify.cpp 
  9777.      Lancelot - A Valiant Example: lgoodies.cpp 
  9778.  
  9779.  
  9780. ΓòÉΓòÉΓòÉ 1.33.11. IRectangle::centeredAt ΓòÉΓòÉΓòÉ
  9781.  
  9782. Same as IRectangle::centerAt, but returns a new rectangle, leaving the original 
  9783. unmodified. 
  9784.  
  9785. public:
  9786. IRectangle centeredAt(const IPoint& point) const;
  9787.  
  9788.  
  9789. ΓòÉΓòÉΓòÉ 1.33.12. IRectangle::centerXCenterY ΓòÉΓòÉΓòÉ
  9790.  
  9791. Returns the X- and Y-coordinates of the center point of the rectangle. 
  9792.  
  9793. public:
  9794. IPoint centerXCenterY() const;
  9795.  
  9796. Platform Support 
  9797.  
  9798. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  9799. ΓöéPM          ΓöéMOTIF       Γöé
  9800. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  9801. ΓöéYes         ΓöéNo          Γöé
  9802. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  9803.  
  9804.  
  9805. ΓòÉΓòÉΓòÉ 1.33.13. IRectangle::centerXMaxY ΓòÉΓòÉΓòÉ
  9806.  
  9807. Returns the X- and Y-coordinates of the center point of the horizontal line 
  9808. opposite the origin of the rectangle. 
  9809.  
  9810. public:
  9811. IPoint centerXMaxY() const;
  9812.  
  9813. Platform Support 
  9814.  
  9815. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  9816. ΓöéPM          ΓöéMOTIF       Γöé
  9817. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  9818. ΓöéYes         ΓöéNo          Γöé
  9819. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  9820.  
  9821.  
  9822. ΓòÉΓòÉΓòÉ 1.33.14. IRectangle::centerXMinY ΓòÉΓòÉΓòÉ
  9823.  
  9824. Returns the X- and Y-coordinates of the center point of the horizontal line 
  9825. passing through the origin of the rectangle. 
  9826.  
  9827. public:
  9828. IPoint centerXMinY() const;
  9829.  
  9830. Platform Support 
  9831.  
  9832. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  9833. ΓöéPM          ΓöéMOTIF       Γöé
  9834. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  9835. ΓöéYes         ΓöéNo          Γöé
  9836. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  9837.  
  9838.  
  9839. ΓòÉΓòÉΓòÉ 1.33.15. IRectangle::contains ΓòÉΓòÉΓòÉ
  9840.  
  9841. If the rectangle contains the specified point or rectangle, true is returned. A 
  9842. point is contained by a rectangle if its coordinates are greater than or equal 
  9843. to the minimum point of the rectangle and less than the maximum point. A 
  9844. rectangle is contained within another rectangle if its minimum point is greater 
  9845. than or equal to the containing rectangle's minimum point and its maximum point 
  9846. is less than or equal to the containing rectangle's maximum point. 
  9847.  
  9848. Overload 1 
  9849.  
  9850. public:
  9851. Boolean contains(const IRectangle& rectangle) const;
  9852.  
  9853. Overload 2 
  9854.  
  9855. public:
  9856. Boolean contains(const IPoint& point) const;
  9857.  
  9858.  
  9859. ΓòÉΓòÉΓòÉ 1.33.16. IRectangle::expandBy ΓòÉΓòÉΓòÉ
  9860.  
  9861. Moves the corners of the rectangle outward from the center by the specified 
  9862. amount. The specified amount can be either a scalar (long integer) or a point. 
  9863.  
  9864. Overload 1 
  9865.  
  9866. public:
  9867. IRectangle& expandBy(const IPair& pair);
  9868.  
  9869. Overload 2 
  9870.  
  9871. public:
  9872. IRectangle& expandBy(Coord coord);
  9873.  
  9874. Used in samples: 
  9875.  
  9876.      2D Graphics Sample: 2d-draw.cpp 
  9877.      BIGCPP Sample: bigcpp.cpp 
  9878.  
  9879.  
  9880. ΓòÉΓòÉΓòÉ 1.33.17. IRectangle::expandedBy ΓòÉΓòÉΓòÉ
  9881.  
  9882. Same as IRectangle::expandBy, but returns a new rectangle, leaving the original 
  9883. unmodified. 
  9884.  
  9885. Overload 1 
  9886.  
  9887. public:
  9888. IRectangle expandedBy(const IPair& pair) const;
  9889.  
  9890. Overload 2 
  9891.  
  9892. public:
  9893. IRectangle expandedBy(Coord coord) const;
  9894.  
  9895.  
  9896. ΓòÉΓòÉΓòÉ 1.33.18. IRectangle::height ΓòÉΓòÉΓòÉ
  9897.  
  9898. Returns the height of the rectangle.  The height is determined by subtracting 
  9899. the y coordinate of the minimum point from the y coordinate of the maximum 
  9900. point. 
  9901.  
  9902. public:
  9903. Coord height() const;
  9904.  
  9905. Used in samples: 
  9906.  
  9907.      Hello World Sample - Version 5: aearthw5.cpp 
  9908.      Hello World Sample - Version 6: aearthw6.cpp 
  9909.      Tool Bar Sample 2: tbar2.cpp 
  9910.      2D Graphics Sample: 2d-menu.cpp 
  9911.      Direct Manipulation Sample 2: dmsamp2.cpp 
  9912.  
  9913.  
  9914. ΓòÉΓòÉΓòÉ 1.33.19. IRectangle::intersects ΓòÉΓòÉΓòÉ
  9915.  
  9916. If the rectangle and specified rectangle overlap, true is returned. 
  9917.  
  9918. public:
  9919. Boolean intersects(const IRectangle& rectangle) const;
  9920.  
  9921.  
  9922. ΓòÉΓòÉΓòÉ 1.33.20. IRectangle::IRectangle ΓòÉΓòÉΓòÉ
  9923.  
  9924. You can construct, copy, and assign objects of this class. 
  9925.  
  9926. Note:  The User Interface Class Library constructs rectangles by taking the two 
  9927.        points that are given (or implied) as opposite corners.  The minimum 
  9928.        point, or origin, is set to be the lesser of the two points. This 
  9929.        ensures that internally the origin and corner points always are such 
  9930.        that the origin is less than or equal to the corner. 
  9931.  
  9932. Overload 1 
  9933.  
  9934. public:
  9935. IRectangle(Coord width, Coord height);
  9936.  
  9937. Constructs a rectangle of the specified size.  The size is specified as 
  9938.  
  9939. width 
  9940.           The width of the rectangle. 
  9941.  
  9942. height 
  9943.           The height of the rectangle. 
  9944.  
  9945. Overload 2 
  9946.  
  9947. public:
  9948. IRectangle();
  9949.  
  9950. Constructs a rectangle at (0,0),(0,0). 
  9951.  
  9952. Used in samples: 
  9953.  
  9954.      Hello World Sample - Version 5: ahellow5.cpp 
  9955.      Hello World Sample - Version 6: ahellow6.cpp 
  9956.      List Box Sample: alistbox.cpp 
  9957.      2D Bitmap Sample: 2d-bmap.cpp 
  9958.      Message Box Sample: msgbox.cpp 
  9959.  
  9960. Overload 3 
  9961.  
  9962. public:
  9963. IRectangle(const IPoint& point1, const IPoint& point2);
  9964.  
  9965. Constructs a rectangle from two points at opposite corners. 
  9966.  
  9967. Used in samples: 
  9968.  
  9969.      2D Graphics Sample: 2d-draw.cpp 
  9970.      BIGCPP Sample: bigcpp.cpp 
  9971.      Direct Manipulation Sample 2: dmsamp2.cpp 
  9972.      Lancelot - A Valiant Example: lmainwin.cpp 
  9973.  
  9974. Overload 4 
  9975.  
  9976. public:
  9977. IRectangle(const IPoint& point, const ISize& size);
  9978.  
  9979. Creates a rectangle from a point and size.  The maximum point is calculated by 
  9980. adding the width of the size to the x coordinate of the given point and adding 
  9981. the height of the size to the y coordinate of the given point. 
  9982.  
  9983. Used in samples: 
  9984.  
  9985.      Hello World Sample - Version 5: aearthw5.cpp 
  9986.      Hello World Sample - Version 6: aearthw6.cpp 
  9987.      2D Bitmap Sample: 2d-bmap.cpp 
  9988.      Tool Bar Sample 1: tbar1.cpp 
  9989.      Tool Bar Sample 2: tbar2.cpp 
  9990.  
  9991. Overload 5 
  9992.  
  9993. public:
  9994. IRectangle( Coord point1X,
  9995.             Coord point1Y,
  9996.             Coord point2X,
  9997.             Coord point2Y);
  9998.  
  9999. Constructs a rectangle from four values representing coordinates of the 
  10000. corners. 
  10001.  
  10002. point1X 
  10003.           The X coordinate of point 1. 
  10004.  
  10005. point1Y 
  10006.           The Y coordinate of point 1. 
  10007.  
  10008. point2X 
  10009.           The X coordinate of point 2. 
  10010.  
  10011. point2Y 
  10012.           The Y coordinate of point 2. 
  10013.  
  10014. Used in samples: 
  10015.  
  10016.      Hello World Sample - Version 4: adialog4.cpp 
  10017.      Hello World Sample - Version 5: adialog5.cpp 
  10018.      Hello World Sample - Version 6: adialog6.cpp 
  10019.      Magnify Sample: magnify.cpp 
  10020.      Multimedia MMSTEREO Sample: mmstereo.cpp 
  10021.  
  10022. Overload 6 
  10023.  
  10024. public:
  10025. IRectangle(const struct _RECTL& rectl);
  10026.  
  10027. Constructs a rectangle from a PM toolkit RECTL structure. 
  10028.  
  10029. Platform Support 
  10030.  
  10031. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  10032. ΓöéPM          ΓöéMOTIF       Γöé
  10033. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10034. ΓöéYes         ΓöéNo          Γöé
  10035. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  10036.  
  10037. Overload 8 
  10038.  
  10039. public:
  10040. IRectangle(const IPair& pair);
  10041.  
  10042. Constructs a rectangle with corners at 0,0 and the specified location.  The 
  10043. lower of aPair and 0,0 will be the origin of the rectangle. 
  10044.  
  10045.  
  10046. ΓòÉΓòÉΓòÉ 1.33.21. IRectangle::left ΓòÉΓòÉΓòÉ
  10047.  
  10048. Returns the X-coordinate of the vertical line that forms the left side of the 
  10049. rectangle. This is an alias for IRectangle::minX. 
  10050.  
  10051. public:
  10052. Coord left() const;
  10053.  
  10054. Used in samples: 
  10055.  
  10056.      2D Graphics Sample: 2d-draw.cpp 
  10057.      Magnify Sample: magnify.cpp 
  10058.      Direct Manipulation Sample 2: dmsamp2.cpp 
  10059.      Lancelot - A Valiant Example: lmainwin.cpp 
  10060.  
  10061.  
  10062. ΓòÉΓòÉΓòÉ 1.33.22. IRectangle::leftCenter ΓòÉΓòÉΓòÉ
  10063.  
  10064. Returns the X- and Y-coordinates of the left-center point of the rectangle. 
  10065. This is an alias for IRectangle::minXCenterY. 
  10066.  
  10067. public:
  10068. IPoint leftCenter() const;
  10069.  
  10070. Used in samples: 
  10071.  
  10072.      Hello World Sample - Version 5: aearthw5.cpp 
  10073.      Hello World Sample - Version 6: aearthw6.cpp 
  10074.      2D Graphics Sample: 2d-menu.cpp 
  10075.  
  10076.  
  10077. ΓòÉΓòÉΓòÉ 1.33.23. IRectangle::maxX ΓòÉΓòÉΓòÉ
  10078.  
  10079. Returns the X-coordinate of the vertical line that is opposite the origin of 
  10080. the rectangle. 
  10081.  
  10082. public:
  10083. Coord maxX() const;
  10084.  
  10085. Platform Support 
  10086.  
  10087. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  10088. ΓöéPM          ΓöéMOTIF       Γöé
  10089. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10090. ΓöéYes         ΓöéNo          Γöé
  10091. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  10092.  
  10093.  
  10094. ΓòÉΓòÉΓòÉ 1.33.24. IRectangle::maxXCenterY ΓòÉΓòÉΓòÉ
  10095.  
  10096. Returns the X- and Y-coordinates of the center point of the vertical line 
  10097. opposite the origin of the rectangle. 
  10098.  
  10099. public:
  10100. IPoint maxXCenterY() const;
  10101.  
  10102. Platform Support 
  10103.  
  10104. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  10105. ΓöéPM          ΓöéMOTIF       Γöé
  10106. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10107. ΓöéYes         ΓöéNo          Γöé
  10108. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  10109.  
  10110.  
  10111. ΓòÉΓòÉΓòÉ 1.33.25. IRectangle::maxXMaxY ΓòÉΓòÉΓòÉ
  10112.  
  10113. Returns the X- and Y-coordinates of the corner of the rectangle opposite the 
  10114. origin. 
  10115.  
  10116. public:
  10117. IPoint maxXMaxY() const;
  10118.  
  10119. Platform Support 
  10120.  
  10121. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  10122. ΓöéPM          ΓöéMOTIF       Γöé
  10123. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10124. ΓöéYes         ΓöéNo          Γöé
  10125. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  10126.  
  10127.  
  10128. ΓòÉΓòÉΓòÉ 1.33.26. IRectangle::maxXMinY ΓòÉΓòÉΓòÉ
  10129.  
  10130. Returns the X- and Y-coordinates of the corner of the rectangle at the other 
  10131. end of the horizontal line passing though the origin. 
  10132.  
  10133. public:
  10134. IPoint maxXMinY() const;
  10135.  
  10136. Platform Support 
  10137.  
  10138. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  10139. ΓöéPM          ΓöéMOTIF       Γöé
  10140. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10141. ΓöéYes         ΓöéNo          Γöé
  10142. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  10143.  
  10144.  
  10145. ΓòÉΓòÉΓòÉ 1.33.27. IRectangle::maxY ΓòÉΓòÉΓòÉ
  10146.  
  10147. Returns the Y-coordinate of the horizontal line opposite the origin. 
  10148.  
  10149. public:
  10150. Coord maxY() const;
  10151.  
  10152. Platform Support 
  10153.  
  10154. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  10155. ΓöéPM          ΓöéMOTIF       Γöé
  10156. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10157. ΓöéYes         ΓöéNo          Γöé
  10158. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  10159.  
  10160.  
  10161. ΓòÉΓòÉΓòÉ 1.33.28. IRectangle::minX ΓòÉΓòÉΓòÉ
  10162.  
  10163. Returns the X-coordinate of the vertical line that passes though the origin. 
  10164.  
  10165. public:
  10166. Coord minX() const;
  10167.  
  10168. Platform Support 
  10169.  
  10170. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  10171. ΓöéPM          ΓöéMOTIF       Γöé
  10172. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10173. ΓöéYes         ΓöéNo          Γöé
  10174. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  10175.  
  10176.  
  10177. ΓòÉΓòÉΓòÉ 1.33.29. IRectangle::minXCenterY ΓòÉΓòÉΓòÉ
  10178.  
  10179. Returns the X- and Y-coordinates of the center of the vertical line that passes 
  10180. through the origin. 
  10181.  
  10182. public:
  10183. IPoint minXCenterY() const;
  10184.  
  10185. Platform Support 
  10186.  
  10187. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  10188. ΓöéPM          ΓöéMOTIF       Γöé
  10189. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10190. ΓöéYes         ΓöéNo          Γöé
  10191. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  10192.  
  10193.  
  10194. ΓòÉΓòÉΓòÉ 1.33.30. IRectangle::minXMaxY ΓòÉΓòÉΓòÉ
  10195.  
  10196. Returns the X- and Y-coordinates of the corner of the rectangle at the other 
  10197. end of the vertical line passing though the origin. 
  10198.  
  10199. public:
  10200. IPoint minXMaxY() const;
  10201.  
  10202. Platform Support 
  10203.  
  10204. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  10205. ΓöéPM          ΓöéMOTIF       Γöé
  10206. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10207. ΓöéYes         ΓöéNo          Γöé
  10208. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  10209.  
  10210.  
  10211. ΓòÉΓòÉΓòÉ 1.33.31. IRectangle::minXMinY ΓòÉΓòÉΓòÉ
  10212.  
  10213. Returns the X- and Y-coordinates of the origin corner of the rectangle. 
  10214.  
  10215. public:
  10216. IPoint minXMinY() const;
  10217.  
  10218. Platform Support 
  10219.  
  10220. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  10221. ΓöéPM          ΓöéMOTIF       Γöé
  10222. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10223. ΓöéYes         ΓöéNo          Γöé
  10224. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  10225.  
  10226.  
  10227. ΓòÉΓòÉΓòÉ 1.33.32. IRectangle::minY ΓòÉΓòÉΓòÉ
  10228.  
  10229. Returns the Y-coordinate of the horizontal line that passes though the origin 
  10230. of the rectangle. 
  10231.  
  10232. public:
  10233. Coord minY() const;
  10234.  
  10235. Platform Support 
  10236.  
  10237. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  10238. ΓöéPM          ΓöéMOTIF       Γöé
  10239. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  10240. ΓöéYes         ΓöéNo          Γöé
  10241. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  10242.  
  10243.  
  10244. ΓòÉΓòÉΓòÉ 1.33.33. IRectangle::moveBy ΓòÉΓòÉΓòÉ
  10245.  
  10246. Moves the rectangle by the amount specified by aPair. 
  10247.  
  10248. public:
  10249. IRectangle& moveBy(const IPair& pair);
  10250.  
  10251. Used in samples: 
  10252.  
  10253.      Hello World Sample - Version 4: adialog4.cpp 
  10254.      Hello World Sample - Version 5: adialog5.cpp 
  10255.      Hello World Sample - Version 5: aearthw5.cpp 
  10256.      Hello World Sample - Version 6: adialog6.cpp 
  10257.      Hello World Sample - Version 6: aearthw6.cpp 
  10258.  
  10259.  
  10260. ΓòÉΓòÉΓòÉ 1.33.34. IRectangle::movedBy ΓòÉΓòÉΓòÉ
  10261.  
  10262. Same as IRectangle::moveBy, but returns a new rectangle, leaving the original 
  10263. unmodified. 
  10264.  
  10265. public:
  10266. IRectangle movedBy(const IPair& pair) const;
  10267.  
  10268.  
  10269. ΓòÉΓòÉΓòÉ 1.33.35. IRectangle::movedTo ΓòÉΓòÉΓòÉ
  10270.  
  10271. Same as IRectangle::moveTo, but returns a new rectangle, leaving the original 
  10272. unmodified. 
  10273.  
  10274. public:
  10275. IRectangle movedTo(const IPoint& point) const;
  10276.  
  10277.  
  10278. ΓòÉΓòÉΓòÉ 1.33.36. IRectangle::moveTo ΓòÉΓòÉΓòÉ
  10279.  
  10280. Moves the rectangle so that its origin corner is at the specified point. 
  10281.  
  10282. public:
  10283. IRectangle& moveTo(const IPoint& point);
  10284.  
  10285. Used in samples: 
  10286.  
  10287.      Tool Bar Sample 2: tbar2.cpp 
  10288.      2D Graphics Sample: 2d-draw.cpp 
  10289.      Magnify Sample: magnify.cpp 
  10290.  
  10291.  
  10292. ΓòÉΓòÉΓòÉ 1.33.37. IRectangle::operator != ΓòÉΓòÉΓòÉ
  10293.  
  10294. If the rectangles differ, true is returned. 
  10295.  
  10296. public:
  10297. Boolean operator !=(const IRectangle& rectangle) const;
  10298.  
  10299.  
  10300. ΓòÉΓòÉΓòÉ 1.33.38. IRectangle::operator & ΓòÉΓòÉΓòÉ
  10301.  
  10302. Returns a rectangle representing the intersection of the specified rectangles. 
  10303.  
  10304. public:
  10305. IRectangle operator &(const IRectangle& rectangle) const;
  10306.  
  10307.  
  10308. ΓòÉΓòÉΓòÉ 1.33.39. IRectangle::operator &= ΓòÉΓòÉΓòÉ
  10309.  
  10310. Resets the rectangle to its intersection with the specified rectangle. 
  10311.  
  10312. public:
  10313. IRectangle& operator &=(const IRectangle& rectangle);
  10314.  
  10315.  
  10316. ΓòÉΓòÉΓòÉ 1.33.40. IRectangle::operator == ΓòÉΓòÉΓòÉ
  10317.  
  10318. If the two rectangles are identical, true is returned.  Identity of rectangles 
  10319. means that the two defining points are the same. 
  10320.  
  10321. public:
  10322. Boolean operator ==(const IRectangle& rectangle) const;
  10323.  
  10324.  
  10325. ΓòÉΓòÉΓòÉ 1.33.41. IRectangle::operator | ΓòÉΓòÉΓòÉ
  10326.  
  10327. Returns the rectangle representing the union of the specified rectangles. This 
  10328. is the smallest rectangle that encompasses both specified rectangles. 
  10329.  
  10330. public:
  10331. IRectangle operator |(const IRectangle& rectangle) const;
  10332.  
  10333.  
  10334. ΓòÉΓòÉΓòÉ 1.33.42. IRectangle::operator |= ΓòÉΓòÉΓòÉ
  10335.  
  10336. Resets the rectangle to its union with the specified rectangle. 
  10337.  
  10338. public:
  10339. IRectangle& operator |=(const IRectangle& rectangle);
  10340.  
  10341.  
  10342. ΓòÉΓòÉΓòÉ 1.33.43. IRectangle::right ΓòÉΓòÉΓòÉ
  10343.  
  10344. Returns the X-coordinate of the vertical line that forms the right side of the 
  10345. rectangle. This is an alias for IRectangle::maxX. 
  10346.  
  10347. public:
  10348. Coord right() const;
  10349.  
  10350. Used in samples: 
  10351.  
  10352.      2D Graphics Sample: 2d-draw.cpp 
  10353.      BIGCPP Sample: bigcpp.cpp 
  10354.      Magnify Sample: magnify.cpp 
  10355.      Lancelot - A Valiant Example: lgoodies.cpp 
  10356.      Lancelot - A Valiant Example: ltimepie.cpp 
  10357.  
  10358.  
  10359. ΓòÉΓòÉΓòÉ 1.33.44. IRectangle::rightCenter ΓòÉΓòÉΓòÉ
  10360.  
  10361. Returns the X- and Y-coordinates of the right-center point of the rectangle. 
  10362. This is an alias for IRectangle::maxXCenterY. 
  10363.  
  10364. public:
  10365. IPoint rightCenter() const;
  10366.  
  10367. Used in samples: 
  10368.  
  10369.      Hello World Sample - Version 5: aearthw5.cpp 
  10370.      Hello World Sample - Version 6: aearthw6.cpp 
  10371.      2D Graphics Sample: 2d-menu.cpp 
  10372.  
  10373.  
  10374. ΓòÉΓòÉΓòÉ 1.33.45. IRectangle::scaleBy ΓòÉΓòÉΓòÉ
  10375.  
  10376. Scales the rectangle by the specified amount.  Scaling a rectangle multiplies 
  10377. its coordinates by the scale amount. 
  10378.  
  10379. Overload 1 
  10380.  
  10381. public:
  10382. IRectangle& scaleBy(double factor);
  10383.  
  10384. Scales by a double value. 
  10385.  
  10386. Overload 2 
  10387.  
  10388. public:
  10389. IRectangle& scaleBy(const IPair& pair);
  10390.  
  10391. Scales by a point specifying the amounts in the X- and Y-axis directions. 
  10392.  
  10393. Overload 3 
  10394.  
  10395. public:
  10396. IRectangle& scaleBy(Coord coord);
  10397.  
  10398. Scales by a long integer value. 
  10399.  
  10400. Overload 4 
  10401.  
  10402. public:
  10403. IRectangle& scaleBy(double xfactor, double yfactor);
  10404.  
  10405. Scales by a pair of doubles. The function uses the first double to scale in the 
  10406. X-axis direction, the second in the Y-axis direction. 
  10407.  
  10408.  
  10409. ΓòÉΓòÉΓòÉ 1.33.46. IRectangle::scaledBy ΓòÉΓòÉΓòÉ
  10410.  
  10411. Same as IRectangle::scaleBy, but returns a new rectangle, leaving the original 
  10412. unmodified. 
  10413.  
  10414. Overload 1 
  10415.  
  10416. public:
  10417. IRectangle scaledBy(const IPair& pair) const;
  10418.  
  10419. Overload 2 
  10420.  
  10421. public:
  10422. IRectangle scaledBy(Coord coord) const;
  10423.  
  10424. Overload 3 
  10425.  
  10426. public:
  10427. IRectangle scaledBy(double factor) const;
  10428.  
  10429. Overload 4 
  10430.  
  10431. public:
  10432. IRectangle scaledBy(double xfactor, double yfactor) const;
  10433.  
  10434.  
  10435. ΓòÉΓòÉΓòÉ 1.33.47. IRectangle::shrinkBy ΓòÉΓòÉΓòÉ
  10436.  
  10437. Moves the corners of the rectangle inward toward the center by the specified 
  10438. amount, either a scalar or a point. 
  10439.  
  10440. Note:  shrinkBy(anAmount) is always equivalent to expandBy(- anAmount), and 
  10441.        vice versa. 
  10442.  
  10443. Overload 1 
  10444.  
  10445. public:
  10446. IRectangle& shrinkBy(Coord coord);
  10447.  
  10448. Used in samples: 
  10449.  
  10450.      2D Bitmap Sample: 2d-bmap.cpp 
  10451.      BIGCPP Sample: bigcpp.cpp 
  10452.  
  10453. Overload 2 
  10454.  
  10455. public:
  10456. IRectangle& shrinkBy(const IPair& pair);
  10457.  
  10458.  
  10459. ΓòÉΓòÉΓòÉ 1.33.48. IRectangle::shrunkBy ΓòÉΓòÉΓòÉ
  10460.  
  10461. Same as IRectangle::shrinkBy, but returns a new rectangle, leaving the original 
  10462. unmodified. 
  10463.  
  10464. Overload 1 
  10465.  
  10466. public:
  10467. IRectangle shrunkBy(const IPair& pair) const;
  10468.  
  10469. Overload 2 
  10470.  
  10471. public:
  10472. IRectangle shrunkBy(Coord coord) const;
  10473.  
  10474.  
  10475. ΓòÉΓòÉΓòÉ 1.33.49. IRectangle::size ΓòÉΓòÉΓòÉ
  10476.  
  10477. Returns the ISize(width, height). 
  10478.  
  10479. public:
  10480. ISize size() const;
  10481.  
  10482. Used in samples: 
  10483.  
  10484.      Hello World Sample - Version 5: aearthw5.cpp 
  10485.      Hello World Sample - Version 6: aearthw6.cpp 
  10486.      2D Graphics Sample: 2d-draw.cpp 
  10487.      BIGCPP Sample: bigcpp.cpp 
  10488.  
  10489.  
  10490. ΓòÉΓòÉΓòÉ 1.33.50. IRectangle::sizeBy ΓòÉΓòÉΓòÉ
  10491.  
  10492. Scales the rectangle by the specified value, leaving the rectangle at the same 
  10493. location because the bottom-left point remains fixed. 
  10494.  
  10495. Overload 1 
  10496.  
  10497. public:
  10498. IRectangle& sizeBy(double xfactor, double yfactor);
  10499.  
  10500. Scales by two doubles specifying factors in the X-axis and Y-axis directions, 
  10501. respectively. 
  10502.  
  10503. Overload 2 
  10504.  
  10505. public:
  10506. IRectangle& sizeBy(const IPair& pair);
  10507.  
  10508. Scales by a pair of integer scalars specifying different factors in the X-axis 
  10509. and Y-axis directions. 
  10510.  
  10511. Overload 3 
  10512.  
  10513. public:
  10514. IRectangle& sizeBy(Coord factor);
  10515.  
  10516. Scales by the same integer factor in both the X-axis and Y-axis directions. 
  10517.  
  10518. Overload 4 
  10519.  
  10520. public:
  10521. IRectangle& sizeBy(double factor);
  10522.  
  10523. Scales by the same double factor in both the X-axis and Y-axis directions. 
  10524.  
  10525.  
  10526. ΓòÉΓòÉΓòÉ 1.33.51. IRectangle::sizedBy ΓòÉΓòÉΓòÉ
  10527.  
  10528. Same as IRectangle::sizeBy, but returns a new rectangle, leaving the original 
  10529. unmodified. 
  10530.  
  10531. Overload 1 
  10532.  
  10533. public:
  10534. IRectangle sizedBy(double factor) const;
  10535.  
  10536. Overload 2 
  10537.  
  10538. public:
  10539. IRectangle sizedBy(const IPair& pair) const;
  10540.  
  10541. Overload 3 
  10542.  
  10543. public:
  10544. IRectangle sizedBy(Coord factor) const;
  10545.  
  10546. Overload 4 
  10547.  
  10548. public:
  10549. IRectangle sizedBy(double xfactor, double yfactor) const;
  10550.  
  10551.  
  10552. ΓòÉΓòÉΓòÉ 1.33.52. IRectangle::sizedTo ΓòÉΓòÉΓòÉ
  10553.  
  10554. Same as IRectangle::sizeTo, but returns a new rectangle, leaving the original 
  10555. unmodified. 
  10556.  
  10557. public:
  10558. IRectangle sizedTo(const IPair& pair) const;
  10559.  
  10560.  
  10561. ΓòÉΓòÉΓòÉ 1.33.53. IRectangle::sizeTo ΓòÉΓòÉΓòÉ
  10562.  
  10563. Sizes the rectangle to the specified size. 
  10564.  
  10565. public:
  10566. IRectangle& sizeTo(const IPair& pair);
  10567.  
  10568. Used in samples: 
  10569.  
  10570.      Tool Bar Sample 2: tbar2.cpp 
  10571.      2D Graphics Sample: 2d-draw.cpp 
  10572.  
  10573.  
  10574. ΓòÉΓòÉΓòÉ 1.33.54. IRectangle::top ΓòÉΓòÉΓòÉ
  10575.  
  10576. Returns the Y-coordinate of the horizontal line that forms the top of the 
  10577. rectangle. This is an alias for IRectangle::maxY. 
  10578.  
  10579. public:
  10580. Coord top() const;
  10581.  
  10582. Used in samples: 
  10583.  
  10584.      2D Graphics Sample: 2d-draw.cpp 
  10585.      Magnify Sample: magnify.cpp 
  10586.      Lancelot - A Valiant Example: lmainwin.cpp 
  10587.      Lancelot - A Valiant Example: ltimepie.cpp 
  10588.      Lancelot - A Valiant Example: lperswin.cpp 
  10589.  
  10590.  
  10591. ΓòÉΓòÉΓòÉ 1.33.55. IRectangle::topCenter ΓòÉΓòÉΓòÉ
  10592.  
  10593. Returns the X- and Y-coordinates of the top-center point of the rectangle. This 
  10594. is an alias for IRectangle::centerXMaxY. 
  10595.  
  10596. public:
  10597. IPoint topCenter() const;
  10598.  
  10599. Used in samples: 
  10600.  
  10601.      Hello World Sample - Version 5: aearthw5.cpp 
  10602.      Hello World Sample - Version 6: aearthw6.cpp 
  10603.  
  10604.  
  10605. ΓòÉΓòÉΓòÉ 1.33.56. IRectangle::topLeft ΓòÉΓòÉΓòÉ
  10606.  
  10607. Returns the X- and Y-coordinates of the top-left corner of the rectangle. This 
  10608. is an alias for IRectangle::minXMaxY. 
  10609.  
  10610. public:
  10611. IPoint topLeft() const;
  10612.  
  10613. Used in sample:   BIGCPP Sample: bigcpp.cpp 
  10614.  
  10615.  
  10616. ΓòÉΓòÉΓòÉ 1.33.57. IRectangle::topRight ΓòÉΓòÉΓòÉ
  10617.  
  10618. Returns the X- and Y-coordinates of the top-right corner of the rectangle. This 
  10619. is an alias for IRectangle::maxXMaxY. 
  10620.  
  10621. public:
  10622. IPoint topRight() const;
  10623.  
  10624. Used in samples: 
  10625.  
  10626.      2D Graphics Sample: 2d-menu.cpp 
  10627.      BIGCPP Sample: bigcpp.cpp 
  10628.  
  10629.  
  10630. ΓòÉΓòÉΓòÉ 1.33.58. IRectangle::validate ΓòÉΓòÉΓòÉ
  10631.  
  10632. Corrects an invalid rectangle after creation, expansion, or intersection. 
  10633.  
  10634. protected:
  10635. IRectangle& validate();
  10636.  
  10637.  
  10638. ΓòÉΓòÉΓòÉ 1.33.59. IRectangle::width ΓòÉΓòÉΓòÉ
  10639.  
  10640. Returns the width of the rectangle.  The width is determined by subtracting the 
  10641. x coordinate of the minimum point from the x coordinate of the maximum point. 
  10642.  
  10643. public:
  10644. Coord width() const;
  10645.  
  10646. Used in samples: 
  10647.  
  10648.      Tool Bar Sample 2: tbar2.cpp 
  10649.      Direct Manipulation Sample 2: dmsamp2.cpp 
  10650.  
  10651.  
  10652. ΓòÉΓòÉΓòÉ <hidden> Nested Types - IRectangle ΓòÉΓòÉΓòÉ
  10653.  
  10654. Type Definitions 
  10655.  
  10656.       Coord 
  10657.  
  10658.  
  10659. ΓòÉΓòÉΓòÉ <hidden> Type Definition - IRectangle::Coord ΓòÉΓòÉΓòÉ
  10660.  
  10661. typedef IPair::Coord Coord;
  10662.  
  10663. Type of the coordinate values; this must match the type of the coordinates 
  10664. supported by the IPair class. 
  10665.  
  10666.  
  10667. ΓòÉΓòÉΓòÉ 1.34. IRefCounted ΓòÉΓòÉΓòÉ
  10668.  
  10669. Description 
  10670.  
  10671. Derivation 
  10672.  
  10673. Public Functions 
  10674.  
  10675. Protected Functions 
  10676.  
  10677. Protected Data 
  10678.  
  10679. To close all the panels in a chapter, double click on this panel's system menu. 
  10680.  
  10681.  
  10682. ΓòÉΓòÉΓòÉ <hidden> Derivation - IRefCounted ΓòÉΓòÉΓòÉ
  10683.  
  10684. IBase
  10685.   Γöé
  10686. IVBase
  10687.   Γöé
  10688. IRefCounted
  10689.  
  10690. Inherited by: 
  10691.  
  10692.      IDMItem 
  10693.      IDMOperation 
  10694.      IStringGeneratorFn 
  10695.      IThreadFn 
  10696.      ITimerFn 
  10697.  
  10698.  
  10699. ΓòÉΓòÉΓòÉ <hidden> Class Description - IRefCounted ΓòÉΓòÉΓòÉ
  10700.  
  10701. irefcnt.hpp 
  10702.  
  10703. The IRefCounted class is a public base class for any class that is reference 
  10704. counted. Such inheritance conveys the functional characteristics of maintaining 
  10705. a count of all references to the object and deferring destruction until all 
  10706. such references are destroyed. 
  10707.  
  10708. By necessity, you can only allocate objects of this class in free store. The 
  10709. library enforces this by making the destructor for this class protected. As a 
  10710. result, the library only allows IRefCounted::removeRef and derived class 
  10711. destructors to call IRefCounted::IRefCounted. Derived classes should make their 
  10712. destructors protected also. 
  10713.  
  10714. Typically, you use this class in conjunction with the corresponding 
  10715. IReference<T>, where T is a derived class of IRefCounted. 
  10716.  
  10717.  
  10718. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IRefCounted ΓòÉΓòÉΓòÉ
  10719.  
  10720. Reference Counting
  10721. addRef
  10722. removeRef
  10723. useCount
  10724.  
  10725. Inherited Members
  10726. IVBase
  10727. asDebugInfo
  10728. asString
  10729.  
  10730. IBase
  10731. asDebugInfo
  10732. asString
  10733. messageFile
  10734. messageText
  10735. setMessageFile
  10736. version
  10737.  
  10738.  
  10739. ΓòÉΓòÉΓòÉ <hidden> IRefCounted - Constructors ΓòÉΓòÉΓòÉ
  10740.  
  10741. These members are protected. 
  10742.  
  10743.  
  10744. ΓòÉΓòÉΓòÉ <hidden> IRefCounted - Reference Counting ΓòÉΓòÉΓòÉ
  10745.  
  10746. Use these members to manage the object's reference count. 
  10747.  
  10748.  
  10749. ΓòÉΓòÉΓòÉ <hidden> Protected Functions - IRefCounted ΓòÉΓòÉΓòÉ
  10750.  
  10751. Constructors
  10752. IRefCounted
  10753. ~IRefCounted
  10754.  
  10755.  
  10756. ΓòÉΓòÉΓòÉ <hidden> Protected Data - IRefCounted ΓòÉΓòÉΓòÉ
  10757.  
  10758. Inherited Members
  10759. IBase
  10760. recoverable
  10761. unrecoverable
  10762.  
  10763.  
  10764. ΓòÉΓòÉΓòÉ 1.34.1. IRefCounted::addRef ΓòÉΓòÉΓòÉ
  10765.  
  10766. Adds a reference to the referred-to object. 
  10767.  
  10768. public:
  10769. virtual void addRef();
  10770.  
  10771.  
  10772. ΓòÉΓòÉΓòÉ 1.34.2. IRefCounted::IRefCounted ΓòÉΓòÉΓòÉ
  10773.  
  10774. These members are protected. 
  10775.  
  10776. protected:
  10777. IRefCounted();
  10778.  
  10779.  
  10780. ΓòÉΓòÉΓòÉ 1.34.3. IRefCounted::removeRef ΓòÉΓòÉΓòÉ
  10781.  
  10782. Removes a reference to the referred-to object. When the reference count goes to 
  10783. 0, this function deletes the referred-to object. 
  10784.  
  10785. public:
  10786. virtual void removeRef();
  10787.  
  10788.  
  10789. ΓòÉΓòÉΓòÉ 1.34.4. IRefCounted::useCount ΓòÉΓòÉΓòÉ
  10790.  
  10791. Returns the use count for the referred-to object. 
  10792.  
  10793. public:
  10794. unsigned useCount() const;
  10795.  
  10796.  
  10797. ΓòÉΓòÉΓòÉ 1.34.5. IRefCounted::~IRefCounted ΓòÉΓòÉΓòÉ
  10798.  
  10799. protected:
  10800. ~IRefCounted();
  10801.  
  10802.  
  10803. ΓòÉΓòÉΓòÉ 1.35. IReference ΓòÉΓòÉΓòÉ
  10804.  
  10805. Description 
  10806.  
  10807. Derivation 
  10808.  
  10809. Constructors 
  10810.  
  10811. Public Functions 
  10812.  
  10813. Protected Data 
  10814.  
  10815. To close all the panels in a chapter, double click on this panel's system menu. 
  10816.  
  10817.  
  10818. ΓòÉΓòÉΓòÉ <hidden> Derivation - IReference ΓòÉΓòÉΓòÉ
  10819.  
  10820. IBase
  10821.   Γöé
  10822. IReference
  10823.  
  10824. Inherited by none. 
  10825.  
  10826.  
  10827. ΓòÉΓòÉΓòÉ <hidden> Class Description - IReference ΓòÉΓòÉΓòÉ
  10828.  
  10829. irefcnt.hpp 
  10830.  
  10831. The template class IReference is derived from classes that serve as references. 
  10832. Objects of such classes serve as smart pointers to objects of the referenced 
  10833. class. Creating objects of this class increments the use count of the 
  10834. referenced object. Destruction of the object causes the use count of the 
  10835. referenced object to be decremented. 
  10836.  
  10837. Typically, this class is referenced explicitly only as a public base class of 
  10838. the class that provides the additional capability of the reference class. For 
  10839. example: 
  10840.  
  10841. class Foo { .. };
  10842. class FooRef : public IReference<Foo> {
  10843. // Additional FooRef functions...
  10844. };
  10845.  
  10846. The reference-counted class provided as the template argument is derived from 
  10847. the class IRefCounted. It must have the member functions IRefCounted::addRefand 
  10848. IRefCounted::removeRef with equivalent semantics. 
  10849.  
  10850. To construct an IReference, you must provide a pointer to an object of the 
  10851. referenced (reference-counted) class. All constructors of the real reference 
  10852. class (derived from IReference<T>) must provide such a pointer. Otherwise, the 
  10853. reference class has no additional responsibilities. 
  10854.  
  10855. Note: 
  10856.  
  10857.   1. The semantics of such reference or referent classes can have subtle 
  10858.      complexities. The reference or the referent might behave in an 
  10859.      extraordinary fashion. 
  10860.  
  10861.   2. A class can also serve as a reference by having as a data member an 
  10862.      IReference<T> object. 
  10863.  
  10864.   3. All members of the IReference class are public in order to permit the 
  10865.      usage described in item 2. 
  10866.  
  10867. Customization (Template Argument) 
  10868.  
  10869. IReference is a template class that is instantiated with the following template 
  10870. argument: 
  10871.  
  10872. T         Specifies the name of the class of objects to which template class 
  10873.           objects refer. 
  10874.  
  10875.  
  10876. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IReference ΓòÉΓòÉΓòÉ
  10877.  
  10878. Constructors
  10879. IReference
  10880. operator =
  10881. ~IReference
  10882.  
  10883. Operators
  10884. operator *
  10885. operator ->
  10886. operator T *
  10887.  
  10888. Inherited Members
  10889. IBase
  10890. asDebugInfo
  10891. asString
  10892. messageFile
  10893. messageText
  10894. setMessageFile
  10895. version
  10896.  
  10897.  
  10898. ΓòÉΓòÉΓòÉ <hidden> IReference - Constructors ΓòÉΓòÉΓòÉ
  10899.  
  10900. You can construct, destruct, copy, and assign objects of this class. 
  10901.  
  10902.  
  10903. ΓòÉΓòÉΓòÉ <hidden> IReference - Operators ΓòÉΓòÉΓòÉ
  10904.  
  10905. Use these members to access the referenced object. Their effect is to make an 
  10906. IReference usable, similar to a normal pointer. 
  10907.  
  10908.  
  10909. ΓòÉΓòÉΓòÉ <hidden> Protected Data - IReference ΓòÉΓòÉΓòÉ
  10910.  
  10911. Inherited Members
  10912. IBase
  10913. recoverable
  10914. unrecoverable
  10915.  
  10916.  
  10917. ΓòÉΓòÉΓòÉ 1.35.1. IReference::IReference ΓòÉΓòÉΓòÉ
  10918.  
  10919. You can construct, destruct, copy, and assign objects of this class. 
  10920.  
  10921. Overload 1 
  10922.  
  10923. public:
  10924. IReference(const IReference < T >& source);
  10925.  
  10926. You can construct objects of this class by using this copy constructor which 
  10927. the library provides to ensure that the reference counts for both the source 
  10928. and target referents are maintained properly. 
  10929.  
  10930. Overload 2 
  10931.  
  10932. public:
  10933. IReference(T* p = 0);
  10934.  
  10935. You can construct objects of this class by using this primary constructor which 
  10936. accepts a pointer to an instance of the referenced class. This also serves as 
  10937. the default constructor (defaulting the pointer parameter to 0). 
  10938.  
  10939.  
  10940. ΓòÉΓòÉΓòÉ 1.35.2. IReference::operator * ΓòÉΓòÉΓòÉ
  10941.  
  10942. Pointer de-reference operator that provides access to the referenced object. 
  10943.  
  10944. public:
  10945. T& operator *() const;
  10946.  
  10947.  
  10948. ΓòÉΓòÉΓòÉ 1.35.3. IReference::operator -> ΓòÉΓòÉΓòÉ
  10949.  
  10950. Pointer operator that provides access to the referenced object. 
  10951.  
  10952. public:
  10953. T* operator ->() const;
  10954.  
  10955.  
  10956. ΓòÉΓòÉΓòÉ 1.35.4. IReference::operator = ΓòÉΓòÉΓòÉ
  10957.  
  10958. The assignment operator. You can assign one IReference to another or you can 
  10959. assign a pointer to the referenced type. 
  10960.  
  10961. Overload 1 
  10962.  
  10963. public:
  10964. IReference < T >& operator =(T* p);
  10965.  
  10966. Overload 2 
  10967.  
  10968. public:
  10969. IReference < T >&
  10970.   operator =( const IReference < T >& source);
  10971.  
  10972.  
  10973. ΓòÉΓòÉΓòÉ 1.35.5. IReference::operator T * ΓòÉΓòÉΓòÉ
  10974.  
  10975. Returns the referent. 
  10976.  
  10977. public:
  10978. operator T *() const;
  10979.  
  10980.  
  10981. ΓòÉΓòÉΓòÉ 1.35.6. IReference::~IReference ΓòÉΓòÉΓòÉ
  10982.  
  10983. The destructor ensures that the referenced object is de-referenced. 
  10984.  
  10985. public:
  10986. ~IReference();
  10987.  
  10988.  
  10989. ΓòÉΓòÉΓòÉ 1.36. IResourceExhausted ΓòÉΓòÉΓòÉ
  10990.  
  10991. Description 
  10992.  
  10993. Derivation 
  10994.  
  10995. Constructors 
  10996.  
  10997. Public Functions 
  10998.  
  10999. Public Data 
  11000.  
  11001. Public Data includes Styles and Notification IDs if they exist. 
  11002.  
  11003. To close all the panels in a chapter, double click on this panel's system menu. 
  11004.  
  11005.  
  11006. ΓòÉΓòÉΓòÉ <hidden> Derivation - IResourceExhausted ΓòÉΓòÉΓòÉ
  11007.  
  11008. IException
  11009.   Γöé
  11010. IResourceExhausted
  11011.  
  11012. Inherited by: 
  11013.  
  11014.      IOutOfMemory 
  11015.      IOutOfSystemResource 
  11016.      IOutOfWindowResource 
  11017.  
  11018.  
  11019. ΓòÉΓòÉΓòÉ <hidden> Class Description - IResourceExhausted ΓòÉΓòÉΓòÉ
  11020.  
  11021. iexcbase.hpp 
  11022.  
  11023. Objects of the IResourceExhausted class represent an exception. When a member 
  11024. function makes a resource request of the operating system or the presentation 
  11025. system that it cannot satisfy, the member function creates and throws an object 
  11026. of the IResourceExhausted class or one of its derived classes. 
  11027. IResourceExhausted is the generic out-of-resource class. Member functions use 
  11028. IResourceExhausted whenever its derived classes, which are for specific 
  11029. out-of-resource cases, are not applicable. 
  11030.  
  11031. The derived classes for IResourceExhausted are: 
  11032.  
  11033.      IOutOfMemory 
  11034.      IOutOfSystemResource 
  11035.      IOutOfWindowResource 
  11036.  
  11037.  
  11038. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IResourceExhausted ΓòÉΓòÉΓòÉ
  11039.  
  11040. Constructors
  11041. IResourceExhausted
  11042.  
  11043. Exception Type
  11044. name
  11045.  
  11046. Inherited Members
  11047. IException
  11048. addLocation
  11049. appendText
  11050. assertParameter
  11051. errorCodeGroup
  11052. errorId
  11053. isRecoverable
  11054. locationAtIndex
  11055. locationCount
  11056. logExceptionData
  11057. name
  11058. setErrorCodeGroup
  11059. setErrorId
  11060. setSeverity
  11061. setText
  11062. setTraceFunction
  11063. terminate
  11064. text
  11065. textCount
  11066.  
  11067.  
  11068. ΓòÉΓòÉΓòÉ <hidden> IResourceExhausted - Constructors ΓòÉΓòÉΓòÉ
  11069.  
  11070. You can construct objects of this class. 
  11071.  
  11072.  
  11073. ΓòÉΓòÉΓòÉ <hidden> IResourceExhausted - Exception Type ΓòÉΓòÉΓòÉ
  11074.  
  11075. Use these members to determine the name (type) of the exception.  This is used 
  11076. for logging out an exception object's error information. 
  11077.  
  11078.  
  11079. ΓòÉΓòÉΓòÉ <hidden> Public Data - IResourceExhausted ΓòÉΓòÉΓòÉ
  11080.  
  11081. Inherited Members
  11082. IException
  11083. baseLibrary
  11084. CLibrary
  11085. operatingSystem
  11086. other
  11087. presentationSystem
  11088.  
  11089.  
  11090. ΓòÉΓòÉΓòÉ 1.36.1. IResourceExhausted::IResourceExhausted ΓòÉΓòÉΓòÉ
  11091.  
  11092. You can create objects of this class by doing the following: 
  11093.  
  11094.     Using the constructor. 
  11095.  
  11096.      errorText      The text describing this particular error. 
  11097.  
  11098.      errorId        The identifier you want to associate with this particular 
  11099.                     error. 
  11100.  
  11101.      severity       Use the enumeration IException::Severity to specify the 
  11102.                     severity of the error. The default is unrecoverable. 
  11103.  
  11104.     Using the macros discussed in IException. The User Interface Class Library 
  11105.      provides these macros to make creating exceptions easier for you. 
  11106.  
  11107. public:
  11108. IResourceExhausted( const char* errorText,
  11109.                     unsigned long errorId,
  11110.                     Severity severity = IException::unrecoverable);
  11111.  
  11112.  
  11113. ΓòÉΓòÉΓòÉ 1.36.2. IResourceExhausted::name ΓòÉΓòÉΓòÉ
  11114.  
  11115. Returns the name of the object's class. 
  11116.  
  11117. public:
  11118. virtual const char* name() const;
  11119.  
  11120.  
  11121. ΓòÉΓòÉΓòÉ 1.37. ISize ΓòÉΓòÉΓòÉ
  11122.  
  11123. Description 
  11124.  
  11125. Derivation 
  11126.  
  11127. Constructors 
  11128.  
  11129. Public Functions 
  11130.  
  11131. Protected Data 
  11132.  
  11133. To close all the panels in a chapter, double click on this panel's system menu. 
  11134.  
  11135.  
  11136. ΓòÉΓòÉΓòÉ <hidden> Derivation - ISize ΓòÉΓòÉΓòÉ
  11137.  
  11138. IBase
  11139.   Γöé
  11140. IPair
  11141.   Γöé
  11142. ISize
  11143.  
  11144. Inherited by none. 
  11145.  
  11146.  
  11147. ΓòÉΓòÉΓòÉ <hidden> Class Description - ISize ΓòÉΓòÉΓòÉ
  11148.  
  11149. ipoint.hpp 
  11150.  
  11151. Objects of the ISize class use their coordinates to represent a rectangular 
  11152. size, in horizontal and vertical dimensions. 
  11153.  
  11154. Presentation Manager Information 
  11155.  
  11156. You can also construct objects of this class using: 
  11157.  
  11158.     A Presentation Manager Toolkit SIZEL structure. 
  11159.     A Presentation Manager Toolkit RECTL structure; in this case, the 
  11160.      resulting ISize object represents the size of the RECTL. 
  11161.  
  11162.  
  11163. ΓòÉΓòÉΓòÉ <hidden> Public Functions - ISize ΓòÉΓòÉΓòÉ
  11164.  
  11165. Constructors
  11166. ISize
  11167.  
  11168. Conversions
  11169. asSIZEL
  11170.  
  11171. Coordinates
  11172. height
  11173. setHeight
  11174. setWidth
  11175. width
  11176.  
  11177. Inherited Members
  11178. IPair
  11179. asDebugInfo
  11180. asString
  11181. coord1
  11182. coord2
  11183. distanceFrom
  11184. dotProduct
  11185. maximum
  11186. minimum
  11187. operator !=
  11188. operator %=
  11189. operator *=
  11190. operator +=
  11191. operator -
  11192. operator -=
  11193. operator /=
  11194. operator <
  11195. operator <=
  11196. operator ==
  11197. operator >
  11198. operator >=
  11199. scaleBy
  11200. scaledBy
  11201. setCoord1
  11202. setCoord2
  11203. transpose
  11204.  
  11205. IBase
  11206. asDebugInfo
  11207. asString
  11208. messageFile
  11209. messageText
  11210. setMessageFile
  11211. version
  11212.  
  11213.  
  11214. ΓòÉΓòÉΓòÉ <hidden> ISize - Constructors ΓòÉΓòÉΓòÉ
  11215.  
  11216. You can construct, copy, and assign objects of this class. This class uses the 
  11217. compiler-generated copy constructor and assignment operator to copy and assign 
  11218. ISize objects. 
  11219.  
  11220.  
  11221. ΓòÉΓòÉΓòÉ <hidden> ISize - Conversions ΓòÉΓòÉΓòÉ
  11222.  
  11223. Use these members to return an ISize object in a different form. 
  11224.  
  11225.  
  11226. ΓòÉΓòÉΓòÉ <hidden> ISize - Coordinates ΓòÉΓòÉΓòÉ
  11227.  
  11228. Use these members to query and change the ordered pair of integers in an ISize 
  11229. object. 
  11230.  
  11231.  
  11232. ΓòÉΓòÉΓòÉ <hidden> Protected Data - ISize ΓòÉΓòÉΓòÉ
  11233.  
  11234. Inherited Members
  11235. IBase
  11236. recoverable
  11237. unrecoverable
  11238.  
  11239.  
  11240. ΓòÉΓòÉΓòÉ 1.37.1. ISize::asSIZEL ΓòÉΓòÉΓòÉ
  11241.  
  11242. Returns the ISize as a Presentation Manager Toolkit SIZEL structure. 
  11243.  
  11244. public:
  11245. SIZEL asSIZEL() const;
  11246.  
  11247.  
  11248. ΓòÉΓòÉΓòÉ 1.37.2. ISize::height ΓòÉΓòÉΓòÉ
  11249.  
  11250. Returns the height represented by the ISize object. 
  11251.  
  11252. public:
  11253. Coord height() const;
  11254.  
  11255. Used in samples: 
  11256.  
  11257.      Hello World Sample - Version 4: ahellow4.cpp 
  11258.      Hello World Sample - Version 5: ahellow5.cpp 
  11259.      Hello World Sample - Version 6: ahellow6.cpp 
  11260.      Tool Bar Sample 2: tbar2.cpp 
  11261.      View Port Sample: avport.cpp 
  11262.  
  11263.  
  11264. ΓòÉΓòÉΓòÉ 1.37.3. ISize::ISize ΓòÉΓòÉΓòÉ
  11265.  
  11266. You can construct, copy, and assign objects of this class. This class uses the 
  11267. compiler-generated copy constructor and assignment operator to copy and assign 
  11268. ISize objects. 
  11269.  
  11270. Overload 1 
  11271.  
  11272. public:
  11273. ISize(const IPair& pair);
  11274.  
  11275. Overload 2 
  11276.  
  11277. public:
  11278. ISize();
  11279.  
  11280. Used in samples: 
  11281.  
  11282.      Hello World Sample - Version 4: ahellow4.cpp 
  11283.      Hello World Sample - Version 5: ahellow5.cpp 
  11284.      Hello World Sample - Version 6: ahellow6.cpp 
  11285.      2D Bitmap Sample: 2d-bmap.cpp 
  11286.      Multimedia MMREMOTE Sample: mmremote.cpp 
  11287.  
  11288. Overload 3 
  11289.  
  11290. public:
  11291. ISize(Coord width, Coord height);
  11292.  
  11293. Used in samples: 
  11294.  
  11295.      Hello World Sample - Version 1: ahellow1.cpp 
  11296.      Hello World Sample - Version 2: ahellow2.cpp 
  11297.      Hello World Sample - Version 3: ahellow3.cpp 
  11298.      Hello World Sample - Version 4: ahellow4.cpp 
  11299.      Hello World Sample - Version 5: ahellow5.cpp 
  11300.  
  11301. Overload 4 
  11302.  
  11303. public:
  11304. ISize(const SIZEL& sizl);
  11305.  
  11306. Overload 5 
  11307.  
  11308. public:
  11309. ISize(const struct _RECTL& rcl);
  11310.  
  11311.  
  11312. ΓòÉΓòÉΓòÉ 1.37.4. ISize::setHeight ΓòÉΓòÉΓòÉ
  11313.  
  11314. Sets the size's height. 
  11315.  
  11316. public:
  11317. ISize& setHeight(Coord cy);
  11318.  
  11319. Used in samples: 
  11320.  
  11321.      2D Graphics Sample: 2d-menu.cpp 
  11322.      Multimedia MMREMOTE Sample: mmremote.cpp 
  11323.      Lancelot - A Valiant Example: ltimec.cpp 
  11324.  
  11325.  
  11326. ΓòÉΓòÉΓòÉ 1.37.5. ISize::setWidth ΓòÉΓòÉΓòÉ
  11327.  
  11328. Sets the size's width. 
  11329.  
  11330. public:
  11331. ISize& setWidth(Coord cx);
  11332.  
  11333. Used in samples: 
  11334.  
  11335.      2D Graphics Sample: 2d-menu.cpp 
  11336.      Multimedia MMREMOTE Sample: mmremote.cpp 
  11337.      Lancelot - A Valiant Example: lgenl.cpp 
  11338.      Lancelot - A Valiant Example: ltimec.cpp 
  11339.  
  11340.  
  11341. ΓòÉΓòÉΓòÉ 1.37.6. ISize::width ΓòÉΓòÉΓòÉ
  11342.  
  11343. Returns the width represented by the ISize object. 
  11344.  
  11345. public:
  11346. Coord width() const;
  11347.  
  11348. Used in samples: 
  11349.  
  11350.      Tool Bar Sample 2: tbar2.cpp 
  11351.      View Port Sample: avport.cpp 
  11352.      BIGCPP Sample: bigcpp.cpp 
  11353.      Magnify Sample: magnify.cpp 
  11354.      Multimedia MMREMOTE Sample: mmremote.cpp 
  11355.  
  11356.  
  11357. ΓòÉΓòÉΓòÉ 1.38. IStandardNotifier ΓòÉΓòÉΓòÉ
  11358.  
  11359. Description 
  11360.  
  11361. Derivation 
  11362.  
  11363. Constructors 
  11364.  
  11365. Public Functions 
  11366.  
  11367. Protected Functions 
  11368.  
  11369. Public Data 
  11370.  
  11371. Protected Data 
  11372.  
  11373. Public Data includes Styles and Notification IDs if they exist. 
  11374.  
  11375. To close all the panels in a chapter, double click on this panel's system menu. 
  11376.  
  11377.  
  11378. ΓòÉΓòÉΓòÉ <hidden> Derivation - IStandardNotifier ΓòÉΓòÉΓòÉ
  11379.  
  11380. IBase
  11381.   Γöé
  11382. IVBase
  11383.   Γöé
  11384. INotifier
  11385.   Γöé
  11386. IStandardNotifier
  11387.  
  11388. Inherited by: 
  11389.  
  11390.      IMMDevice 
  11391.      IMMMasterAudio 
  11392.  
  11393.  
  11394. ΓòÉΓòÉΓòÉ <hidden> Class Description - IStandardNotifier ΓòÉΓòÉΓòÉ
  11395.  
  11396. istdntfy.hpp 
  11397.  
  11398. The IStandardNotifier class provides a direct implementation of the 
  11399. notification protocol in the INotifier class. 
  11400.  
  11401. You can implement a notification protocol in the following way: 
  11402.  
  11403.     Derive a class from the IStandardNotifier class which inherits from 
  11404.      INotifier for a direct implementation of the INotifier protocol 
  11405.  
  11406.     Derive from the INotifier class and implement your own notification 
  11407.      protocol 
  11408.  
  11409. Because IWindow inherits from and implements the INotifier protocol,  IWindow 
  11410. provides a visual notification implementation. IStandardNotifier inherits from 
  11411. INotifier and can be used for any generic notifier, without the visual 
  11412. interface available in IWindow objects. You might want to derive your classes 
  11413. from IStandardNotifier if you are providing a nonvisual notifier. 
  11414.  
  11415.  
  11416. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IStandardNotifier ΓòÉΓòÉΓòÉ
  11417.  
  11418. Constructors
  11419. IStandardNotifier
  11420. operator =
  11421. ~IStandardNotifier
  11422.  
  11423. Notification Members
  11424. disableNotification
  11425. enableNotification
  11426. isEnabledForNotification
  11427.  
  11428. Observer Notification
  11429. notifyObservers
  11430.  
  11431. Inherited Members
  11432. INotifier
  11433. disableNotification
  11434. enableNotification
  11435. isEnabledForNotification
  11436. notifyObservers
  11437.  
  11438. IVBase
  11439. asDebugInfo
  11440. asString
  11441.  
  11442. IBase
  11443. asDebugInfo
  11444. asString
  11445. messageFile
  11446. messageText
  11447. setMessageFile
  11448. version
  11449.  
  11450.  
  11451. ΓòÉΓòÉΓòÉ <hidden> IStandardNotifier - Constructors ΓòÉΓòÉΓòÉ
  11452.  
  11453. You can construct, destruct, assign, and copy objects of this class. 
  11454.  
  11455.  
  11456. ΓòÉΓòÉΓòÉ <hidden> IStandardNotifier - Notification Event Descriptions ΓòÉΓòÉΓòÉ
  11457.  
  11458. These INotificationId strings are used for all notifications that an IPart 
  11459. provides to its observers. 
  11460.  
  11461.  
  11462. ΓòÉΓòÉΓòÉ <hidden> IStandardNotifier - Notification Members ΓòÉΓòÉΓòÉ
  11463.  
  11464. Use these members to affect the ability of a part to notify observers of events 
  11465. of interest. 
  11466.  
  11467.  
  11468. ΓòÉΓòÉΓòÉ <hidden> IStandardNotifier - Observer Addition and Removal ΓòÉΓòÉΓòÉ
  11469.  
  11470. Use these members to manage the collection of observers maintained by the 
  11471. notifier. 
  11472.  
  11473.  
  11474. ΓòÉΓòÉΓòÉ <hidden> IStandardNotifier - Observer Notification ΓòÉΓòÉΓòÉ
  11475.  
  11476. These members notify observers of a change in a notifier. 
  11477.  
  11478.  
  11479. ΓòÉΓòÉΓòÉ <hidden> Protected Functions - IStandardNotifier ΓòÉΓòÉΓòÉ
  11480.  
  11481. Observer Addition and Removal
  11482. addObserver
  11483. observerList
  11484. removeAllObservers
  11485. removeObserver
  11486.  
  11487. Observer Notification
  11488. notifyObservers
  11489.  
  11490. Inherited Members
  11491. INotifier
  11492. addObserver
  11493. notifyObservers
  11494. observerList
  11495. removeAllObservers
  11496. removeObserver
  11497.  
  11498.  
  11499. ΓòÉΓòÉΓòÉ <hidden> Public Data - IStandardNotifier ΓòÉΓòÉΓòÉ
  11500.  
  11501. Notification Event Descriptions
  11502. deleteId
  11503.  
  11504.  
  11505. ΓòÉΓòÉΓòÉ <hidden> Protected Data - IStandardNotifier ΓòÉΓòÉΓòÉ
  11506.  
  11507. Inherited Members
  11508. IBase
  11509. recoverable
  11510. unrecoverable
  11511.  
  11512.  
  11513. ΓòÉΓòÉΓòÉ 1.38.1. IStandardNotifier::addObserver ΓòÉΓòÉΓòÉ
  11514.  
  11515. Adds an observer to the object's list of observers. 
  11516.  
  11517. protected:
  11518. virtual IStandardNotifier&
  11519.   addObserver( IObserver& observer,
  11520.                const IEventData& userData = IEventData ( 0 ));
  11521.  
  11522.  
  11523. ΓòÉΓòÉΓòÉ 1.38.2. IStandardNotifier::deleteId ΓòÉΓòÉΓòÉ
  11524.  
  11525. Notification identifier provided to observers when the notifier object is 
  11526. deleted.  Note:  IStandardNotifier sends this notification from its destructor. 
  11527. This means that the derived portions of the notifier have already been deleted. 
  11528. You should therefore not cast the pointer to the notifier data, to an object 
  11529. that is derived from IStandardNotifier.  This operation is synchronous and 
  11530. therefore the pointer    still points to a valid object. 
  11531.  
  11532. public:
  11533. static INotificationId const deleteId;
  11534.  
  11535.  
  11536. ΓòÉΓòÉΓòÉ 1.38.3. IStandardNotifier::disableNotification ΓòÉΓòÉΓòÉ
  11537.  
  11538. Stops the object from sending notifications to registered observers. 
  11539.  
  11540. public:
  11541. virtual IStandardNotifier& disableNotification();
  11542.  
  11543.  
  11544. ΓòÉΓòÉΓòÉ 1.38.4. IStandardNotifier::enableNotification ΓòÉΓòÉΓòÉ
  11545.  
  11546. Starts the sending of notifications to observers. 
  11547.  
  11548. public:
  11549. virtual IStandardNotifier&
  11550.   enableNotification( Boolean enable = true);
  11551.  
  11552.  
  11553. ΓòÉΓòÉΓòÉ 1.38.5. IStandardNotifier::isEnabledForNotification ΓòÉΓòÉΓòÉ
  11554.  
  11555. Returns true if an object is sending notifications to its observers. 
  11556.  
  11557. public:
  11558. virtual Boolean isEnabledForNotification() const;
  11559.  
  11560.  
  11561. ΓòÉΓòÉΓòÉ 1.38.6. IStandardNotifier::IStandardNotifier ΓòÉΓòÉΓòÉ
  11562.  
  11563. You can construct, destruct, assign, and copy objects of this class. 
  11564.  
  11565. Overload 1 
  11566.  
  11567. public:
  11568. IStandardNotifier(const IStandardNotifier& copy);
  11569.  
  11570. You can construct an IStandardNotifier object using a copy of an existing 
  11571. IStandardNotifier object. 
  11572.  
  11573. Overload 2 
  11574.  
  11575. public:
  11576. IStandardNotifier();
  11577.  
  11578. You can construct objects of this class using the default constructor that 
  11579. takes no arguments. 
  11580.  
  11581.  
  11582. ΓòÉΓòÉΓòÉ 1.38.7. IStandardNotifier::notifyObservers ΓòÉΓòÉΓòÉ
  11583.  
  11584. Notifies all observers in an object's observer list. 
  11585.  
  11586. Note:  A public and a protected version of notifyObservers are provided for 
  11587.        convenience. The protected version does not require the caller to 
  11588.        construct an INotificationEvent to call it.  In this case, the 
  11589.        construction of the INotificationEventobject occurs in the code of the 
  11590.        protected notifyObservers function. 
  11591.  
  11592. Overload 1 
  11593.  
  11594. public:
  11595. virtual IStandardNotifier&
  11596.   notifyObservers( const INotificationEvent& anEvent);
  11597.  
  11598. Overload 2 
  11599.  
  11600. protected:
  11601. virtual IStandardNotifier&
  11602.   notifyObservers( const INotificationId& nId);
  11603.  
  11604.  
  11605. ΓòÉΓòÉΓòÉ 1.38.8. IStandardNotifier::observerList ΓòÉΓòÉΓòÉ
  11606.  
  11607. Returns the list of IObservers.  The list is created it if it does not exist. 
  11608.  
  11609. protected:
  11610. virtual IObserverList& observerList() const;
  11611.  
  11612.  
  11613. ΓòÉΓòÉΓòÉ 1.38.9. IStandardNotifier::operator = ΓòÉΓòÉΓòÉ
  11614.  
  11615. Assigns the contents of one notifier object to another. 
  11616.  
  11617. Note:  The observer list is not copied.
  11618.  
  11619. public:
  11620. IStandardNotifier&
  11621.   operator =( const IStandardNotifier& aStandardNotifier);
  11622.  
  11623.  
  11624. ΓòÉΓòÉΓòÉ 1.38.10. IStandardNotifier::removeAllObservers ΓòÉΓòÉΓòÉ
  11625.  
  11626. Removes all observers from the object's observer list. 
  11627.  
  11628. protected:
  11629. virtual IStandardNotifier& removeAllObservers();
  11630.  
  11631.  
  11632. ΓòÉΓòÉΓòÉ 1.38.11. IStandardNotifier::removeObserver ΓòÉΓòÉΓòÉ
  11633.  
  11634. Removes an observer from the objects's observer list. 
  11635.  
  11636. protected:
  11637. virtual IStandardNotifier&
  11638.   removeObserver( IObserver& observer);
  11639.  
  11640.  
  11641. ΓòÉΓòÉΓòÉ 1.38.12. IStandardNotifier::~IStandardNotifier ΓòÉΓòÉΓòÉ
  11642.  
  11643. public:
  11644. virtual  ~IStandardNotifier();
  11645.  
  11646.  
  11647. ΓòÉΓòÉΓòÉ 1.39. IString ΓòÉΓòÉΓòÉ
  11648.  
  11649. Description 
  11650.  
  11651. Derivation 
  11652.  
  11653. Constructors 
  11654.  
  11655. Public Functions 
  11656.  
  11657. Protected Functions 
  11658.  
  11659. Protected Data 
  11660.  
  11661. Nested Types 
  11662.  
  11663. To close all the panels in a chapter, double click on this panel's system menu. 
  11664.  
  11665.  
  11666. ΓòÉΓòÉΓòÉ <hidden> Derivation - IString ΓòÉΓòÉΓòÉ
  11667.  
  11668. IBase
  11669.   Γöé
  11670. IString
  11671.  
  11672. Inherited by: 
  11673.  
  11674.      I0String 
  11675.  
  11676.  
  11677. ΓòÉΓòÉΓòÉ <hidden> Class Description - IString ΓòÉΓòÉΓòÉ
  11678.  
  11679. istring.hpp 
  11680.  
  11681. Objects of the IString class are arrays of characters. These objects are 
  11682. functionally equivalent to objects of the class I0String with one major 
  11683. distinction: IStrings are indexed starting at 1 instead of 0. 
  11684.  
  11685. IString provides an operator char*. In order to access the actual string 
  11686. contained in an object of type IString, cast the assignment variable implicitly 
  11687. or explicitly. 
  11688.  
  11689. IStrings provide the following functions beyond that available from the 
  11690. standard C char* arrays and the STRING.H library functions: 
  11691.  
  11692.     No restrictions on string contents. Thus, strings can contain NULL 
  11693.      characters. 
  11694.  
  11695.     Automatic conversion from and to numeric types. 
  11696.  
  11697.     Automatic deletion of the string buffer when the IString is destroyed. 
  11698.  
  11699.     Full support for the following: 
  11700.  
  11701.        -  All comparison operators 
  11702.        -  All bitwise operators 
  11703.        -  Concatenation using the more natural + operator. 
  11704.  
  11705.     String data testing, such as for characters, digits, and hexadecimal 
  11706.      digits. 
  11707.  
  11708.     A full complement of the following: 
  11709.  
  11710.        -  String manipulation functions, such as center, left- and 
  11711.           right-justification, stripping of leading and trailing characters, 
  11712.           deleting substrings, and inserting strings 
  11713.  
  11714.        -  Corresponding string manipulation functions that return a new IString 
  11715.           rather than modifying the receiver 
  11716.  
  11717.        -  String searching functions, such as byte index of string and 
  11718.           last-byte index of string. 
  11719.  
  11720.     Word manipulation, such as index of word and search for word phrase. 
  11721.  
  11722.     Support for mixed strings that contain both single-byte character set 
  11723.      (SBCS) and double-byte character set (DBCS) characters. 
  11724.  
  11725. When a program using IStrings is run on a DBCS system, the IString objects 
  11726. support DBCS characters within the string contents. The various IString search 
  11727. functions do not accidentally match an SBCS character with the second byte of a 
  11728. DBCS character that has the same value. Also, IString functions that modify 
  11729. IStrings, such as subString, remove, and translate, never separate the two 
  11730. bytes of a DBCS character. If one of the two bytes of a DBCS character is 
  11731. removed, the remaining byte is replaced with the appropriate pad character (if 
  11732. the function performing the change has one) or a blank. 
  11733.  
  11734. When working with IStrings that contain DBCS data, ensure that the contents are 
  11735. not altered in such a way as to corrupt the data. For example, the statement: 
  11736.  
  11737. aString[ n ] = 'x';
  11738. would be in error if the nth character of the IString was the first or second 
  11739. byte of a DBCS character. 
  11740.  
  11741. Note:  Any function that reallocates an IString can throw an exception for 
  11742.        out-of-range errors. These occur if you attempt to construct an IString 
  11743.        with a length greater than UINT_MAX. 
  11744.  
  11745. IStrings are held in IBuffers which allocate the area for the character arrays 
  11746. using the C++ operator new. The only limitation for the size of an IString are 
  11747. the limitations imposed by the operating system. 
  11748.  
  11749. Motif Information 
  11750.  
  11751. DBCS is equivalent to Multiple-byte character set (MBCS). 
  11752.  
  11753.  
  11754. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IString ΓòÉΓòÉΓòÉ
  11755.  
  11756. Binary Conversions
  11757. b2c
  11758. b2d
  11759. b2x
  11760.  
  11761. Character Conversions
  11762. c2b
  11763. c2d
  11764. c2x
  11765.  
  11766. Constructors
  11767. IString
  11768. ~IString
  11769.  
  11770. Diagnostics
  11771. asDebugInfo
  11772. asString
  11773.  
  11774. Editing
  11775. center
  11776. change
  11777. copy
  11778. insert
  11779. leftJustify
  11780. lowerCase
  11781. overlayWith
  11782. remove
  11783. reverse
  11784. rightJustify
  11785. strip
  11786. stripBlanks
  11787. stripLeading
  11788. stripLeadingBlanks
  11789. stripTrailing
  11790. stripTrailingBlanks
  11791. translate
  11792. upperCase
  11793.  
  11794. Forward Searches
  11795. indexOf
  11796. indexOfAnyBut
  11797. indexOfAnyOf
  11798. occurrencesOf
  11799.  
  11800. Hex Conversions
  11801. x2b
  11802. x2c
  11803. x2d
  11804.  
  11805. Manipulation
  11806. operator &
  11807. operator &=
  11808. operator +
  11809. operator +=
  11810. operator =
  11811. operator ^
  11812. operator ^=
  11813. operator |
  11814. operator |=
  11815. operator ~
  11816.  
  11817. NLS Testing
  11818. includesDBCS
  11819. includesMBCS
  11820. includesSBCS
  11821. isDBCS
  11822. isMBCS
  11823. isSBCS
  11824. isValidDBCS
  11825. isValidMBCS
  11826.  
  11827. Numeric Conversions
  11828. d2b
  11829. d2c
  11830. d2x
  11831.  
  11832. Pattern Matching
  11833. includes
  11834. isAbbreviationFor
  11835. isLike
  11836.  
  11837. Queries
  11838. charType
  11839. length
  11840. operator []
  11841. size
  11842. subString
  11843.  
  11844. Reverse Searches
  11845. lastIndexOf
  11846. lastIndexOfAnyBut
  11847. lastIndexOfAnyOf
  11848.  
  11849. Stream Input
  11850. lineFrom
  11851.  
  11852. Testing
  11853. isAlphabetic
  11854. isAlphanumeric
  11855. isASCII
  11856. isBinaryDigits
  11857. isControl
  11858. isDigits
  11859. isGraphics
  11860. isHexDigits
  11861. isLowerCase
  11862. isPrintable
  11863. isPunctuation
  11864. isUpperCase
  11865. isWhiteSpace
  11866.  
  11867. Type Conversions
  11868. asDouble
  11869. asInt
  11870. asUnsigned
  11871. operator char *
  11872. operator signed char *
  11873. operator unsigned char *
  11874.  
  11875. Word Operations
  11876. indexOfPhrase
  11877. indexOfWord
  11878. lengthOfWord
  11879. numWords
  11880. removeWords
  11881. space
  11882. word
  11883. wordIndexOfPhrase
  11884. words
  11885.  
  11886. Inherited Members
  11887. IBase
  11888. asDebugInfo
  11889. asString
  11890. messageFile
  11891. messageText
  11892. setMessageFile
  11893. version
  11894.  
  11895.  
  11896. ΓòÉΓòÉΓòÉ <hidden> IString - Binary Conversions ΓòÉΓòÉΓòÉ
  11897.  
  11898. These members work if isBinaryDigits() == true; if not, they return a null 
  11899. string. The static members by the same name can be applied to a string to 
  11900. return the modified string without changing the argument string. 
  11901.  
  11902.  
  11903. ΓòÉΓòÉΓòÉ <hidden> IString - Bit Operations ΓòÉΓòÉΓòÉ
  11904.  
  11905. Use these members to implement various public members of this class requiring 
  11906. bitwise operations. 
  11907.  
  11908.  
  11909. ΓòÉΓòÉΓòÉ <hidden> IString - Character Conversions ΓòÉΓòÉΓòÉ
  11910.  
  11911. These members always work;  they convert a string to binary, numeric or 
  11912. hexadecimal representation. The static members by the same name can be applied 
  11913. to a string to return the modified string without changing the argument string. 
  11914. These members are used much like the similar REXX functions.  For example: 
  11915.  
  11916.   aString.c2b();                                         // Changes aString.
  11917.   String binaryDigits = IString::c2b( aString ); // Leaves aString alone.
  11918.  
  11919.  
  11920. ΓòÉΓòÉΓòÉ <hidden> IString - Comparisons ΓòÉΓòÉΓòÉ
  11921.  
  11922. All Boolean operators are defined for strings.  The following members are 
  11923. overloaded so that IStrings can be compared to objects of type char*, as well 
  11924. as to other IStrings. 
  11925.  
  11926.  
  11927. ΓòÉΓòÉΓòÉ <hidden> IString - Constructors ΓòÉΓòÉΓòÉ
  11928.  
  11929. You can construct objects of this class in the following ways: 
  11930.  
  11931.     Construct a NULL string. 
  11932.  
  11933.     Construct a string with the ASCII representation of a given numeric value, 
  11934.      supporting all flavors of integer and double. 
  11935.  
  11936.     Construct a string with a copy of the specified character data, supporting 
  11937.      ASCIIZ strings, characters, and IStrings. The character data passed is 
  11938.      converted to its ASCII representation. 
  11939.  
  11940.     Construct a string with contents that consist of copies of up to three 
  11941.      buffers of arbitrary data (void*). Optionally, you only need to provide 
  11942.      the length, in which case the IString contents are initialized to a 
  11943.      specified pad character. The default character is a blank. 
  11944.  
  11945. These constructors can throw exceptions under the following conditions: 
  11946.  
  11947.     Memory allocation errors 
  11948.  
  11949.      Many factors dynamically allocate space and these allocation requests may 
  11950.      fail. If so, the User Interface Class Library translates memory allocation 
  11951.      errors into exceptions. Generally, such errors do not occur until you 
  11952.      allocate an astronomical amount of storage. 
  11953.  
  11954.     Out-of-range errors 
  11955.  
  11956.      These occur if you attempt to construct an IString with a length greater 
  11957.      than UINT_MAX. 
  11958.  
  11959.  
  11960. ΓòÉΓòÉΓòÉ <hidden> IString - Diagnostics ΓòÉΓòÉΓòÉ
  11961.  
  11962. These members provide IString diagnostic information for IString objects. 
  11963. Often, you use these members to write trace information when debugging. 
  11964.  
  11965.  
  11966. ΓòÉΓòÉΓòÉ <hidden> IString - Editing ΓòÉΓòÉΓòÉ
  11967.  
  11968. Use these members to edit a string.  All return a reference to the modified 
  11969. receiver.  Many that are length related, such as center and leftJustify, accept 
  11970. a pad character that defaults to a blank. In all cases, you can specify 
  11971. argument strings as either objects of the IString class or by using char*. 
  11972.  
  11973. Static members by the same name can be applied to an IString to obtain the 
  11974. modified IString without affecting the argument.  For example: 
  11975.  
  11976.    aString.change('\t', '   ');                   // Changes all tabs in aString to 3 blanks.
  11977.    IString s = IString::change( aString, '\t', '   ' );  // Leaves aString as is.
  11978.  
  11979.  
  11980. ΓòÉΓòÉΓòÉ <hidden> IString - Forward Searches ΓòÉΓòÉΓòÉ
  11981.  
  11982. These members permit searching a string in various ways. You can specify an 
  11983. optional index that indicates the search start position. The default starts at 
  11984. the beginning of the string. 
  11985.  
  11986.  
  11987. ΓòÉΓòÉΓòÉ <hidden> IString - Hex Conversions ΓòÉΓòÉΓòÉ
  11988.  
  11989. These members work if isHexDigits() == true; if not, they return a null string. 
  11990. The static members by the same name can be applied to a string to return the 
  11991. modified string without changing the argument string. 
  11992.  
  11993.  
  11994. ΓòÉΓòÉΓòÉ <hidden> IString - Implementation ΓòÉΓòÉΓòÉ
  11995.  
  11996. Use these members to implement this class; specifically, they initialize or set 
  11997. the underlying IBuffer data. 
  11998.  
  11999.  
  12000. ΓòÉΓòÉΓòÉ <hidden> IString - Manipulation ΓòÉΓòÉΓòÉ
  12001.  
  12002. Use these members to manipulate a string's contents. All are overloaded so that 
  12003. standard C strings can be used efficiently without constructing an equivalent 
  12004. String first. 
  12005.  
  12006.  
  12007. ΓòÉΓòÉΓòÉ <hidden> IString - NLS Testing ΓòÉΓòÉΓòÉ
  12008.  
  12009. Use these members to test the characters that comprise a string. Basically, you 
  12010. use these members to determine if an IString contains only characters from a 
  12011. specific NLS character set (SBCS, MBCS, DBCS). 
  12012.  
  12013.  
  12014. ΓòÉΓòÉΓòÉ <hidden> IString - Numeric Conversions ΓòÉΓòÉΓòÉ
  12015.  
  12016. These members work if isDigits() == true; if not, they return a null string. 
  12017. The static members by the same name can be applied to a string to return the 
  12018. modified string without changing the argument string. 
  12019.  
  12020.  
  12021. ΓòÉΓòÉΓòÉ <hidden> IString - Pattern Matching ΓòÉΓòÉΓòÉ
  12022.  
  12023. Use these members to determine if an object of this class contains a given 
  12024. pattern of characters. 
  12025.  
  12026.  
  12027. ΓòÉΓòÉΓòÉ <hidden> IString - Queries ΓòÉΓòÉΓòÉ
  12028.  
  12029. Use these members to access general information about the string. 
  12030.  
  12031.  
  12032. ΓòÉΓòÉΓòÉ <hidden> IString - Reverse Searches ΓòÉΓòÉΓòÉ
  12033.  
  12034. These members permit searching the string in various ways. The lastIndexOf 
  12035. versions correspond to forward search indexOf members but start the search from 
  12036. the end of the string. These members return the index of the last character in 
  12037. the receiver IString that satisfies the search criteria.  Also, they accept an 
  12038. optional argument that specifies where the search is to begin.  The default is 
  12039. to start searching at the end of the string.  Searching proceeds from right to 
  12040. left for these members. 
  12041.  
  12042.  
  12043. ΓòÉΓòÉΓòÉ <hidden> IString - Stream Input ΓòÉΓòÉΓòÉ
  12044.  
  12045. Use these members to read IStrings from standard C++ streams. 
  12046.  
  12047.  
  12048. ΓòÉΓòÉΓòÉ <hidden> IString - Testing ΓòÉΓòÉΓòÉ
  12049.  
  12050. Use these members to determine if an IString contains only characters from a 
  12051. predefined set. 
  12052.  
  12053.  
  12054. ΓòÉΓòÉΓòÉ <hidden> IString - Type Conversions ΓòÉΓòÉΓòÉ
  12055.  
  12056. Use these members to convert a string to various other data types.  The types 
  12057. supported are the same set as are supported by the IString constructors. 
  12058.  
  12059.  
  12060. ΓòÉΓòÉΓòÉ <hidden> IString - Utility Data ΓòÉΓòÉΓòÉ
  12061.  
  12062. These protected static data members provide useful values for implementing 
  12063. IString.  IString uses the various representation of null and zero for 
  12064. initialization and comparison purposes. 
  12065.  
  12066.  
  12067. ΓòÉΓòÉΓòÉ <hidden> IString - Word Operations ΓòÉΓòÉΓòÉ
  12068.  
  12069. These members operate on a string as a collection of words separated by 
  12070. whitespace characters. They find, remove, and count words or phrases. 
  12071.  
  12072.  
  12073. ΓòÉΓòÉΓòÉ <hidden> Protected Functions - IString ΓòÉΓòÉΓòÉ
  12074.  
  12075. Bit Operations
  12076. applyBitOp
  12077.  
  12078. Editing
  12079. change
  12080. insert
  12081. overlayWith
  12082. strip
  12083. translate
  12084.  
  12085. Forward Searches
  12086. findPhrase
  12087. indexOfWord
  12088. occurrencesOf
  12089.  
  12090. Implementation
  12091. initBuffer
  12092. setBuffer
  12093.  
  12094. Queries
  12095. buffer
  12096. data
  12097. defaultBuffer
  12098. lengthOf
  12099.  
  12100. Testing
  12101. isAbbrevFor
  12102. isLike
  12103.  
  12104.  
  12105. ΓòÉΓòÉΓòÉ <hidden> Protected Data - IString ΓòÉΓòÉΓòÉ
  12106.  
  12107. Utility Data
  12108. maxLong
  12109. null
  12110. nullBuffer
  12111. zero
  12112.  
  12113. Inherited Members
  12114. IBase
  12115. recoverable
  12116. unrecoverable
  12117.  
  12118.  
  12119. ΓòÉΓòÉΓòÉ 1.39.1. IString::applyBitOp ΓòÉΓòÉΓòÉ
  12120.  
  12121. Implements the bitwise operators &, |, and ^. 
  12122.  
  12123. protected:
  12124. IString&
  12125.   applyBitOp( const char* pArg,
  12126.               unsigned argLen,
  12127.               BitOperator op);
  12128.  
  12129.  
  12130. ΓòÉΓòÉΓòÉ 1.39.2. IString::asDebugInfo ΓòÉΓòÉΓòÉ
  12131.  
  12132. Returns information about the IString's internal representation that you can 
  12133. use for debugging. 
  12134.  
  12135. public:
  12136. IString asDebugInfo() const;
  12137.  
  12138.  
  12139. ΓòÉΓòÉΓòÉ 1.39.3. IString::asDouble ΓòÉΓòÉΓòÉ
  12140.  
  12141. Returns, as a double, the number that the string represents. 
  12142.  
  12143. public:
  12144. double asDouble() const;
  12145.  
  12146.  
  12147. ΓòÉΓòÉΓòÉ 1.39.4. IString::asInt ΓòÉΓòÉΓòÉ
  12148.  
  12149. Returns the number that the string represents as a long integer. 
  12150.  
  12151. Note:  If an IString contains nonnumeric characters, this function returns the 
  12152.        integer for the portion of the IString up to, but not including, the 
  12153.        nonnumeric character. The rest of the IString, following the invalid 
  12154.        character, is not returned. 
  12155.  
  12156. If an IString is larger than the maximum integer, this function returns the 
  12157. maximum integer, not the larger value. 
  12158.  
  12159. public:
  12160. long asInt() const;
  12161.  
  12162. Used in samples: 
  12163.  
  12164.      Lancelot - A Valiant Example: lskill.cpp 
  12165.      Lancelot - A Valiant Example: ltimec.cpp 
  12166.      Lancelot - A Valiant Example: ltimepie.cpp 
  12167.  
  12168.  
  12169. ΓòÉΓòÉΓòÉ 1.39.5. IString::asString ΓòÉΓòÉΓòÉ
  12170.  
  12171. Returns the string itself, so that IString supports this common IBaseprotocol. 
  12172.  
  12173. public:
  12174. IString asString() const;
  12175.  
  12176.  
  12177. ΓòÉΓòÉΓòÉ 1.39.6. IString::asUnsigned ΓòÉΓòÉΓòÉ
  12178.  
  12179. Returns, as an unsigned long, the integer that the string represents. 
  12180.  
  12181. public:
  12182. unsigned long asUnsigned() const;
  12183.  
  12184. Used in samples: 
  12185.  
  12186.      Container Clipboard Sample: clipbrd.cpp 
  12187.      Direct Manipulation Sample 4: dmsamp4.cpp 
  12188.  
  12189.  
  12190. ΓòÉΓòÉΓòÉ 1.39.7. IString::b2c ΓòÉΓòÉΓòÉ
  12191.  
  12192. Converts a string of binary digits to a normal string of characters. For 
  12193. example, this function changes 01 to \x01 and 00110011 to 3. 
  12194.  
  12195. Note:  This function is not locale sensitive. 
  12196.  
  12197. Overload 1 
  12198.  
  12199. public:
  12200. static IString b2c(const IString& aString);
  12201.  
  12202. Overload 2 
  12203.  
  12204. public:
  12205. IString& b2c();
  12206.  
  12207.  
  12208. ΓòÉΓòÉΓòÉ 1.39.8. IString::b2d ΓòÉΓòÉΓòÉ
  12209.  
  12210. Converts a string of binary digits to a string of decimal digits. For example, 
  12211. this function changes 00011001 to 25 and 0001001000110100 to 4660. 
  12212.  
  12213. Overload 1 
  12214.  
  12215. public:
  12216. IString& b2d();
  12217.  
  12218. Overload 2 
  12219.  
  12220. public:
  12221. static IString b2d(const IString& aString);
  12222.  
  12223.  
  12224. ΓòÉΓòÉΓòÉ 1.39.9. IString::b2x ΓòÉΓòÉΓòÉ
  12225.  
  12226. Converts a string of binary digits to a string of hexadecimal digits. For 
  12227. example, this function changes 00011011 to 1b and 10001001000110100 to 11234. 
  12228.  
  12229. Overload 1 
  12230.  
  12231. public:
  12232. IString& b2x();
  12233.  
  12234. Overload 2 
  12235.  
  12236. public:
  12237. static IString b2x(const IString& aString);
  12238.  
  12239.  
  12240. ΓòÉΓòÉΓòÉ 1.39.10. IString::buffer ΓòÉΓòÉΓòÉ
  12241.  
  12242. Returns the address of the IBuffer referred to by this IString. 
  12243.  
  12244. protected:
  12245. IBuffer* buffer() const;
  12246.  
  12247.  
  12248. ΓòÉΓòÉΓòÉ 1.39.11. IString::c2b ΓòÉΓòÉΓòÉ
  12249.  
  12250. Converts a normal string of characters to a string of binary digits. For 
  12251. example, this function changes "a" to 01100001 and 12 to 11000100110010. 
  12252.  
  12253. Note:  This function is not locale-sensitive. 
  12254.  
  12255. Overload 1 
  12256.  
  12257. public:
  12258. static IString c2b(const IString& aString);
  12259.  
  12260. Overload 2 
  12261.  
  12262. public:
  12263. IString& c2b();
  12264.  
  12265.  
  12266. ΓòÉΓòÉΓòÉ 1.39.12. IString::c2d ΓòÉΓòÉΓòÉ
  12267.  
  12268. Converts a normal string of characters to a string of decimal digits. For 
  12269. example, this function changes "a" to 97 and "ab" to 24930. 
  12270.  
  12271. Note:  This function is not locale sensitive. 
  12272.  
  12273. Overload 1 
  12274.  
  12275. public:
  12276. static IString c2d(const IString& aString);
  12277.  
  12278. Overload 2 
  12279.  
  12280. public:
  12281. IString& c2d();
  12282.  
  12283.  
  12284. ΓòÉΓòÉΓòÉ 1.39.13. IString::c2x ΓòÉΓòÉΓòÉ
  12285.  
  12286. Converts a normal string of characters to a string of hexadecimal digits. For 
  12287. example, this function changes 'a' to 61 and 'ab' to 6162. 
  12288.  
  12289. Note:  This function is not locale sensitive. 
  12290.  
  12291. Overload 1 
  12292.  
  12293. public:
  12294. static IString c2x(const IString& aString);
  12295.  
  12296. Overload 2 
  12297.  
  12298. public:
  12299. IString& c2x();
  12300.  
  12301.  
  12302. ΓòÉΓòÉΓòÉ 1.39.14. IString::center ΓòÉΓòÉΓòÉ
  12303.  
  12304. Centers the receiver within a string of the specified length. 
  12305.  
  12306. Overload 1 
  12307.  
  12308. public:
  12309. static IString
  12310.   center( const IString& aString,
  12311.           unsigned length,
  12312.           char padCharacter = ' ');
  12313.  
  12314. Overload 2 
  12315.  
  12316. public:
  12317. IString& center(unsigned length, char padCharacter = ' ');
  12318.  
  12319.  
  12320. ΓòÉΓòÉΓòÉ 1.39.15. IString::change ΓòÉΓòÉΓòÉ
  12321.  
  12322. Changes occurrences of a specified pattern to a specified replacement string. 
  12323. You can specify the number of changes to perform. The default is to change all 
  12324. occurrences of the pattern. You can also specify the position in the receiver 
  12325. at which to begin. 
  12326.  
  12327. The parameters are the following: 
  12328.  
  12329. inputString The pattern string as a reference to an object of type IString. The 
  12330.           library searches for the pattern string within the receiver's data. 
  12331.  
  12332. pInputString The pattern string as NULL-terminated string. The library searches 
  12333.           for the pattern string within the receiver's data. 
  12334.  
  12335. outputString The replacement string as a reference to an object of type 
  12336.           IString. It replaces the occurrences of the pattern string in the 
  12337.           receiver's data. 
  12338.  
  12339. pOutputString The replacement string as a NULL-terminated string. It replaces 
  12340.           the occurrences of the pattern string in the receiver's data. 
  12341.  
  12342. startPos  The position to start the search at within the receiver's data. The 
  12343.           default is 1. 
  12344.  
  12345. numChanges The number of patterns to search for and change. The default is 
  12346.           UINT_MAX, which causes changes to all occurrences of the pattern. 
  12347.  
  12348. Overload 1 
  12349.  
  12350. public:
  12351. static IString
  12352.   change( const IString& aString,
  12353.           const char* pInputString,
  12354.           const IString& outputString,
  12355.           unsigned startPos = 1,
  12356.           unsigned numChanges = ( unsigned ) UINT_MAX);
  12357.  
  12358. Overload 2 
  12359.  
  12360. public:
  12361. IString&
  12362.   change( const IString& inputString,
  12363.           const IString& outputString,
  12364.           unsigned startPos = 1,
  12365.           unsigned numChanges = ( unsigned ) UINT_MAX);
  12366.  
  12367. Overload 3 
  12368.  
  12369. public:
  12370. IString&
  12371.   change( const IString& inputString,
  12372.           const char* pOutputString,
  12373.           unsigned startPos = 1,
  12374.           unsigned numChanges = ( unsigned ) UINT_MAX);
  12375.  
  12376. Overload 4 
  12377.  
  12378. public:
  12379. IString&
  12380.   change( const char* pInputString,
  12381.           const IString& outputString,
  12382.           unsigned startPos = 1,
  12383.           unsigned numChanges = ( unsigned ) UINT_MAX);
  12384.  
  12385. Overload 5 
  12386.  
  12387. public:
  12388. IString&
  12389.   change( const char* pInputString,
  12390.           const char* pOutputString,
  12391.           unsigned startPos = 1,
  12392.           unsigned numChanges = ( unsigned ) UINT_MAX);
  12393.  
  12394. Overload 6 
  12395.  
  12396. public:
  12397. static IString
  12398.   change( const IString& aString,
  12399.           const IString& inputString,
  12400.           const IString& outputString,
  12401.           unsigned startPos = 1,
  12402.           unsigned numChanges = ( unsigned ) UINT_MAX);
  12403.  
  12404. Overload 7 
  12405.  
  12406. public:
  12407. static IString
  12408.   change( const IString& aString,
  12409.           const IString& inputString,
  12410.           const char* pOutputString,
  12411.           unsigned startPos = 1,
  12412.           unsigned numChanges = ( unsigned ) UINT_MAX);
  12413.  
  12414. Overload 8 
  12415.  
  12416. public:
  12417. static IString
  12418.   change( const IString& aString,
  12419.           const char* pInputString,
  12420.           const char* pOutputString,
  12421.           unsigned startPos = 1,
  12422.           unsigned numChanges = ( unsigned ) UINT_MAX);
  12423.  
  12424. Overload 9 
  12425.  
  12426. protected:
  12427. IString&
  12428.   change( const char* pPattern,
  12429.           unsigned patternLen,
  12430.           const char* pReplacement,
  12431.           unsigned replacementLen,
  12432.           unsigned startPos,
  12433.           unsigned numChanges);
  12434.  
  12435.  
  12436. ΓòÉΓòÉΓòÉ 1.39.16. IString::charType ΓòÉΓòÉΓòÉ
  12437.  
  12438. Returns the type of the character at the specified index. 
  12439.  
  12440. public:
  12441. IStringEnum::CharType charType(unsigned index) const;
  12442.  
  12443.  
  12444. ΓòÉΓòÉΓòÉ 1.39.17. IString::copy ΓòÉΓòÉΓòÉ
  12445.  
  12446. Replaces the receiver's contents with a specified number of replications of 
  12447. itself. 
  12448.  
  12449. Overload 1 
  12450.  
  12451. public:
  12452. static IString
  12453.   copy( const IString& aString,
  12454.         unsigned numCopies);
  12455.  
  12456. Overload 2 
  12457.  
  12458. public:
  12459. IString& copy(unsigned numCopies);
  12460.  
  12461.  
  12462. ΓòÉΓòÉΓòÉ 1.39.18. IString::d2b ΓòÉΓòÉΓòÉ
  12463.  
  12464. Converts a string of decimal digits to a string of binary digits. This function 
  12465. builds the string eight bits at a time. For example, 
  12466.  
  12467.   '12' gets converted to '00001100'
  12468.   '17' gets converted to '00010001'
  12469.   '123' gets converted to '01111011'
  12470.  Use stripLeading('0') to strip the leading zeros. 
  12471.  
  12472. Overload 1 
  12473.  
  12474. public:
  12475. IString& d2b();
  12476.  
  12477. Overload 2 
  12478.  
  12479. public:
  12480. static IString d2b(const IString& aString);
  12481.  
  12482.  
  12483. ΓòÉΓòÉΓòÉ 1.39.19. IString::d2c ΓòÉΓòÉΓòÉ
  12484.  
  12485. Converts a string of decimal digits to a normal string of characters. For 
  12486. example, this function changes 12 to \x0c and 56 to 8. 
  12487.  
  12488. Note:  This function is not locale sensitive. 
  12489.  
  12490. Overload 1 
  12491.  
  12492. public:
  12493. static IString d2c(const IString& aString);
  12494.  
  12495. Overload 2 
  12496.  
  12497. public:
  12498. IString& d2c();
  12499.  
  12500.  
  12501. ΓòÉΓòÉΓòÉ 1.39.20. IString::d2x ΓòÉΓòÉΓòÉ
  12502.  
  12503. Converts a string of decimal digits to a string of hexadecimal digits. For 
  12504. example, this function changes 12 to c and 123 to 7b. 
  12505.  
  12506. Overload 1 
  12507.  
  12508. public:
  12509. static IString d2x(const IString& aString);
  12510.  
  12511. Overload 2 
  12512.  
  12513. public:
  12514. IString& d2x();
  12515.  
  12516.  
  12517. ΓòÉΓòÉΓòÉ 1.39.21. IString::data ΓòÉΓòÉΓòÉ
  12518.  
  12519. Returns the address of the contents of the IString. 
  12520.  
  12521. protected:
  12522. char* data() const;
  12523.  
  12524.  
  12525. ΓòÉΓòÉΓòÉ 1.39.22. IString::defaultBuffer ΓòÉΓòÉΓòÉ
  12526.  
  12527. Returns a pointer to the contents of the nullBuffer data member. 
  12528.  
  12529. protected:
  12530. static char* defaultBuffer();
  12531.  
  12532.  
  12533. ΓòÉΓòÉΓòÉ 1.39.23. IString::findPhrase ΓòÉΓòÉΓòÉ
  12534.  
  12535. Locates a specified string of words for indexOfWord functions. 
  12536.  
  12537. protected:
  12538. unsigned
  12539.   findPhrase( const IString& aPhrase,
  12540.               unsigned startWord,
  12541.               IndexType charOrWord) const;
  12542.  
  12543.  
  12544. ΓòÉΓòÉΓòÉ 1.39.24. IString::includes ΓòÉΓòÉΓòÉ
  12545.  
  12546. If the receiver contains the specified search string, true is returned. 
  12547.  
  12548. Overload 1 
  12549.  
  12550. public:
  12551. Boolean includes(const IString& aString) const;
  12552.  
  12553. Overload 2 
  12554.  
  12555. public:
  12556. Boolean includes(const char* pString) const;
  12557.  
  12558. Used in samples: 
  12559.  
  12560.      Direct Manipulation Sample 2: dmsamp2.cpp 
  12561.      Direct Manipulation Sample 4: dmsamp4.cpp 
  12562.  
  12563. Overload 3 
  12564.  
  12565. public:
  12566. Boolean includes(char aChar) const;
  12567.  
  12568. Overload 4 
  12569.  
  12570. public:
  12571. Boolean includes(const IStringTest& aTest) const;
  12572.  
  12573.  
  12574. ΓòÉΓòÉΓòÉ 1.39.25. IString::includesDBCS ΓòÉΓòÉΓòÉ
  12575.  
  12576. If any characters are DBCS (double-byte character set), true is returned. 
  12577.  
  12578. Note:  This function is interchangeable with includesMBCS. 
  12579.  
  12580. public:
  12581. Boolean includesDBCS() const;
  12582.  
  12583.  
  12584. ΓòÉΓòÉΓòÉ 1.39.26. IString::includesMBCS ΓòÉΓòÉΓòÉ
  12585.  
  12586. If any characters are MBCS (multiple-byte character set), true is returned. 
  12587.  
  12588. Note:  This function is interchangeable with includesDBCS. 
  12589.  
  12590. public:
  12591. Boolean includesMBCS() const;
  12592.  
  12593.  
  12594. ΓòÉΓòÉΓòÉ 1.39.27. IString::includesSBCS ΓòÉΓòÉΓòÉ
  12595.  
  12596. If any characters are SBCS (single-byte character set), true is returned. 
  12597.  
  12598. public:
  12599. Boolean includesSBCS() const;
  12600.  
  12601.  
  12602. ΓòÉΓòÉΓòÉ 1.39.28. IString::indexOf ΓòÉΓòÉΓòÉ
  12603.  
  12604. Returns the byte index of the first occurrence of the specified string within 
  12605. the receiver. If there are no occurrences, 0 is returned. In addition to 
  12606. IStrings, you can also specify a single character or an IStringTest. 
  12607.  
  12608. Overload 1 
  12609.  
  12610. public:
  12611. unsigned
  12612.   indexOf( const char* pString,
  12613.            unsigned startPos = 1) const;
  12614.  
  12615. Overload 2 
  12616.  
  12617. public:
  12618. unsigned
  12619.   indexOf( const IString& aString,
  12620.            unsigned startPos = 1) const;
  12621.  
  12622. Overload 3 
  12623.  
  12624. public:
  12625. unsigned
  12626.   indexOf( char aCharacter,
  12627.            unsigned startPos = 1) const;
  12628.  
  12629. Overload 4 
  12630.  
  12631. public:
  12632. unsigned
  12633.   indexOf( const IStringTest& aTest,
  12634.            unsigned startPos = 1) const;
  12635.  
  12636.  
  12637. ΓòÉΓòÉΓòÉ 1.39.29. IString::indexOfAnyBut ΓòÉΓòÉΓòÉ
  12638.  
  12639. Returns the index of the first character of the receiver that is not in the 
  12640. specified set of characters. If there are no characters, 0 is returned. 
  12641. Alternatively, this function returns the index of the first character that 
  12642. fails the test prescribed by a specified IStringTestobject. 
  12643.  
  12644. Overload 1 
  12645.  
  12646. public:
  12647. unsigned
  12648.   indexOfAnyBut( const char* pValidChars,
  12649.                  unsigned startPos = 1) const;
  12650.  
  12651. Overload 2 
  12652.  
  12653. public:
  12654. unsigned
  12655.   indexOfAnyBut( const IString& validChars,
  12656.                  unsigned startPos = 1) const;
  12657.  
  12658. Overload 3 
  12659.  
  12660. public:
  12661. unsigned
  12662.   indexOfAnyBut( char validChar,
  12663.                  unsigned startPos = 1) const;
  12664.  
  12665. Overload 4 
  12666.  
  12667. public:
  12668. unsigned
  12669.   indexOfAnyBut( const IStringTest& aTest,
  12670.                  unsigned startPos = 1) const;
  12671.  
  12672.  
  12673. ΓòÉΓòÉΓòÉ 1.39.30. IString::indexOfAnyOf ΓòÉΓòÉΓòÉ
  12674.  
  12675. Returns the index of the first character of the receiver that is a character in 
  12676. the specified set of characters. If there are no characters, 0 is returned. 
  12677. Alternatively, this function returns the index of the first character that 
  12678. passes the test prescribed by a specified IStringTestobject. 
  12679.  
  12680. Overload 1 
  12681.  
  12682. public:
  12683. unsigned
  12684.   indexOfAnyOf( char searchChar,
  12685.                 unsigned startPos = 1) const;
  12686.  
  12687. Overload 2 
  12688.  
  12689. public:
  12690. unsigned
  12691.   indexOfAnyOf( const IString& searchChars,
  12692.                 unsigned startPos = 1) const;
  12693.  
  12694. Overload 3 
  12695.  
  12696. public:
  12697. unsigned
  12698.   indexOfAnyOf( const char* pSearchChars,
  12699.                 unsigned startPos = 1) const;
  12700.  
  12701. Overload 4 
  12702.  
  12703. public:
  12704. unsigned
  12705.   indexOfAnyOf( const IStringTest& aTest,
  12706.                 unsigned startPos = 1) const;
  12707.  
  12708.  
  12709. ΓòÉΓòÉΓòÉ 1.39.31. IString::indexOfPhrase ΓòÉΓòÉΓòÉ
  12710.  
  12711. Returns the position of the first occurrence of the specified phrase in the 
  12712. receiver. If the phrase is not found, 0 is returned. 
  12713.  
  12714. public:
  12715. unsigned
  12716.   indexOfPhrase( const IString& wordString,
  12717.                  unsigned startWord = 1) const;
  12718.  
  12719.  
  12720. ΓòÉΓòÉΓòÉ 1.39.32. IString::indexOfWord ΓòÉΓòÉΓòÉ
  12721.  
  12722. Returns the index of the specified white-space-delimited word in the receiver. 
  12723. If the word is not found, 0 is returned. 
  12724.  
  12725. Overload 1 
  12726.  
  12727. public:
  12728. unsigned indexOfWord(unsigned wordNumber) const;
  12729.  
  12730. Overload 2 
  12731.  
  12732. protected:
  12733. unsigned
  12734.   indexOfWord( unsigned wordNumber,
  12735.                unsigned startPos,
  12736.                unsigned numWords) const;
  12737.  
  12738.  
  12739. ΓòÉΓòÉΓòÉ 1.39.33. IString::initBuffer ΓòÉΓòÉΓòÉ
  12740.  
  12741. Resets the contents from a specified buffer or buffers. 
  12742.  
  12743. Overload 1 
  12744.  
  12745. protected:
  12746. IString& initBuffer(long n);
  12747.  
  12748. Overload 2 
  12749.  
  12750. protected:
  12751. IString& initBuffer(unsigned long n);
  12752.  
  12753. Overload 3 
  12754.  
  12755. protected:
  12756. IString& initBuffer(double d);
  12757.  
  12758. Overload 4 
  12759.  
  12760. protected:
  12761. IString&
  12762.   initBuffer( const void* p1,
  12763.               unsigned len1,
  12764.               const void* p2 = 0,
  12765.               unsigned len2 = 0,
  12766.               const void* p3 = 0,
  12767.               unsigned len3 = 0,
  12768.               char padChar = 0);
  12769.  
  12770.  
  12771. ΓòÉΓòÉΓòÉ 1.39.34. IString::insert ΓòÉΓòÉΓòÉ
  12772.  
  12773. Inserts the specified string after the specified location. 
  12774.  
  12775. Overload 1 
  12776.  
  12777. public:
  12778. static IString
  12779.   insert( const IString& aString,
  12780.           const char* pInsert,
  12781.           unsigned index = 0,
  12782.           char padCharacter = ' ');
  12783.  
  12784. Overload 2 
  12785.  
  12786. public:
  12787. IString&
  12788.   insert( const IString& aString,
  12789.           unsigned index = 0,
  12790.           char padCharacter = ' ');
  12791.  
  12792. Overload 3 
  12793.  
  12794. public:
  12795. IString&
  12796.   insert( const char* pString,
  12797.           unsigned index = 0,
  12798.           char padCharacter = ' ');
  12799.  
  12800. Overload 4 
  12801.  
  12802. public:
  12803. static IString
  12804.   insert( const IString& aString,
  12805.           const IString& anInsert,
  12806.           unsigned index = 0,
  12807.           char padCharacter = ' ');
  12808.  
  12809. Overload 5 
  12810.  
  12811. protected:
  12812. IString&
  12813.   insert( const char* pInsert,
  12814.           unsigned insertLen,
  12815.           unsigned startPos,
  12816.           char padCharacter);
  12817.  
  12818.  
  12819. ΓòÉΓòÉΓòÉ 1.39.35. IString::isAbbrevFor ΓòÉΓòÉΓòÉ
  12820.  
  12821. If the receiver is a valid abbreviation of the specified string, true is 
  12822. returned. 
  12823.  
  12824. The parameters are the following: 
  12825.  
  12826. pFullString The full string for the abbreviation check. The string can be 
  12827.           either a NULL-terminated character string or not. 
  12828.  
  12829. fullLen   The full length of the specified pFullString minus the null 
  12830.           terminator. 
  12831.  
  12832. minLen    The minimum length to match for it to be a valid abbreviation. If you 
  12833.           specify 0, the minimum length is the length of the receiver's string. 
  12834.  
  12835. protected:
  12836. Boolean
  12837.   isAbbrevFor( const char* pFullString,
  12838.                unsigned fullLen,
  12839.                unsigned minLen) const;
  12840.  
  12841.  
  12842. ΓòÉΓòÉΓòÉ 1.39.36. IString::isAbbreviationFor ΓòÉΓòÉΓòÉ
  12843.  
  12844. If the receiver is a valid abbreviation of the specified string, true is 
  12845. returned. 
  12846.  
  12847. The parameters are the following: 
  12848.  
  12849. fullString The full string for the abbreviation check is contained in another 
  12850.           IString. 
  12851.  
  12852. pFullString The full string for the abbreviation check is a NULL-terminated 
  12853.           character string. 
  12854.  
  12855. minAbbrevLength The minimum length to match for it to be a valid abbreviation. 
  12856.           The default minimum length is 0, which means the minimum length is 
  12857.           the length of the receiver's string. 
  12858.  
  12859. Overload 1 
  12860.  
  12861. public:
  12862. Boolean
  12863.   isAbbreviationFor( const IString& fullString,
  12864.                      unsigned minAbbrevLength = 0) const;
  12865.  
  12866. Overload 2 
  12867.  
  12868. public:
  12869. Boolean
  12870.   isAbbreviationFor( const char* pFullString,
  12871.                      unsigned minAbbrevLength = 0) const;
  12872.  
  12873.  
  12874. ΓòÉΓòÉΓòÉ 1.39.37. IString::isAlphabetic ΓòÉΓòÉΓòÉ
  12875.  
  12876. If all the characters are in {'A'-'Z','a'-'z'}, true is returned. 
  12877.  
  12878. public:
  12879. Boolean isAlphabetic() const;
  12880.  
  12881. Used in samples: 
  12882.  
  12883.      Notify Sample: notify.cpp 
  12884.      Lancelot - A Valiant Example: lproject.cpp 
  12885.  
  12886.  
  12887. ΓòÉΓòÉΓòÉ 1.39.38. IString::isAlphanumeric ΓòÉΓòÉΓòÉ
  12888.  
  12889. If all the characters are in {'A'-'Z','a'-'z','0'-'9'}, true is returned. 
  12890.  
  12891. public:
  12892. Boolean isAlphanumeric() const;
  12893.  
  12894. Used in samples: 
  12895.  
  12896.      Lancelot - A Valiant Example: lgenl.cpp 
  12897.      Lancelot - A Valiant Example: lacct.cpp 
  12898.      Lancelot - A Valiant Example: lbadge.cpp 
  12899.      Lancelot - A Valiant Example: lskill.cpp 
  12900.      Lancelot - A Valiant Example: lstatus.cpp 
  12901.  
  12902.  
  12903. ΓòÉΓòÉΓòÉ 1.39.39. IString::isASCII ΓòÉΓòÉΓòÉ
  12904.  
  12905. If all the characters are in {0x00-0x7F}, true is returned. 
  12906.  
  12907. public:
  12908. Boolean isASCII() const;
  12909.  
  12910.  
  12911. ΓòÉΓòÉΓòÉ 1.39.40. IString::isBinaryDigits ΓòÉΓòÉΓòÉ
  12912.  
  12913. If all the characters are either 0 or 1, true is returned. 
  12914.  
  12915. public:
  12916. Boolean isBinaryDigits() const;
  12917.  
  12918.  
  12919. ΓòÉΓòÉΓòÉ 1.39.41. IString::isControl ΓòÉΓòÉΓòÉ
  12920.  
  12921. Returns true if all the characters are control characters. Control characters 
  12922. are determined using the iscntrl() C Library function defined in the cntrl 
  12923. locale source file and in the cntrl class of the LC_CTYPE category of the 
  12924. current locale. For example, on ASCII operating systems, control characters are 
  12925. those in the range {0x00-0x1F,0x7F}. 
  12926.  
  12927. public:
  12928. Boolean isControl() const;
  12929.  
  12930.  
  12931. ΓòÉΓòÉΓòÉ 1.39.42. IString::isDBCS ΓòÉΓòÉΓòÉ
  12932.  
  12933. If all the characters are DBCS, true is returned. 
  12934.  
  12935. Note:  This function is interchangeable with isMBCS. 
  12936.  
  12937. public:
  12938. Boolean isDBCS() const;
  12939.  
  12940.  
  12941. ΓòÉΓòÉΓòÉ 1.39.43. IString::isDigits ΓòÉΓòÉΓòÉ
  12942.  
  12943. If all the characters are in {'0'-'9'}, true is returned. 
  12944.  
  12945. public:
  12946. Boolean isDigits() const;
  12947.  
  12948.  
  12949. ΓòÉΓòÉΓòÉ 1.39.44. IString::isGraphics ΓòÉΓòÉΓòÉ
  12950.  
  12951. Returns true if all the characters are graphics characters. 
  12952.  
  12953. Graphics characters are printable characters excluding the space character, as 
  12954. defined by the isgraph() C Library function in the graph locale source file and 
  12955. in the graph class of the LC_CTYPE category of the current locale. On ASCII 
  12956. systems, for example, graphics characters are those in the range {0x21-0x7E}. 
  12957.  
  12958. public:
  12959. Boolean isGraphics() const;
  12960.  
  12961.  
  12962. ΓòÉΓòÉΓòÉ 1.39.45. IString::isHexDigits ΓòÉΓòÉΓòÉ
  12963.  
  12964. If all the characters are in {'0'-'9','A'-'F','a'-'f'}, true is returned. 
  12965.  
  12966. public:
  12967. Boolean isHexDigits() const;
  12968.  
  12969.  
  12970. ΓòÉΓòÉΓòÉ 1.39.46. IString::isLike ΓòÉΓòÉΓòÉ
  12971.  
  12972. If the receiver matches the specified pattern, which can contain wildcard 
  12973. characters, true is returned. 
  12974.  
  12975.     You can use the first wildcard character to specify that 0 or more 
  12976.      arbitrary characters are accepted. The default wildcard character that 
  12977.      does this is *, but you can specify another character when calling 
  12978.      IString::isLike. For example: 
  12979.  
  12980.           IString( "Allison" ).isLike( "Al*ison" ) -> true
  12981.  
  12982.     You can use the second wildcard character to specify that a single 
  12983.      arbitrary character is accepted. The default wildcard character that does 
  12984.      this is ?, but you can specify another character when calling 
  12985.      IString::isLike. For example: 
  12986.  
  12987.           IString( "istring7.cpp" ).isLike( "i*.?pp" ) -> true
  12988.           IString( "Not a question!" ).isLike( "*?", '*', '-' ) -> false
  12989.  
  12990. Overload 1 
  12991.  
  12992. public:
  12993. Boolean
  12994.   isLike( const IString& aPattern,
  12995.           char zeroOrMore = ' * ',
  12996.           char anyChar = '?') const;
  12997.  
  12998. Overload 2 
  12999.  
  13000. public:
  13001. Boolean
  13002.   isLike( const char* pPattern,
  13003.           char zeroOrMore = ' * ',
  13004.           char anyChar = '?') const;
  13005.  
  13006. Overload 3 
  13007.  
  13008. protected:
  13009. Boolean
  13010.   isLike( const char* pPattern,
  13011.           unsigned patternLen,
  13012.           char zeroOrMore,
  13013.           char anyChar) const;
  13014.  
  13015.  
  13016. ΓòÉΓòÉΓòÉ 1.39.47. IString::isLowerCase ΓòÉΓòÉΓòÉ
  13017.  
  13018. If all the characters are in {'a'-'z'}, true is returned. 
  13019.  
  13020. public:
  13021. Boolean isLowerCase() const;
  13022.  
  13023.  
  13024. ΓòÉΓòÉΓòÉ 1.39.48. IString::isMBCS ΓòÉΓòÉΓòÉ
  13025.  
  13026. If all the characters are MBCS, true is returned. 
  13027.  
  13028. Note:  This function is interchangeable with isDBCS. 
  13029.  
  13030. public:
  13031. Boolean isMBCS() const;
  13032.  
  13033.  
  13034. ΓòÉΓòÉΓòÉ 1.39.49. IString::isPrintable ΓòÉΓòÉΓòÉ
  13035.  
  13036. Returns true if all the characters are printable characters. Printable 
  13037. characters are defined by the isprint() C Library function as defined in the 
  13038. print locale source file and in the print class of the LC_CTYPE category of the 
  13039. current locale. On ASCII systems, for example, printable characters are those 
  13040. in the range {0x20-0x7E}. 
  13041.  
  13042. public:
  13043. Boolean isPrintable() const;
  13044.  
  13045.  
  13046. ΓòÉΓòÉΓòÉ 1.39.50. IString::isPunctuation ΓòÉΓòÉΓòÉ
  13047.  
  13048. If none of the characters is white space, a control character, or an 
  13049. alphanumeric character, true is returned. 
  13050.  
  13051. public:
  13052. Boolean isPunctuation() const;
  13053.  
  13054.  
  13055. ΓòÉΓòÉΓòÉ 1.39.51. IString::isSBCS ΓòÉΓòÉΓòÉ
  13056.  
  13057. If all the characters are SBCS, true is returned. 
  13058.  
  13059. public:
  13060. Boolean isSBCS() const;
  13061.  
  13062.  
  13063. ΓòÉΓòÉΓòÉ 1.39.52. IString::IString ΓòÉΓòÉΓòÉ
  13064.  
  13065. You can construct objects of this class in the following ways: 
  13066.  
  13067.     Construct a NULL string. 
  13068.  
  13069.     Construct a string with the ASCII representation of a given numeric value, 
  13070.      supporting all flavors of integer and double. 
  13071.  
  13072.     Construct a string with a copy of the specified character data, supporting 
  13073.      ASCIIZ strings, characters, and IStrings. The character data passed is 
  13074.      converted to its ASCII representation. 
  13075.  
  13076.     Construct a string with contents that consist of copies of up to three 
  13077.      buffers of arbitrary data (void*). Optionally, you only need to provide 
  13078.      the length, in which case the IString contents are initialized to a 
  13079.      specified pad character. The default character is a blank. 
  13080.  
  13081. These constructors can throw exceptions under the following conditions: 
  13082.  
  13083.     Memory allocation errors 
  13084.  
  13085.      Many factors dynamically allocate space and these allocation requests may 
  13086.      fail. If so, the User Interface Class Library translates memory allocation 
  13087.      errors into exceptions. Generally, such errors do not occur until you 
  13088.      allocate an astronomical amount of storage. 
  13089.  
  13090.     Out-of-range errors 
  13091.  
  13092.      These occur if you attempt to construct an IString with a length greater 
  13093.      than UINT_MAX. 
  13094.  
  13095. Overload 1 
  13096.  
  13097. public:
  13098. IString(short);
  13099.  
  13100. Construct a string with the ASCII representation of a short numeric value. 
  13101.  
  13102. Overload 2 
  13103.  
  13104. public:
  13105. IString();
  13106.  
  13107. Construct a NULL string. 
  13108.  
  13109. Used in samples: 
  13110.  
  13111.      Hello World Sample - Version 6: ahellow6.cpp 
  13112.      Notify Sample: notify.cpp 
  13113.      DDE Client Sample: aclient.cpp 
  13114.      DDE Server Sample: aserver.cpp 
  13115.      Direct Manipulation Sample 4: dmsamp4.cpp 
  13116.  
  13117. Overload 3 
  13118.  
  13119. public:
  13120. IString(const IString& aString);
  13121.  
  13122. Construct a string with a copy of the specified IString. 
  13123.  
  13124. Used in samples: 
  13125.  
  13126.      Hello World Sample - Version 4: ahellow4.cpp 
  13127.      Hello World Sample - Version 6: ahellow6.cpp 
  13128.      Multi-Line Entry Field Sample: amle.cpp 
  13129.      Notify Sample: notify.cpp 
  13130.      DDE Client Sample: aclient.cpp 
  13131.  
  13132. Overload 4 
  13133.  
  13134. public:
  13135. IString(int);
  13136.  
  13137. Construct a string with the ASCII representation of an integer value. 
  13138.  
  13139. Used in samples: 
  13140.  
  13141.      Hello World Sample - Version 6: ahellow6.cpp 
  13142.      Version Sample: version.cpp 
  13143.      Multimedia MMREMOTE Sample: mmremote.cpp 
  13144.      Lancelot - A Valiant Example: ltimec.cpp 
  13145.  
  13146. Overload 5 
  13147.  
  13148. public:
  13149. IString(unsigned);
  13150.  
  13151. Construct a string with the ASCII representation of an unsigned numeric value. 
  13152.  
  13153. Overload 6 
  13154.  
  13155. public:
  13156. IString(long);
  13157.  
  13158. Construct a string with the ASCII representation of a long numeric value. 
  13159.  
  13160. Used in samples: 
  13161.  
  13162.      DDE Client Sample: aclient.cpp 
  13163.      Lancelot - A Valiant Example: ltimec.cpp 
  13164.  
  13165. Overload 7 
  13166.  
  13167. public:
  13168. IString(unsigned long);
  13169.  
  13170. Construct a string with the ASCII representation of an unsigned long numeric 
  13171. value. 
  13172.  
  13173. Used in samples: 
  13174.  
  13175.      List Box Sample: alistbox.cpp 
  13176.      Set Canvas Sample: asetcv.cpp 
  13177.      Container Clipboard Sample: clipbrd.cpp 
  13178.      DDE Server Sample: aserver.cpp 
  13179.      Multimedia MMREMOTE Sample: mmremote.cpp 
  13180.  
  13181. Overload 8 
  13182.  
  13183. public:
  13184. IString(unsigned short);
  13185.  
  13186. Construct a string with the ASCII representation of an unsigned short numeric 
  13187. value. 
  13188.  
  13189. Overload 9 
  13190.  
  13191. public:
  13192. IString(double);
  13193.  
  13194. Construct a string with the ASCII representation of a double numeric value. 
  13195.  
  13196. Overload 10 
  13197.  
  13198. public:
  13199. IString(char);
  13200.  
  13201. Construct a string with a copy of the character. The string length is set to 1. 
  13202.  
  13203. Used in sample:   Direct Manipulation Sample 4: dmsamp4.cpp 
  13204.  
  13205. Overload 11 
  13206.  
  13207. public:
  13208. IString(unsigned char);
  13209.  
  13210. Construct a string with a copy of the unsigned character. The string length is 
  13211. set to 1. 
  13212.  
  13213. Overload 12 
  13214.  
  13215. public:
  13216. IString(signed char);
  13217.  
  13218. Construct a string with a copy of the signed character. The string length is 
  13219. set to 1. 
  13220.  
  13221. Overload 13 
  13222.  
  13223. public:
  13224. IString(const char*);
  13225.  
  13226. Construct a string with a copy of the specified ASCIIZ string. 
  13227.  
  13228. Used in samples: 
  13229.  
  13230.      List Box Sample: alistbox.cpp 
  13231.      Message Box Sample: msgbox.cpp 
  13232.      Notify Sample: notify.cpp 
  13233.      Tool Bar Sample 1: tbar1.cpp 
  13234.      Tool Bar Sample 2: tbar2.cpp 
  13235.  
  13236. Overload 14 
  13237.  
  13238. public:
  13239. IString(const unsigned char*);
  13240.  
  13241. Construct a string with a copy of the specified unsigned ASCIIZ string. 
  13242.  
  13243. Overload 15 
  13244.  
  13245. public:
  13246. IString(const signed char*);
  13247.  
  13248. Construct a string with a copy of the specified signed ASCIIZ string. 
  13249.  
  13250. Overload 16 
  13251.  
  13252. public:
  13253. IString( const void* pBuffer1,
  13254.          unsigned lenBuffer1,
  13255.          char padCharacter = ' ');
  13256.  
  13257. Construct a string with contents from one buffer of arbitrary data (void*). 
  13258.  
  13259. Overload 17 
  13260.  
  13261. public:
  13262. IString( const void* pBuffer1,
  13263.          unsigned lenBuffer1,
  13264.          const void* pBuffer2,
  13265.          unsigned lenBuffer2,
  13266.          char padCharacter = ' ');
  13267.  
  13268. Construct a string with contents from two buffers of arbitrary data (void*). 
  13269.  
  13270. Overload 18 
  13271.  
  13272. public:
  13273. IString( const void* pBuffer1,
  13274.          unsigned lenBuffer1,
  13275.          const void* pBuffer2,
  13276.          unsigned lenBuffer2,
  13277.          const void* pBuffer3,
  13278.          unsigned lenBuffer3,
  13279.          char padCharacter = ' ');
  13280.  
  13281. Construct a string with contents from three buffers of arbitrary data (void*). 
  13282.  
  13283.  
  13284. ΓòÉΓòÉΓòÉ 1.39.53. IString::isUpperCase ΓòÉΓòÉΓòÉ
  13285.  
  13286. If all the characters are in {'A'-'Z'}, true is returned. 
  13287.  
  13288. public:
  13289. Boolean isUpperCase() const;
  13290.  
  13291.  
  13292. ΓòÉΓòÉΓòÉ 1.39.54. IString::isValidDBCS ΓòÉΓòÉΓòÉ
  13293.  
  13294. If no DBCS characters have a 0 second byte, true is returned. 
  13295.  
  13296. Note:  This function is interchangeable with isValidMBCS. 
  13297.  
  13298. public:
  13299. Boolean isValidDBCS() const;
  13300.  
  13301.  
  13302. ΓòÉΓòÉΓòÉ 1.39.55. IString::isValidMBCS ΓòÉΓòÉΓòÉ
  13303.  
  13304. If no MBCS characters have a 0 second byte, true is returned. 
  13305.  
  13306. Note:  This function is interchangeable with isValidDBCS. 
  13307.  
  13308. public:
  13309. Boolean isValidMBCS() const;
  13310.  
  13311.  
  13312. ΓòÉΓòÉΓòÉ 1.39.56. IString::isWhiteSpace ΓòÉΓòÉΓòÉ
  13313.  
  13314. Returns true if all the characters are whitespace characters. Whitespace 
  13315. characters are defined by the isspace() C Library function as defined in the 
  13316. space locale source file and in the space class of the LC_CTYPE category of the 
  13317. current locale.  For example, on ASCII systems, whitespace characters are those 
  13318. in the range {0x09-0x0D,0x20}. 
  13319.  
  13320. public:
  13321. Boolean isWhiteSpace() const;
  13322.  
  13323.  
  13324. ΓòÉΓòÉΓòÉ 1.39.57. IString::lastIndexOf ΓòÉΓòÉΓòÉ
  13325.  
  13326. Returns the index of the last occurrence of the specified string or character. 
  13327. The search starts at the position specified by startPos (inclusive) and 
  13328. proceeds backward. The returned value is in the range 0 <= x <= startPos. The 
  13329. default of UINT_MAX starts the search at the end of the receiver's string. If 
  13330. the search target is not found, 0 is returned. 
  13331.  
  13332. If you specify 1 for startPos, the search starts at the beginning of the 
  13333. string. Therefore, because the search proceeds backward from its starting 
  13334. position, in this case the search target must occur at the beginning of the 
  13335. string for it to be found. 
  13336.  
  13337. Overload 1 
  13338.  
  13339. public:
  13340. unsigned
  13341.   lastIndexOf( char aCharacter,
  13342.                unsigned startPos = ( unsigned ) UINT_MAX) const;
  13343.  
  13344. Overload 2 
  13345.  
  13346. public:
  13347. unsigned
  13348.   lastIndexOf( const IString& aString,
  13349.                unsigned startPos = ( unsigned ) UINT_MAX) const;
  13350.  
  13351. Overload 3 
  13352.  
  13353. public:
  13354. unsigned
  13355.   lastIndexOf( const char* pString,
  13356.                unsigned startPos = ( unsigned ) UINT_MAX) const;
  13357.  
  13358. Overload 4 
  13359.  
  13360. public:
  13361. unsigned
  13362.   lastIndexOf( const IStringTest& aTest,
  13363.                unsigned startPos = ( unsigned ) UINT_MAX) const;
  13364.  
  13365.  
  13366. ΓòÉΓòÉΓòÉ 1.39.58. IString::lastIndexOfAnyBut ΓòÉΓòÉΓòÉ
  13367.  
  13368. Returns the index of the last character not in the specified string or 
  13369. character. The search starts at the position specified by startPos (inclusive) 
  13370. and proceeds backward. The default of UINT_MAX starts the search at the end of 
  13371. the receiver's string. If the search target is not found, 0 is returned. 
  13372.  
  13373. If you specify 1 for startPos, the search starts at the beginning of the 
  13374. string. Therefore, because the search proceeds backward from its starting 
  13375. position, in this case the search target must occur at the beginning of the 
  13376. string for it to be found. 
  13377.  
  13378. Overload 1 
  13379.  
  13380. public:
  13381. unsigned
  13382.   lastIndexOfAnyBut( const IStringTest& aTest,
  13383.                      unsigned startPos = ( unsigned ) UINT_MAX) const;
  13384.  
  13385. Overload 2 
  13386.  
  13387. public:
  13388. unsigned
  13389.   lastIndexOfAnyBut( const IString& validChars,
  13390.                      unsigned startPos = ( unsigned ) UINT_MAX) const;
  13391.  
  13392. Overload 3 
  13393.  
  13394. public:
  13395. unsigned
  13396.   lastIndexOfAnyBut( const char* pValidChars,
  13397.                      unsigned startPos = ( unsigned ) UINT_MAX) const;
  13398.  
  13399. Overload 4 
  13400.  
  13401. public:
  13402. unsigned
  13403.   lastIndexOfAnyBut( char validChar,
  13404.                      unsigned startPos = ( unsigned ) UINT_MAX) const;
  13405.  
  13406.  
  13407. ΓòÉΓòÉΓòÉ 1.39.59. IString::lastIndexOfAnyOf ΓòÉΓòÉΓòÉ
  13408.  
  13409. Returns the index of the last character in the specified string or character. 
  13410. The search starts at the position specified by startPos (inclusive) and 
  13411. proceeds backward. The default of UINT_MAX starts the search at the end of the 
  13412. receiver's string. If the search target is not found, 0 is returned. 
  13413.  
  13414. If you specify 1 for startPos, the search starts at the beginning of the 
  13415. string. Therefore, because the search proceeds backward from its starting 
  13416. position, in this case the search target must occur at the beginning of the 
  13417. string for it to be found. 
  13418.  
  13419. Overload 1 
  13420.  
  13421. public:
  13422. unsigned
  13423.   lastIndexOfAnyOf( char searchChar,
  13424.                     unsigned startPos = ( unsigned ) UINT_MAX) const;
  13425.  
  13426. Overload 2 
  13427.  
  13428. public:
  13429. unsigned
  13430.   lastIndexOfAnyOf( const IString& searchChars,
  13431.                     unsigned startPos = ( unsigned ) UINT_MAX) const;
  13432.  
  13433. Overload 3 
  13434.  
  13435. public:
  13436. unsigned
  13437.   lastIndexOfAnyOf( const char* pSearchChars,
  13438.                     unsigned startPos = ( unsigned ) UINT_MAX) const;
  13439.  
  13440. Overload 4 
  13441.  
  13442. public:
  13443. unsigned
  13444.   lastIndexOfAnyOf( const IStringTest& aTest,
  13445.                     unsigned startPos = ( unsigned ) UINT_MAX) const;
  13446.  
  13447.  
  13448. ΓòÉΓòÉΓòÉ 1.39.60. IString::leftJustify ΓòÉΓòÉΓòÉ
  13449.  
  13450. Left-justifies the receiver in a string of the specified length. If the new 
  13451. length (length) is larger than the current length, the string is extended by 
  13452. the pad character (padCharacter). The default pad character is a blank. 
  13453.  
  13454. Overload 1 
  13455.  
  13456. public:
  13457. IString&
  13458.   leftJustify( unsigned length,
  13459.                char padCharacter = ' ');
  13460.  
  13461. Overload 2 
  13462.  
  13463. public:
  13464. static IString
  13465.   leftJustify( const IString& aString,
  13466.                unsigned length,
  13467.                char padCharacter = ' ');
  13468.  
  13469.  
  13470. ΓòÉΓòÉΓòÉ 1.39.61. IString::length ΓòÉΓòÉΓòÉ
  13471.  
  13472. Returns the length of the string, not counting the terminating NULL character. 
  13473.  
  13474. public:
  13475. unsigned length() const;
  13476.  
  13477. Used in samples: 
  13478.  
  13479.      Tool Bar Sample 1: tbar1.cpp 
  13480.      Tool Bar Sample 2: tbar2.cpp 
  13481.      2D Graphics Sample: 2d-draw.cpp 
  13482.      Lancelot - A Valiant Example: linfowin.cpp 
  13483.  
  13484.  
  13485. ΓòÉΓòÉΓòÉ 1.39.62. IString::lengthOf ΓòÉΓòÉΓòÉ
  13486.  
  13487. Returns the length of a C character array. 
  13488.  
  13489. protected:
  13490. static unsigned lengthOf(const char* p);
  13491.  
  13492.  
  13493. ΓòÉΓòÉΓòÉ 1.39.63. IString::lengthOfWord ΓòÉΓòÉΓòÉ
  13494.  
  13495. Returns the length of the specified white-space-delimited word in the receiver. 
  13496.  
  13497. public:
  13498. unsigned lengthOfWord(unsigned wordNumber) const;
  13499.  
  13500.  
  13501. ΓòÉΓòÉΓòÉ 1.39.64. IString::lineFrom ΓòÉΓòÉΓòÉ
  13502.  
  13503. Returns the next line from the specified input stream. This static function 
  13504. accepts an optional line delimiter, which defaults to \n. The resulting IString 
  13505. contains the characters up to the next occurrence of the delimiter. The 
  13506. delimiter character is skipped. If an EOF condition occurs, this function 
  13507. returns an IString whose contents are NULL. 
  13508.  
  13509. public:
  13510. static IString
  13511.   lineFrom( istream& aStream,
  13512.             char delim = '\n');
  13513.  
  13514.  
  13515. ΓòÉΓòÉΓòÉ 1.39.65. IString::lowerCase ΓòÉΓòÉΓòÉ
  13516.  
  13517. Translates all upper-case letters in the receiver to lower-case. 
  13518.  
  13519. Overload 1 
  13520.  
  13521. public:
  13522. IString& lowerCase();
  13523.  
  13524. Used in sample:   Direct Manipulation Sample 2: dmsamp2.cpp 
  13525.  
  13526. Overload 2 
  13527.  
  13528. public:
  13529. static IString lowerCase(const IString& aString);
  13530.  
  13531.  
  13532. ΓòÉΓòÉΓòÉ 1.39.66. IString::maxLong ΓòÉΓòÉΓòÉ
  13533.  
  13534. The maximum value of a long, with 32-bit unsigned long integers. 
  13535.  
  13536. protected:
  13537. static const char* maxLong;
  13538.  
  13539. Presentation Manager: This value is "2147483647" on OS/2 with 32-bit unsigned 
  13540. long integers. 
  13541.  
  13542.  
  13543. ΓòÉΓòÉΓòÉ 1.39.67. IString::null ΓòÉΓòÉΓòÉ
  13544.  
  13545. A string that contains no element. 
  13546.  
  13547. protected:
  13548. static const char* null;
  13549.  
  13550.  
  13551. ΓòÉΓòÉΓòÉ 1.39.68. IString::nullBuffer ΓòÉΓòÉΓòÉ
  13552.  
  13553. A pointer to the null buffer's contents. 
  13554.  
  13555. protected:
  13556. static char* nullBuffer;
  13557.  
  13558.  
  13559. ΓòÉΓòÉΓòÉ 1.39.69. IString::numWords ΓòÉΓòÉΓòÉ
  13560.  
  13561. Returns the number of words in the receiver. 
  13562.  
  13563. public:
  13564. unsigned numWords() const;
  13565.  
  13566.  
  13567. ΓòÉΓòÉΓòÉ 1.39.70. IString::occurrencesOf ΓòÉΓòÉΓòÉ
  13568.  
  13569. Returns the number of occurrences of the specified IString, char*, char, or 
  13570. IStringTest. If you just want a Boolean test, this is slower than 
  13571. IString::indexOf. 
  13572.  
  13573. Overload 1 
  13574.  
  13575. public:
  13576. unsigned
  13577.   occurrencesOf( const IString& aString,
  13578.                  unsigned startPos = 1) const;
  13579.  
  13580. Overload 2 
  13581.  
  13582. public:
  13583. unsigned
  13584.   occurrencesOf( const char* pString,
  13585.                  unsigned startPos = 1) const;
  13586.  
  13587. Overload 3 
  13588.  
  13589. public:
  13590. unsigned
  13591.   occurrencesOf( char aCharacter,
  13592.                  unsigned startPos = 1) const;
  13593.  
  13594. Overload 4 
  13595.  
  13596. public:
  13597. unsigned
  13598.   occurrencesOf( const IStringTest& aTest,
  13599.                  unsigned startPos = 1) const;
  13600.  
  13601. Overload 5 
  13602.  
  13603. protected:
  13604. unsigned
  13605.   occurrencesOf( const char* pSearchString,
  13606.                  unsigned searchLen,
  13607.                  unsigned startPos) const;
  13608.  
  13609.  
  13610. ΓòÉΓòÉΓòÉ 1.39.71. IString::operator & ΓòÉΓòÉΓòÉ
  13611.  
  13612. Performs bitwise AND. This function can handle the following three forms: 
  13613.  
  13614. string1 & aString 
  13615.      Both operands are of type IString. 
  13616.  
  13617. string1 & pString 
  13618.      The first operand is an IString and the second is a NULL-terminated 
  13619.      character string. 
  13620.  
  13621. pString & aString 
  13622.      The first operand is a NULL-terminated character string and the second is 
  13623.      an IString. 
  13624.  
  13625. Overload 1 
  13626.  
  13627. public:
  13628. IString operator &(const IString& aString) const;
  13629.  
  13630. Overload 2 
  13631.  
  13632. public:
  13633. IString operator &(const char* pString) const;
  13634.  
  13635.  
  13636. ΓòÉΓòÉΓòÉ 1.39.72. IString::operator &= ΓòÉΓòÉΓòÉ
  13637.  
  13638. Performs bitwise AND and replaces the receiver. This function can handle the 
  13639. following two forms: 
  13640.  
  13641. string1 &= aString 
  13642.      Both operands are of type IString. 
  13643.  
  13644. string1 &= pString 
  13645.      The first operand is an IString and the second is a NULL-terminated 
  13646.      character string. 
  13647.  
  13648. Overload 1 
  13649.  
  13650. public:
  13651. IString& operator &=(const IString& aString);
  13652.  
  13653. Overload 2 
  13654.  
  13655. public:
  13656. IString& operator &=(const char* pString);
  13657.  
  13658.  
  13659. ΓòÉΓòÉΓòÉ 1.39.73. IString::operator + ΓòÉΓòÉΓòÉ
  13660.  
  13661. Concatenates two strings. This function can handle the following three forms: 
  13662.  
  13663. string1 + aString 
  13664.      Both operands are of type IString. 
  13665.  
  13666. string1 + pString 
  13667.      The first operand is an IString and the second is a NULL-terminated 
  13668.      character string. 
  13669.  
  13670. pString + aString 
  13671.      The first operand is a NULL-terminated character string and the second is 
  13672.      an IString. 
  13673.  
  13674. Overload 1 
  13675.  
  13676. public:
  13677. IString operator +(const char* pString) const;
  13678.  
  13679. Used in samples: 
  13680.  
  13681.      Hello World Sample - Version 6: ahellow6.cpp 
  13682.      Version Sample: version.cpp 
  13683.      Container Clipboard Sample: clipbrd.cpp 
  13684.      Multimedia MMSTEREO Sample: mltwave.cpp 
  13685.      Lancelot - A Valiant Example: lmainwin.cpp 
  13686.  
  13687. Overload 2 
  13688.  
  13689. public:
  13690. IString operator +(const IString& aString) const;
  13691.  
  13692. Used in samples: 
  13693.  
  13694.      List Box Sample: alistbox.cpp 
  13695.      Multi Cell Canvas Sample: amcelcv.cpp 
  13696.      Container Clipboard Sample: clipbrd.cpp 
  13697.      DDE Client Sample: aclient.cpp 
  13698.      DDE Server Sample: aserver.cpp 
  13699.  
  13700.  
  13701. ΓòÉΓòÉΓòÉ 1.39.74. IString::operator += ΓòÉΓòÉΓòÉ
  13702.  
  13703. Concatenates the specified string to the receiver and replaces the receiver. 
  13704. This function can handle the following two forms: 
  13705.  
  13706. string1 += aString 
  13707.      Both operands are of type IString. 
  13708.  
  13709. string1 += pString 
  13710.      The first operand is an IString and the second is a NULL-terminated 
  13711.      character string. 
  13712.  
  13713. Overload 1 
  13714.  
  13715. public:
  13716. IString& operator +=(const char* pString);
  13717.  
  13718. Used in samples: 
  13719.  
  13720.      Multi-Line Entry Field Sample: amle.cpp 
  13721.      Lancelot - A Valiant Example: lpagectl.cpp 
  13722.  
  13723. Overload 2 
  13724.  
  13725. public:
  13726. IString& operator +=(const IString& aString);
  13727.  
  13728. Used in samples: 
  13729.  
  13730.      Multi-Line Entry Field Sample: amle.cpp 
  13731.      Message Box Sample: msgbox.cpp 
  13732.      Multi Cell Canvas Sample: amcelcv.cpp 
  13733.      Direct Manipulation Sample 4: dmsamp4.cpp 
  13734.      Lancelot - A Valiant Example: lproject.cpp 
  13735.  
  13736.  
  13737. ΓòÉΓòÉΓòÉ 1.39.75. IString::operator = ΓòÉΓòÉΓòÉ
  13738.  
  13739. Replaces the contents of the string. 
  13740.  
  13741. public:
  13742. IString& operator =(const IString& aString);
  13743.  
  13744. Used in samples: 
  13745.  
  13746.      Hello World Sample - Version 4: adialog4.cpp 
  13747.      Hello World Sample - Version 5: adialog5.cpp 
  13748.      Hello World Sample - Version 6: ahellow6.cpp 
  13749.      Multi-Line Entry Field Sample: amle.cpp 
  13750.      Notify Sample: notify.cpp 
  13751.  
  13752.  
  13753. ΓòÉΓòÉΓòÉ 1.39.76. IString::operator char * ΓòÉΓòÉΓòÉ
  13754.  
  13755. Returns a char* pointer to the string's contents. 
  13756.  
  13757. public:
  13758. operator char *() const;
  13759.  
  13760.  
  13761. ΓòÉΓòÉΓòÉ 1.39.77. IString::operator signed char * ΓòÉΓòÉΓòÉ
  13762.  
  13763. Returns a signed char* pointer to the string's contents. 
  13764.  
  13765. public:
  13766. operator signed char *() const;
  13767.  
  13768.  
  13769. ΓòÉΓòÉΓòÉ 1.39.78. IString::operator unsigned char * ΓòÉΓòÉΓòÉ
  13770.  
  13771. Returns an unsigned char* pointer to the string's contents. 
  13772.  
  13773. public:
  13774. operator unsigned char *() const;
  13775.  
  13776.  
  13777. ΓòÉΓòÉΓòÉ 1.39.79. IString::operator [] ΓòÉΓòÉΓòÉ
  13778.  
  13779. Returns a reference to the specified character of the string. 
  13780.  
  13781. Note:  If you call the non-const version of this function with an index beyond 
  13782.        the end, the function extends the string. 
  13783.  
  13784. Overload 1 
  13785.  
  13786. public:
  13787. char& operator [](unsigned index);
  13788.  
  13789. Overload 2 
  13790.  
  13791. public:
  13792. const char& operator [](unsigned index) const;
  13793.  
  13794. Exceptions 
  13795.  
  13796. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  13797. ΓöéIInvalidRequest     ΓöéPassed an index larger than the string  Γöé
  13798. Γöé                    Γöésize. Possible causes include, boundary Γöé
  13799. Γöé                    Γöéerrors and using this function instead  Γöé
  13800. Γöé                    Γöéof the non-const version which grows theΓöé
  13801. Γöé                    Γöéunderlying IString buffer to accommodateΓöé
  13802. Γöé                    Γöéthe index value.                        Γöé
  13803. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  13804.  
  13805.  
  13806. ΓòÉΓòÉΓòÉ 1.39.80. IString::operator ^ ΓòÉΓòÉΓòÉ
  13807.  
  13808. Performs bitwise XOR. This function can handle the following three forms: 
  13809.  
  13810. string1 ^ aString 
  13811.      Both operands are of type IString. 
  13812.  
  13813. string1 ^ pString 
  13814.      The first operand is an IString and the second is a NULL-terminated 
  13815.      character string. 
  13816.  
  13817. pString ^ aString 
  13818.      The first operand is a NULL-terminated character string and the second is 
  13819.      an IString. 
  13820.  
  13821. Overload 1 
  13822.  
  13823. public:
  13824. IString operator ^(const IString& aString) const;
  13825.  
  13826. Overload 2 
  13827.  
  13828. public:
  13829. IString operator ^(const char* pString) const;
  13830.  
  13831.  
  13832. ΓòÉΓòÉΓòÉ 1.39.81. IString::operator ^= ΓòÉΓòÉΓòÉ
  13833.  
  13834. Performs bitwise XOR and replaces the receiver. This function can handle the 
  13835. following two forms: 
  13836.  
  13837. string1 ^= aString 
  13838.      Both operands are of type IString. 
  13839.  
  13840. string1 ^= pString 
  13841.      The first operand is an IString and the second is a NULL-terminated 
  13842.      character string. 
  13843.  
  13844. Overload 1 
  13845.  
  13846. public:
  13847. IString& operator ^=(const char* pString);
  13848.  
  13849. Overload 2 
  13850.  
  13851. public:
  13852. IString& operator ^=(const IString& aString);
  13853.  
  13854.  
  13855. ΓòÉΓòÉΓòÉ 1.39.82. IString::operator | ΓòÉΓòÉΓòÉ
  13856.  
  13857. Performs bitwise OR. This function can handle the following three forms: 
  13858.  
  13859. string1 | aString 
  13860.      Both operands are of type IString. 
  13861.  
  13862. string1 | pString 
  13863.      The first operand is an IString and the second is a NULL-terminated 
  13864.      character string. 
  13865.  
  13866. pString | aString 
  13867.      The first operand is a NULL-terminated character string and the second is 
  13868.      an IString. 
  13869.  
  13870. Overload 1 
  13871.  
  13872. public:
  13873. IString operator |(const char* pString) const;
  13874.  
  13875. Overload 2 
  13876.  
  13877. public:
  13878. IString operator |(const IString& aString) const;
  13879.  
  13880.  
  13881. ΓòÉΓòÉΓòÉ 1.39.83. IString::operator |= ΓòÉΓòÉΓòÉ
  13882.  
  13883. Performs bitwise OR and replaces the receiver with the resulting string. This 
  13884. function can handle the following two forms: 
  13885.  
  13886. string1 |= aString 
  13887.      Both operands are of type IString. 
  13888.  
  13889. string1 |= pString 
  13890.      The first operand is an IString and the second is a NULL-terminated 
  13891.      character string. 
  13892.  
  13893. Overload 1 
  13894.  
  13895. public:
  13896. IString& operator |=(const IString& aString);
  13897.  
  13898. Overload 2 
  13899.  
  13900. public:
  13901. IString& operator |=(const char* pString);
  13902.  
  13903.  
  13904. ΓòÉΓòÉΓòÉ 1.39.84. IString::operator ~ ΓòÉΓòÉΓòÉ
  13905.  
  13906. Returns the string's bitwise negation (the string's complement). 
  13907.  
  13908. public:
  13909. IString operator ~() const;
  13910.  
  13911.  
  13912. ΓòÉΓòÉΓòÉ 1.39.85. IString::overlayWith ΓòÉΓòÉΓòÉ
  13913.  
  13914. Replaces a specified portion of the receiver's contents with the specified 
  13915. string. The overlay starts in the receiver's data at the index, which defaults 
  13916. to 1. If index is beyond the end of the receiver's data, it is padded with the 
  13917. pad character (padCharacter). 
  13918.  
  13919. Overload 1 
  13920.  
  13921. public:
  13922. IString&
  13923.   overlayWith( const char* pString,
  13924.                unsigned index = 1,
  13925.                char padCharacter = ' ');
  13926.  
  13927. Overload 2 
  13928.  
  13929. public:
  13930. IString&
  13931.   overlayWith( const IString& aString,
  13932.                unsigned index = 1,
  13933.                char padCharacter = ' ');
  13934.  
  13935. Overload 3 
  13936.  
  13937. public:
  13938. static IString
  13939.   overlayWith( const IString& aString,
  13940.                const IString& anOverlay,
  13941.                unsigned index = 1,
  13942.                char padCharacter = ' ');
  13943.  
  13944. Overload 4 
  13945.  
  13946. public:
  13947. static IString
  13948.   overlayWith( const IString& aString,
  13949.                const char* pOverlay,
  13950.                unsigned index = 1,
  13951.                char padCharacter = ' ');
  13952.  
  13953. Overload 5 
  13954.  
  13955. protected:
  13956. IString&
  13957.   overlayWith( const char* pOverlay,
  13958.                unsigned overlayLen,
  13959.                unsigned index,
  13960.                char padCharacter);
  13961.  
  13962.  
  13963. ΓòÉΓòÉΓòÉ 1.39.86. IString::remove ΓòÉΓòÉΓòÉ
  13964.  
  13965. Deletes the specified portion of the string (that is, the substring) from the 
  13966. receiver. You can use this function to truncate an IString object at a specific 
  13967. position. For example: 
  13968.  
  13969. aString.remove(8);
  13970. removes the substring beginning at index 8 and takes the rest of the string as 
  13971. a default. 
  13972.  
  13973. Overload 1 
  13974.  
  13975. public:
  13976. IString& remove(unsigned startPos);
  13977.  
  13978. Overload 2 
  13979.  
  13980. public:
  13981. IString& remove(unsigned startPos, unsigned numChars);
  13982.  
  13983. Overload 3 
  13984.  
  13985. public:
  13986. static IString
  13987.   remove( const IString& aString,
  13988.           unsigned startPos);
  13989.  
  13990. Overload 4 
  13991.  
  13992. public:
  13993. static IString
  13994.   remove( const IString& aString,
  13995.           unsigned startPos,
  13996.           unsigned numChars);
  13997.  
  13998.  
  13999. ΓòÉΓòÉΓòÉ 1.39.87. IString::removeWords ΓòÉΓòÉΓòÉ
  14000.  
  14001. Deletes the specified words from the receiver's contents. You can specify the 
  14002. words by using a starting word number and the number of words. The latter 
  14003. defaults to the rest of the string. 
  14004.  
  14005. Note:  The static functions IString::spaceand IString::removeWords obtain the 
  14006.        same result but do not affect the String to which they are applied. 
  14007.  
  14008. Overload 1 
  14009.  
  14010. public:
  14011. IString& removeWords(unsigned firstWord, unsigned numWords);
  14012.  
  14013. Overload 2 
  14014.  
  14015. public:
  14016. IString& removeWords(unsigned firstWord);
  14017.  
  14018. Overload 3 
  14019.  
  14020. public:
  14021. static IString
  14022.   removeWords( const IString& aString,
  14023.                unsigned startWord);
  14024.  
  14025. Overload 4 
  14026.  
  14027. public:
  14028. static IString
  14029.   removeWords( const IString& aString,
  14030.                unsigned startWord,
  14031.                unsigned numWords);
  14032.  
  14033.  
  14034. ΓòÉΓòÉΓòÉ 1.39.88. IString::reverse ΓòÉΓòÉΓòÉ
  14035.  
  14036. Reverses the receiver's contents. 
  14037.  
  14038. Overload 1 
  14039.  
  14040. public:
  14041. IString& reverse();
  14042.  
  14043. Overload 2 
  14044.  
  14045. public:
  14046. static IString reverse(const IString& aString);
  14047.  
  14048.  
  14049. ΓòÉΓòÉΓòÉ 1.39.89. IString::rightJustify ΓòÉΓòÉΓòÉ
  14050.  
  14051. Right-justifies the receiver in a string of the specified length. If the 
  14052. receiver's data is shorter than the requested length (length), it is padded on 
  14053. the left with the pad character (padCharacter). The default pad character is a 
  14054. blank. 
  14055.  
  14056. Overload 1 
  14057.  
  14058. public:
  14059. IString&
  14060.   rightJustify( unsigned length,
  14061.                 char padCharacter = ' ');
  14062.  
  14063. Overload 2 
  14064.  
  14065. public:
  14066. static IString
  14067.   rightJustify( const IString& aString,
  14068.                 unsigned length,
  14069.                 char padCharacter = ' ');
  14070.  
  14071.  
  14072. ΓòÉΓòÉΓòÉ 1.39.90. IString::setBuffer ΓòÉΓòÉΓòÉ
  14073.  
  14074. Sets the private data member to point to a new IBufferobject. 
  14075.  
  14076. protected:
  14077. IString& setBuffer(IBuffer* ibuff);
  14078.  
  14079.  
  14080. ΓòÉΓòÉΓòÉ 1.39.91. IString::size ΓòÉΓòÉΓòÉ
  14081.  
  14082. Returns the length of the string, not counting the terminating NULL character. 
  14083.  
  14084. public:
  14085. unsigned size() const;
  14086.  
  14087. Used in samples: 
  14088.  
  14089.      Multi-Line Entry Field Sample: amle.cpp 
  14090.      Container Clipboard Sample: clipbrd.cpp 
  14091.      DDE Client Sample: aclient.cpp 
  14092.  
  14093.  
  14094. ΓòÉΓòÉΓòÉ 1.39.92. IString::space ΓòÉΓòÉΓòÉ
  14095.  
  14096. Modifies the receiver so that all words are separated by the specified number 
  14097. of blanks. The default is one blank. All white space is converted to simple 
  14098. blanks. 
  14099.  
  14100. Note:  The static functions IString::space and IString::removeWords obtain the 
  14101.        same result but do not affect the String to which they are applied. 
  14102.  
  14103. Overload 1 
  14104.  
  14105. public:
  14106. static IString
  14107.   space( const IString& aString,
  14108.          unsigned numSpaces = 1,
  14109.          char spaceChar = ' ');
  14110.  
  14111. Overload 2 
  14112.  
  14113. public:
  14114. IString&
  14115.   space( unsigned numSpaces = 1,
  14116.          char spaceChar = ' ');
  14117.  
  14118.  
  14119. ΓòÉΓòÉΓòÉ 1.39.93. IString::strip ΓòÉΓòÉΓòÉ
  14120.  
  14121. Strips both leading and trailing character or characters. You can specify the 
  14122. character or characters as the following: 
  14123.  
  14124.     A single char 
  14125.     A char* array 
  14126.     An IStringobject 
  14127.     An IStringTestobject 
  14128. The default is white space. 
  14129.  
  14130. Overload 1 
  14131.  
  14132. public:
  14133. IString& strip();
  14134.  
  14135. Overload 2 
  14136.  
  14137. public:
  14138. IString& strip(char aCharacter);
  14139.  
  14140. Overload 3 
  14141.  
  14142. public:
  14143. IString& strip(const IString& aString);
  14144.  
  14145. Overload 4 
  14146.  
  14147. public:
  14148. IString& strip(const char* pString);
  14149.  
  14150. Overload 5 
  14151.  
  14152. public:
  14153. IString& strip(const IStringTest& aTest);
  14154.  
  14155. Overload 6 
  14156.  
  14157. public:
  14158. static IString strip(const IString& aString, char aChar);
  14159.  
  14160. Overload 7 
  14161.  
  14162. public:
  14163. static IString
  14164.   strip( const IString& aString,
  14165.          const IString& aStringOfChars);
  14166.  
  14167. Overload 8 
  14168.  
  14169. public:
  14170. static IString
  14171.   strip( const IString& aString,
  14172.          const char* pStringOfChars);
  14173.  
  14174. Overload 9 
  14175.  
  14176. public:
  14177. static IString
  14178.   strip( const IString& aString,
  14179.          const IStringTest& aTest);
  14180.  
  14181. Overload 10 
  14182.  
  14183. protected:
  14184. IString&
  14185.   strip( const char* p,
  14186.          unsigned len,
  14187.          IStringEnum::StripMode mode);
  14188.  
  14189. Overload 11 
  14190.  
  14191. protected:
  14192. IString&
  14193.   strip( const IStringTest& aTest,
  14194.          IStringEnum::StripMode mode);
  14195.  
  14196.  
  14197. ΓòÉΓòÉΓòÉ 1.39.94. IString::stripBlanks ΓòÉΓòÉΓòÉ
  14198.  
  14199. Strips both leading and trailing white space. 
  14200.  
  14201. Note:  This function is the static version of IString::strip, which has been 
  14202.        renamed to avoid a duplicate definition. 
  14203.  
  14204. public:
  14205. static IString stripBlanks(const IString& aString);
  14206.  
  14207.  
  14208. ΓòÉΓòÉΓòÉ 1.39.95. IString::stripLeading ΓòÉΓòÉΓòÉ
  14209.  
  14210. Strips the leading character or characters. 
  14211.  
  14212. Overload 1 
  14213.  
  14214. public:
  14215. static IString
  14216.   stripLeading( const IString& aString,
  14217.                 const IString& aStringOfChars);
  14218.  
  14219. Overload 2 
  14220.  
  14221. public:
  14222. IString& stripLeading();
  14223.  
  14224. Overload 3 
  14225.  
  14226. public:
  14227. IString& stripLeading(char aCharacter);
  14228.  
  14229. Overload 4 
  14230.  
  14231. public:
  14232. IString& stripLeading(const IString& aString);
  14233.  
  14234. Overload 5 
  14235.  
  14236. public:
  14237. IString& stripLeading(const char* pString);
  14238.  
  14239. Overload 6 
  14240.  
  14241. public:
  14242. IString& stripLeading(const IStringTest& aTest);
  14243.  
  14244. Overload 7 
  14245.  
  14246. public:
  14247. static IString
  14248.   stripLeading( const IString& aString,
  14249.                 char aChar);
  14250.  
  14251. Overload 8 
  14252.  
  14253. public:
  14254. static IString
  14255.   stripLeading( const IString& aString,
  14256.                 const char* pStringOfChars);
  14257.  
  14258. Overload 9 
  14259.  
  14260. public:
  14261. static IString
  14262.   stripLeading( const IString& aString,
  14263.                 const IStringTest& aTest);
  14264.  
  14265.  
  14266. ΓòÉΓòÉΓòÉ 1.39.96. IString::stripLeadingBlanks ΓòÉΓòÉΓòÉ
  14267.  
  14268. Strips the leading character or characters. 
  14269.  
  14270. Note:  This function is the static version of IString::stripLeading, which has 
  14271.        been renamed to avoid a duplicate definition. 
  14272.  
  14273. public:
  14274. static IString stripLeadingBlanks(const IString& aString);
  14275.  
  14276.  
  14277. ΓòÉΓòÉΓòÉ 1.39.97. IString::stripTrailing ΓòÉΓòÉΓòÉ
  14278.  
  14279. Strips the trailing character or characters. 
  14280.  
  14281. Overload 1 
  14282.  
  14283. public:
  14284. static IString
  14285.   stripTrailing( const IString& aString,
  14286.                  char aChar);
  14287.  
  14288. Overload 2 
  14289.  
  14290. public:
  14291. IString& stripTrailing();
  14292.  
  14293. Overload 3 
  14294.  
  14295. public:
  14296. IString& stripTrailing(char aCharacter);
  14297.  
  14298. Overload 4 
  14299.  
  14300. public:
  14301. IString& stripTrailing(const IString& aString);
  14302.  
  14303. Overload 5 
  14304.  
  14305. public:
  14306. IString& stripTrailing(const char* pString);
  14307.  
  14308. Overload 6 
  14309.  
  14310. public:
  14311. IString& stripTrailing(const IStringTest& aTest);
  14312.  
  14313. Overload 7 
  14314.  
  14315. public:
  14316. static IString
  14317.   stripTrailing( const IString& aString,
  14318.                  const IString& aStringOfChars);
  14319.  
  14320. Overload 8 
  14321.  
  14322. public:
  14323. static IString
  14324.   stripTrailing( const IString& aString,
  14325.                  const char* pStringOfChars);
  14326.  
  14327. Overload 9 
  14328.  
  14329. public:
  14330. static IString
  14331.   stripTrailing( const IString& aString,
  14332.                  const IStringTest& aTest);
  14333.  
  14334.  
  14335. ΓòÉΓòÉΓòÉ 1.39.98. IString::stripTrailingBlanks ΓòÉΓòÉΓòÉ
  14336.  
  14337. Strips the trailing character or characters. 
  14338.  
  14339. Note:  This function is the static version of IString::stripTrailing, which has 
  14340.        been renamed to avoid a duplicate definition. 
  14341.  
  14342. public:
  14343. static IString stripTrailingBlanks(const IString& aString);
  14344.  
  14345.  
  14346. ΓòÉΓòÉΓòÉ 1.39.99. IString::subString ΓòÉΓòÉΓòÉ
  14347.  
  14348. Returns a specified portion of the string (that is, the substring) of the 
  14349. receiver. 
  14350.  
  14351. The parameters are the following: 
  14352.  
  14353. startPos  The starting position of the substring being extracted. If this 
  14354.           position is beyond the end of the data in the receiver, this function 
  14355.           returns a NULL IString. 
  14356.  
  14357. length    The length of the substring to be extracted. If the length extends 
  14358.           beyond the end of the receiver's data, the returned IString is padded 
  14359.           to the specified length with padCharacter. If you do not specify 
  14360.           length and it defaults, this function uses the rest of the receiver's 
  14361.           data starting from startPos for padding. 
  14362.  
  14363. padCharacter The character the function uses as padding if the requested length 
  14364.           extends beyond the end of the receiver's data. The default 
  14365.           padCharacter is a blank. 
  14366. You can use this function to truncate an IString object at a specific position. 
  14367. For example: 
  14368.  
  14369. aString = aString.subString(1, 7);
  14370. returns the substring concluding with index 7 and discards the rest of the 
  14371. string. 
  14372.  
  14373. Overload 1 
  14374.  
  14375. public:
  14376. IString
  14377.   subString( unsigned startPos,
  14378.              unsigned length,
  14379.              char padCharacter = ' ') const;
  14380.  
  14381. Overload 2 
  14382.  
  14383. public:
  14384. IString subString(unsigned startPos) const;
  14385.  
  14386.  
  14387. ΓòÉΓòÉΓòÉ 1.39.100. IString::translate ΓòÉΓòÉΓòÉ
  14388.  
  14389. Converts all of the receiver's characters that are in the first specified 
  14390. string to the corresponding character in the second specified string. 
  14391.  
  14392. Overload 1 
  14393.  
  14394. public:
  14395. static IString
  14396.   translate( const IString& aString,
  14397.              const char* pInputChars,
  14398.              const IString& outputChars,
  14399.              char padCharacter = ' ');
  14400.  
  14401. Overload 2 
  14402.  
  14403. public:
  14404. IString&
  14405.   translate( const IString& inputChars,
  14406.              const IString& outputChars,
  14407.              char padCharacter = ' ');
  14408.  
  14409. Overload 3 
  14410.  
  14411. public:
  14412. IString&
  14413.   translate( const IString& inputChars,
  14414.              const char* pOutputChars,
  14415.              char padCharacter = ' ');
  14416.  
  14417. Overload 4 
  14418.  
  14419. public:
  14420. IString&
  14421.   translate( const char* pInputChars,
  14422.              const IString& outputChars,
  14423.              char padCharacter = ' ');
  14424.  
  14425. Overload 5 
  14426.  
  14427. public:
  14428. IString&
  14429.   translate( const char* pInputChars,
  14430.              const char* pOutputChars,
  14431.              char padCharacter = ' ');
  14432.  
  14433. Overload 6 
  14434.  
  14435. public:
  14436. static IString
  14437.   translate( const IString& aString,
  14438.              const IString& inputChars,
  14439.              const IString& outputChars,
  14440.              char padCharacter = ' ');
  14441.  
  14442. Overload 7 
  14443.  
  14444. public:
  14445. static IString
  14446.   translate( const IString& aString,
  14447.              const IString& inputChars,
  14448.              const char* pOutputChars,
  14449.              char padCharacter = ' ');
  14450.  
  14451. Overload 8 
  14452.  
  14453. public:
  14454. static IString
  14455.   translate( const IString& aString,
  14456.              const char* pInputChars,
  14457.              const char* pOutputChars,
  14458.              char padCharacter = ' ');
  14459.  
  14460. Overload 9 
  14461.  
  14462. protected:
  14463. IString&
  14464.   translate( const char* pInputChars,
  14465.              unsigned inputLen,
  14466.              const char* pOutputChars,
  14467.              unsigned outputLen,
  14468.              char padCharacter);
  14469.  
  14470.  
  14471. ΓòÉΓòÉΓòÉ 1.39.101. IString::upperCase ΓòÉΓòÉΓòÉ
  14472.  
  14473. Translates all lower-case letters in the receiver to upper-case. 
  14474.  
  14475. Overload 1 
  14476.  
  14477. public:
  14478. static IString upperCase(const IString& aString);
  14479.  
  14480. Overload 2 
  14481.  
  14482. public:
  14483. IString& upperCase();
  14484.  
  14485.  
  14486. ΓòÉΓòÉΓòÉ 1.39.102. IString::word ΓòÉΓòÉΓòÉ
  14487.  
  14488. Returns a copy of the specified white-space-delimited word in the receiver. 
  14489.  
  14490. public:
  14491. IString word(unsigned wordNumber) const;
  14492.  
  14493.  
  14494. ΓòÉΓòÉΓòÉ 1.39.103. IString::wordIndexOfPhrase ΓòÉΓòÉΓòÉ
  14495.  
  14496. Returns the word number of the first word in the receiver that matches the 
  14497. specified phrase. The function starts its search with the word number you 
  14498. specify in startWord, which defaults to 1. If the phrase is not found, 0 is 
  14499. returned. 
  14500.  
  14501. public:
  14502. unsigned
  14503.   wordIndexOfPhrase( const IString& aPhrase,
  14504.                      unsigned startWord = 1) const;
  14505.  
  14506.  
  14507. ΓòÉΓòÉΓòÉ 1.39.104. IString::words ΓòÉΓòÉΓòÉ
  14508.  
  14509. Returns a substring of the receiver that starts at a specified word and is 
  14510. comprised of a specified number of words. The word separators are copied to the 
  14511. result intact. 
  14512.  
  14513. Overload 1 
  14514.  
  14515. public:
  14516. IString words(unsigned firstWord, unsigned numWords) const;
  14517.  
  14518. Overload 2 
  14519.  
  14520. public:
  14521. IString words(unsigned firstWord) const;
  14522.  
  14523.  
  14524. ΓòÉΓòÉΓòÉ 1.39.105. IString::x2b ΓòÉΓòÉΓòÉ
  14525.  
  14526. Converts a string of hexadecimal digits to a string of binary digits. For 
  14527. example, this function changes a1c to 101000011100 and f3 to 11110011. 
  14528.  
  14529. Overload 1 
  14530.  
  14531. public:
  14532. static IString x2b(const IString& aString);
  14533.  
  14534. Overload 2 
  14535.  
  14536. public:
  14537. IString& x2b();
  14538.  
  14539.  
  14540. ΓòÉΓòÉΓòÉ 1.39.106. IString::x2c ΓòÉΓòÉΓòÉ
  14541.  
  14542. Converts a string of hexadecimal digits to a normal string of characters. For 
  14543. example, this function changes 8 to \x08 and 31393935 to 1995. 
  14544.  
  14545. Note:  This function is not locale sensitive. 
  14546.  
  14547. Overload 1 
  14548.  
  14549. public:
  14550. IString& x2c();
  14551.  
  14552. Overload 2 
  14553.  
  14554. public:
  14555. static IString x2c(const IString& aString);
  14556.  
  14557.  
  14558. ΓòÉΓòÉΓòÉ 1.39.107. IString::x2d ΓòÉΓòÉΓòÉ
  14559.  
  14560. Converts a string of hexadecimal digits to a string of decimal digits. For 
  14561. example, this function changes a1c to 2588 and 10000 to 65536. 
  14562.  
  14563. Overload 1 
  14564.  
  14565. public:
  14566. IString& x2d();
  14567.  
  14568. Overload 2 
  14569.  
  14570. public:
  14571. static IString x2d(const IString& aString);
  14572.  
  14573.  
  14574. ΓòÉΓòÉΓòÉ 1.39.108. IString::zero ΓòÉΓòÉΓòÉ
  14575.  
  14576. The number 0. 
  14577.  
  14578. protected:
  14579. static const char* zero;
  14580.  
  14581.  
  14582. ΓòÉΓòÉΓòÉ 1.39.109. IString::~IString ΓòÉΓòÉΓòÉ
  14583.  
  14584. public:
  14585. ~IString();
  14586.  
  14587.  
  14588. ΓòÉΓòÉΓòÉ <hidden> Nested Types - IString ΓòÉΓòÉΓòÉ
  14589.  
  14590. Type Definitions 
  14591.  
  14592.       BitOperator 
  14593.       IndexType 
  14594.  
  14595.  
  14596. ΓòÉΓòÉΓòÉ <hidden> Type Definition - IString::BitOperator ΓòÉΓòÉΓòÉ
  14597.  
  14598. typedef enum { and , or , exclusiveOr } BitOperator;
  14599.  
  14600. Use these enumerators to specify the bit operator to apply to the applyBitOp 
  14601. function. Valid bit operators are as follows: 
  14602.  
  14603.     and 
  14604.     or 
  14605.     exclusiveOr 
  14606.  
  14607.  
  14608. ΓòÉΓòÉΓòÉ <hidden> Type Definition - IString::IndexType ΓòÉΓòÉΓòÉ
  14609.  
  14610. typedef enum { charIndex , wordIndex } IndexType;
  14611.  
  14612. These enumerators specify whether the result from the findPhrase function is a 
  14613. word index or a character index: 
  14614.  
  14615. charIndex 
  14616.      Returns the result as the byte index within the string 
  14617.  
  14618. wordIndex 
  14619.      Returns the result as the index of the matching word. For example, the 
  14620.      first word is 1, the second word is 2, and so forth. 
  14621.  
  14622. Related Enumeration 
  14623.  
  14624.      BitOperator 
  14625.  
  14626.  
  14627. ΓòÉΓòÉΓòÉ 1.40. IStringEnum ΓòÉΓòÉΓòÉ
  14628.  
  14629. Description 
  14630.  
  14631. Derivation 
  14632.  
  14633. Nested Types 
  14634.  
  14635. To close all the panels in a chapter, double click on this panel's system menu. 
  14636.  
  14637.  
  14638. ΓòÉΓòÉΓòÉ <hidden> Derivation - IStringEnum ΓòÉΓòÉΓòÉ
  14639.  
  14640. Inherits from none. 
  14641.  
  14642. Inherited by none. 
  14643.  
  14644.  
  14645. ΓòÉΓòÉΓòÉ <hidden> Class Description - IStringEnum ΓòÉΓòÉΓòÉ
  14646.  
  14647. istrenum.hpp 
  14648.  
  14649. The IStringEnum class serves as a repository for enumeration types related to 
  14650. the IString class. The User Interface Class Library places these enumeration 
  14651. types here so they can easily be shared between code that implements the 
  14652. classes IString, IBuffer, and IDBCSBuffer. 
  14653.  
  14654.  
  14655. ΓòÉΓòÉΓòÉ <hidden> IStringEnum - Character Type ΓòÉΓòÉΓòÉ
  14656.  
  14657. This enum describes character set specifications, IBuffer and IDBCSBuffer use 
  14658. these. Note the code for mbcs must be the same as the length of the 
  14659. corresponding characters. 
  14660.  
  14661.  
  14662. ΓòÉΓòÉΓòÉ <hidden> IStringEnum - StripMode ΓòÉΓòÉΓòÉ
  14663.  
  14664. This enum supports stripping of characters from strings. 
  14665.  
  14666.  
  14667. ΓòÉΓòÉΓòÉ <hidden> Nested Types - IStringEnum ΓòÉΓòÉΓòÉ
  14668.  
  14669. Type Definitions 
  14670.  
  14671.       CharType 
  14672.       StripMode 
  14673.  
  14674.  
  14675. ΓòÉΓòÉΓòÉ <hidden> Type Definition - IStringEnum::CharType ΓòÉΓòÉΓòÉ
  14676.  
  14677. typedef enum { sbcs , dbcs1 = 1 , mbcs1 = 1 , dbcs2 = 2 ,
  14678.                mbcs2 = 2 , mbcs3 = 3 , mbcs4 = 4 } CharType;
  14679.  
  14680. These enumerators specify the various types of characters that comprise an 
  14681. IString: 
  14682.  
  14683. sbcs 
  14684.      The IString contains single-byte character set (SBCS) characters. 
  14685.  
  14686. dbcs1 
  14687.      The IString contains the first byte of a double-byte character support 
  14688.      (DBCS) character. 
  14689.  
  14690. dbcs2 
  14691.      The IString contains the second byte of a double-byte character support 
  14692.      (DBCS) character. 
  14693.  
  14694.  
  14695. ΓòÉΓòÉΓòÉ <hidden> Type Definition - IStringEnum::StripMode ΓòÉΓòÉΓòÉ
  14696.  
  14697. typedef enum { leading , trailing , both } StripMode;
  14698.  
  14699. Enumeration that defines the mode of various functions that strip leading 
  14700. characters, trailing characters, or both from IStrings. 
  14701.  
  14702. Related Enumeration 
  14703.  
  14704.      CharType 
  14705.  
  14706.  
  14707. ΓòÉΓòÉΓòÉ 1.41. IStringParser ΓòÉΓòÉΓòÉ
  14708.  
  14709. Description 
  14710.  
  14711. Derivation 
  14712.  
  14713. Public Functions 
  14714.  
  14715. Protected Functions 
  14716.  
  14717. Protected Data 
  14718.  
  14719. Nested Types 
  14720.  
  14721. To close all the panels in a chapter, double click on this panel's system menu. 
  14722.  
  14723.  
  14724. ΓòÉΓòÉΓòÉ <hidden> Derivation - IStringParser ΓòÉΓòÉΓòÉ
  14725.  
  14726. IBase
  14727.   Γöé
  14728. IStringParser
  14729.  
  14730. Inherited by none. 
  14731.  
  14732.  
  14733. ΓòÉΓòÉΓòÉ <hidden> Class Description - IStringParser ΓòÉΓòÉΓòÉ
  14734.  
  14735. istparse.hpp 
  14736.  
  14737. Objects of this class enable you to parse the content of an IString and place 
  14738. portions of the string into other strings. You can limit the parsing of a 
  14739. string by specifying the following: 
  14740.  
  14741.     Patterns that must be matched 
  14742.     Relative or absolute column numbers 
  14743. This class's functions work much like the REXX parse statement. 
  14744.  
  14745. Typically, you create IStringParser objects implicitly by applying the 
  14746. right-shift operator to an IString. IStringParser also provides the right-shift 
  14747. operator as a member function so you can chain together invocations of the 
  14748. operator. For example, a typical expression using IStringParser objects might 
  14749. look like the following: 
  14750.  
  14751. aFileName >> drive >> ':' >> path;
  14752.  
  14753. The right-shift operator does one of four things, depending on the type of the 
  14754. right-hand operand: 
  14755.  
  14756. IString        The string parser object sets this string to the next token from 
  14757.                the text being parsed. 
  14758.  
  14759. pattern        The parser advances to the next character beyond the occurrence 
  14760.                of that pattern in its text. The pattern can be any of the 
  14761.                following: 
  14762.  
  14763.                const char*    Searches for the sequence of characters described 
  14764.                               by the character array. 
  14765.  
  14766.                const IString  Searches for the sequence of characters described 
  14767.                               by the string. Note that the treatment of a const 
  14768.                               IString is fundamentally different from the 
  14769.                               treatment of a non-const IString. 
  14770.  
  14771.                char           Searches for the next occurrence of the specified 
  14772.                               character. 
  14773.  
  14774.                IStringTest    Searches for the next character in the text for 
  14775.                               which the string test object returns true. . 
  14776.  
  14777. number         The current parser text position is adjusted by the specified 
  14778.                amount. The value can be positive or negative. 
  14779.  
  14780. special        IStringParser defines special right-shift operands that perform 
  14781.                the following special-purpose parser operations: 
  14782.  
  14783.                IStringParser::reset     This enumerator resets the parser text 
  14784.                                         position to 1. 
  14785.  
  14786.                IStringParser::skip      This enumerator skips one token in the 
  14787.                                         text. It is equivalent to >> temp, 
  14788.                                         where temp is a temporary IString that 
  14789.                                         is discarded. This is equivalent to 
  14790.                                         using '.' in REXX. 
  14791.  
  14792.                IStringParser::Skip      An object of this class skips a given 
  14793.                                         number of tokens. 
  14794. You can also use the left-shift operator with an unsigned numeric parameter. 
  14795. This repositions the parser object to the specified column. Note that the 
  14796. parameter is not relative as it is in the case of the right-shift operator. 
  14797. Instead, it is an absolute column position. 
  14798.  
  14799.  
  14800. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IStringParser ΓòÉΓòÉΓòÉ
  14801.  
  14802. Absolute Column Positioning
  14803. operator <<
  14804.  
  14805. Commands
  14806. operator >>
  14807.  
  14808. Constructors
  14809. ~IStringParser
  14810.  
  14811. Pattern Matching
  14812. operator >>
  14813.  
  14814. Relative Column Positioning
  14815. operator >>
  14816.  
  14817. Tokens
  14818. operator >>
  14819.  
  14820. Inherited Members
  14821. IBase
  14822. asDebugInfo
  14823. asString
  14824. messageFile
  14825. messageText
  14826. setMessageFile
  14827. version
  14828.  
  14829.  
  14830. ΓòÉΓòÉΓòÉ <hidden> IStringParser - Absolute Column Positioning ΓòÉΓòÉΓòÉ
  14831.  
  14832. Use these members to reset the parser text position to an absolute column 
  14833. number. 
  14834.  
  14835.  
  14836. ΓòÉΓòÉΓòÉ <hidden> IStringParser - Commands ΓòÉΓòÉΓòÉ
  14837.  
  14838. Use these members to permit special-purpose parsing techniques.  They allow you 
  14839. to handle special commands and to skip objects. 
  14840.  
  14841.  
  14842. ΓòÉΓòÉΓòÉ <hidden> IStringParser - Constructors ΓòÉΓòÉΓòÉ
  14843.  
  14844. The destructor member is the default.  The constructor members are protected to 
  14845. prevent you from creating objects except via use of the shift operators. 
  14846.  
  14847. You can construct a string parser object by providing: 
  14848.  
  14849.     a string that defines the text to be parsed 
  14850.     an existing parser object (copy constructor) 
  14851.  
  14852. Note that usually you will construct parser objects by applying the right-shift 
  14853. operator to a string.  The constructor is protected to prevent you from 
  14854. creating objects except via use of those operators.  Creation is prevented 
  14855. because of the nature of string parser objects.  Since they hold references to 
  14856. operands, it is unwise to permit the objects to persist beyond the scope of 
  14857. those operands. 
  14858.  
  14859.  
  14860. ΓòÉΓòÉΓòÉ <hidden> IStringParser - Initialization ΓòÉΓòÉΓòÉ
  14861.  
  14862. Use these members to construct parser objects from strings.  In effect, they 
  14863. implicitly construct an IStringParser object for you when you apply the ">>" or 
  14864. "<<" operators to a string.  An expression of the form:   aString >> x    -or- 
  14865. aString << n  is equivalent to   IStringParser( aString ) >> x    -or- 
  14866. IStringParser( aString ) << n  These members are declared as friends simply so 
  14867. that their declaration appears within this class declaration. 
  14868.  
  14869.  
  14870. ΓòÉΓòÉΓòÉ <hidden> IStringParser - Pattern Matching ΓòÉΓòÉΓòÉ
  14871.  
  14872. Use these members to advance to the next occurrence of the argument pattern in 
  14873. the parser text.  Upon return, the parser is positioned at the next character 
  14874. beyond the text that matched the pattern.  If the pattern is not found, the 
  14875. parser is positioned off the end of the text.  Note, that when using an IString 
  14876. as a pattern, you should cast it to a const IString reference. 
  14877.  
  14878.  
  14879. ΓòÉΓòÉΓòÉ <hidden> IStringParser - Relative Column Positioning ΓòÉΓòÉΓòÉ
  14880.  
  14881. Use these members to move the parser text position relative to its current 
  14882. position.  A negative argument moves backward; a positive argument moves 
  14883. forward. The adjustment is made starting at the point at which the prior 
  14884. parsing instruction started.  For example:   "1234" >> token1 >> 1 >> token2 >> 
  14885. 2 >> token3;  will result in:   token1 == "1"   token2 == "23"   token3 == "4". 
  14886.  
  14887.  
  14888. ΓòÉΓòÉΓòÉ <hidden> IStringParser - Tokens ΓòÉΓòÉΓòÉ
  14889.  
  14890. Use these members to parse the next token from the parser object and place it 
  14891. into the IString operand.  By necessity, these members place the rest of the 
  14892. parser text into the string.  When the parser encounters a subsequent parsing 
  14893. instruction, it goes back and adjusts the token placed into the string.  For 
  14894. example:   "token1 token2" >> token1   // token1 == token1 token2 at this point 
  14895. >> token2;      // token2 == "token2" and                      // token1 == 
  14896. "token1". 
  14897.  
  14898.  
  14899. ΓòÉΓòÉΓòÉ <hidden> Protected Functions - IStringParser ΓòÉΓòÉΓòÉ
  14900.  
  14901. Constructors
  14902. IStringParser
  14903.  
  14904.  
  14905. ΓòÉΓòÉΓòÉ <hidden> Protected Data - IStringParser ΓòÉΓòÉΓòÉ
  14906.  
  14907. Inherited Members
  14908. IBase
  14909. recoverable
  14910. unrecoverable
  14911.  
  14912.  
  14913. ΓòÉΓòÉΓòÉ 1.41.1. IStringParser::IStringParser ΓòÉΓòÉΓòÉ
  14914.  
  14915. The destructor member is the default.  The constructor members are protected to 
  14916. prevent you from creating objects except via use of the shift operators. 
  14917.  
  14918. You can construct a string parser object by providing: 
  14919.  
  14920.     a string that defines the text to be parsed 
  14921.     an existing parser object (copy constructor) 
  14922.  
  14923. Note that usually you will construct parser objects by applying the right-shift 
  14924. operator to a string.  The constructor is protected to prevent you from 
  14925. creating objects except via use of those operators.  Creation is prevented 
  14926. because of the nature of string parser objects.  Since they hold references to 
  14927. operands, it is unwise to permit the objects to persist beyond the scope of 
  14928. those operands. 
  14929.  
  14930. Overload 1 
  14931.  
  14932. protected:
  14933. IStringParser(const IString& text);
  14934.  
  14935. Construct an object from an IString object. The IString object specifies the 
  14936. text string to parse. 
  14937.  
  14938. Overload 2 
  14939.  
  14940. protected:
  14941. IStringParser(const IStringParser& parser);
  14942.  
  14943. Construct an object from an existing IStringParser object. The IStringParser 
  14944. object specifies the text string to parse. This constructor increments the 
  14945. usage count of the IStringParser object. 
  14946.  
  14947.  
  14948. ΓòÉΓòÉΓòÉ 1.41.2. IStringParser::operator << ΓòÉΓòÉΓòÉ
  14949.  
  14950. Changes the parser text position to an absolute column number. This is a 
  14951. left-shift operator. 
  14952.  
  14953. public:
  14954. IStringParser& operator <<(unsigned long position);
  14955.  
  14956.  
  14957. ΓòÉΓòÉΓòÉ 1.41.3. IStringParser::operator >> ΓòÉΓòÉΓòÉ
  14958.  
  14959. Parses the text string. The right-shift operator is the primary function for 
  14960. parsing the text string. The User Interface Class Library overloads this 
  14961. function so you can specify how you want the text string parsed via the type of 
  14962. parameter accepted by a particular overload. 
  14963.  
  14964. Overload 1 
  14965.  
  14966. public:
  14967. IStringParser& operator >>(const IStringTest& test);
  14968.  
  14969. Applies the IStringTest object to the parser text and moves the parser text 
  14970. position to the next character that satisfies the string test. If the string 
  14971. test is not satisfied, the parser moves the position off the end of the parser 
  14972. text. 
  14973.  
  14974. Overload 2 
  14975.  
  14976. public:
  14977. IStringParser& operator >>(Command command);
  14978.  
  14979. Resets the parser text position as follows: 
  14980.  
  14981.     To the beginning of the text 
  14982.     To skip the next token in the parser text 
  14983. Use the enumeration IStringParser::Command to specify the parsing token. 
  14984.  
  14985. Overload 3 
  14986.  
  14987. public:
  14988. IStringParser& operator >>(const SkipWords& skipObject);
  14989.  
  14990. Skips the next n words in the parser text, where n is the number of words 
  14991. specified when constructing the IStringParser::SkipWords object. 
  14992.  
  14993. Overload 4 
  14994.  
  14995. public:
  14996. IStringParser& operator >>(IString& token);
  14997.  
  14998. Parses the next token from the object into the IString object. This parameter 
  14999. places the rest of the parser text into the IString object. When the parser 
  15000. encounters a subsequent parsing instruction, it adjusts the token placed into 
  15001. the string. For example: 
  15002.  
  15003.   token1 token2 >> token1   // token1 == "token1 token2" at this point
  15004.                   >> token2;       // token2 == token2 and
  15005.                                        // token1  == token1.
  15006.  
  15007. Used in sample:   Container Clipboard Sample: clipbrd.cpp 
  15008.  
  15009. Overload 5 
  15010.  
  15011. public:
  15012. IStringParser& operator >>(const IString& pattern);
  15013.  
  15014. Finds a matching pattern within the parser text and moves the parser text 
  15015. position. If the pattern is not found, the parser moves the position off the 
  15016. end of the parser text. 
  15017.  
  15018. Overload 6 
  15019.  
  15020. public:
  15021. IStringParser& operator >>(const char* pattern);
  15022.  
  15023. Finds a matching pattern within the parser text and moves the parser text 
  15024. position. If the pattern is not found, the parser moves the position off the 
  15025. end of the parser text. 
  15026.  
  15027. Overload 7 
  15028.  
  15029. public:
  15030. IStringParser& operator >>(char pattern);
  15031.  
  15032. Finds a matching pattern within the parser text and moves the parser text 
  15033. position. If the pattern is not found, the parser moves the position off the 
  15034. end of the parser text. 
  15035.  
  15036. Overload 8 
  15037.  
  15038. public:
  15039. IStringParser& operator >>(int delta);
  15040.  
  15041. Moves the parser text position relative to the current parser text position. 
  15042. For example: 
  15043.  
  15044.    "1234" >> token1 >> 1 >> token2 >> 2 >> token3;
  15045. results in: 
  15046.  
  15047.    token1 == "1"
  15048.    token2 == "23"
  15049.    token3 == "4"
  15050.  
  15051. Overload 9 
  15052.  
  15053. public:
  15054. IStringParser& operator >>(unsigned long delta);
  15055.  
  15056. Moves the parser text position relative to the current parser text position. 
  15057. For example: 
  15058.  
  15059.    "1234" >> token1 >> 1 >> token2 >> 2 >> token3;
  15060. results in: 
  15061.  
  15062.    token1 == "1"
  15063.    token2 == "23"
  15064.    token3 == "4"
  15065.  
  15066.  
  15067. ΓòÉΓòÉΓòÉ 1.41.4. IStringParser::~IStringParser ΓòÉΓòÉΓòÉ
  15068.  
  15069. public:
  15070. ~IStringParser();
  15071.  
  15072. Destructor, decrements reference count. 
  15073.  
  15074.  
  15075. ΓòÉΓòÉΓòÉ <hidden> Nested Types - IStringParser ΓòÉΓòÉΓòÉ
  15076.  
  15077. Classes 
  15078.  
  15079.       IStringParser::SkipWords 
  15080.  
  15081. Enumerations 
  15082.  
  15083.       Command 
  15084.  
  15085.  
  15086. ΓòÉΓòÉΓòÉ <hidden> Enums - Command ΓòÉΓòÉΓòÉ
  15087.  
  15088. enum Command { reset, skipWord, skip=skipWord };
  15089.  
  15090. These enumerators specify special purpose parsing tokens: 
  15091.  
  15092. reset     Resets the parser position to 1. 
  15093.  
  15094. skip      Causes the parser to skip one token (that is, a word) in the input 
  15095.           text. 
  15096.  
  15097.  
  15098. ΓòÉΓòÉΓòÉ 1.42. IStringParser::SkipWords ΓòÉΓòÉΓòÉ
  15099.  
  15100. Description 
  15101.  
  15102. Derivation 
  15103.  
  15104. Constructors 
  15105.  
  15106. Public Functions 
  15107.  
  15108. Protected Data 
  15109.  
  15110. To close all the panels in a chapter, double click on this panel's system menu. 
  15111.  
  15112.  
  15113. ΓòÉΓòÉΓòÉ <hidden> Derivation - IStringParser::SkipWords ΓòÉΓòÉΓòÉ
  15114.  
  15115. IBase
  15116.   Γöé
  15117. IStringParser::SkipWords
  15118.  
  15119. Inherited by none. 
  15120.  
  15121.  
  15122. ΓòÉΓòÉΓòÉ <hidden> Class Description - IStringParser::SkipWords ΓòÉΓòÉΓòÉ
  15123.  
  15124. istparse.hpp 
  15125.  
  15126. Objects of the nested class IStringParser::SkipWords skip a specified number of 
  15127. words in the input text without assigning those words to output strings. Use 
  15128. these objects when parsing text with the class IStringParser. 
  15129.  
  15130.  
  15131. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IStringParser::SkipWords ΓòÉΓòÉΓòÉ
  15132.  
  15133. Constructors
  15134. SkipWords
  15135.  
  15136. Word Functions
  15137. numberOfWords
  15138.  
  15139. Inherited Members
  15140. IBase
  15141. asDebugInfo
  15142. asString
  15143. messageFile
  15144. messageText
  15145. setMessageFile
  15146. version
  15147.  
  15148.  
  15149. ΓòÉΓòÉΓòÉ <hidden> IStringParser::SkipWords - Constructors ΓòÉΓòÉΓòÉ
  15150.  
  15151. You can construct objects of this class by specifying the number of words to 
  15152. skip. Use in conjunction with IStringParser objects to parse the content of an 
  15153. IString and place portions of the string into other strings. 
  15154.  
  15155.  
  15156. ΓòÉΓòÉΓòÉ <hidden> IStringParser::SkipWords - Obsolete Data and Functions ΓòÉΓòÉΓòÉ
  15157.  
  15158.  
  15159. ΓòÉΓòÉΓòÉ <hidden> IStringParser::SkipWords - Word Functions ΓòÉΓòÉΓòÉ
  15160.  
  15161. Use these members to retrieve the number of words to skip.  You set the number 
  15162. of words to skip in the constructor. 
  15163.  
  15164.  
  15165. ΓòÉΓòÉΓòÉ <hidden> Protected Data - IStringParser::SkipWords ΓòÉΓòÉΓòÉ
  15166.  
  15167. Inherited Members
  15168. IBase
  15169. recoverable
  15170. unrecoverable
  15171.  
  15172.  
  15173. ΓòÉΓòÉΓòÉ 1.42.1. IStringParser::SkipWords::numberOfWords ΓòÉΓòÉΓòÉ
  15174.  
  15175. Returns the number of words to skip. 
  15176.  
  15177. public:
  15178. unsigned long numberOfWords() const;
  15179.  
  15180.  
  15181. ΓòÉΓòÉΓòÉ 1.42.2. IStringParser::SkipWords::SkipWords ΓòÉΓòÉΓòÉ
  15182.  
  15183. You can construct objects of this class by specifying the number of words to 
  15184. skip. The default is one word. 
  15185.  
  15186. public:
  15187. SkipWords(unsigned long numberOfWords = 1);
  15188.  
  15189.  
  15190. ΓòÉΓòÉΓòÉ 1.43. IStringTest ΓòÉΓòÉΓòÉ
  15191.  
  15192. Description 
  15193.  
  15194. Derivation 
  15195.  
  15196. Constructors 
  15197.  
  15198. Public Functions 
  15199.  
  15200. Protected Functions 
  15201.  
  15202. Protected Data 
  15203.  
  15204. Nested Types 
  15205.  
  15206. To close all the panels in a chapter, double click on this panel's system menu. 
  15207.  
  15208.  
  15209. ΓòÉΓòÉΓòÉ <hidden> Derivation - IStringTest ΓòÉΓòÉΓòÉ
  15210.  
  15211. IBase
  15212.   Γöé
  15213. IVBase
  15214.   Γöé
  15215. IStringTest
  15216.  
  15217. Inherited by: 
  15218.  
  15219.      IStringTestMemberFn 
  15220.  
  15221.  
  15222. ΓòÉΓòÉΓòÉ <hidden> Class Description - IStringTest ΓòÉΓòÉΓòÉ
  15223.  
  15224. istrtest.hpp 
  15225.  
  15226. The IStringTest class defines the basic protocol for test objects that you can 
  15227. pass to IStringsor I0Strings to assist in performing various test and search 
  15228. functions. This class also provides concrete implementation for the common case 
  15229. of using a C function for such testing. 
  15230.  
  15231. The User Interface Class Library provides a derived template class, 
  15232. IStringTestMemberFn, to facilitate using member functions of any class on the 
  15233. IString functions that support IStringTest. 
  15234.  
  15235. Derived classes should re-implement the virtual function IStringTest::test to 
  15236. test characters passed by the IString and return the appropriate result. 
  15237.  
  15238. A constructor for this class accepts a pointer to a C function that in turn 
  15239. accepts an integer as a parameter and returns a Boolean. You can use such 
  15240. functions anywhere an IStringTest can be used. Note that this is the type of 
  15241. the standard C library "is" functions that check the type of C characters. 
  15242.  
  15243.  
  15244. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IStringTest ΓòÉΓòÉΓòÉ
  15245.  
  15246. Constructors
  15247. IStringTest
  15248. ~IStringTest
  15249.  
  15250. Testing
  15251. test
  15252.  
  15253. Inherited Members
  15254. IVBase
  15255. asDebugInfo
  15256. asString
  15257.  
  15258. IBase
  15259. asDebugInfo
  15260. asString
  15261. messageFile
  15262. messageText
  15263. setMessageFile
  15264. version
  15265.  
  15266.  
  15267. ΓòÉΓòÉΓòÉ <hidden> IStringTest - Constructors ΓòÉΓòÉΓòÉ
  15268.  
  15269. You can construct and destruct objects of this class with a pointer to the C 
  15270. function to be used to implement the member IStringTest::test. Such members can 
  15271. be used anywhere an IStringTest can be used. Note that these members are the 
  15272. same as the standard C library is.... functions that check the type of C 
  15273. characters. 
  15274.  
  15275. This class also provides a protected constructor, which derived classes can use 
  15276. to reuse the space for the C/C++ function pointer. 
  15277.  
  15278.  
  15279. ΓòÉΓòÉΓòÉ <hidden> IStringTest - Function Types ΓòÉΓòÉΓòÉ
  15280.  
  15281. Use these typedefs to identify the test function. 
  15282.  
  15283.  
  15284. ΓòÉΓòÉΓòÉ <hidden> IStringTest - Test Function Description ΓòÉΓòÉΓòÉ
  15285.  
  15286. Use these members to implement this class. 
  15287.  
  15288.  
  15289. ΓòÉΓòÉΓòÉ <hidden> IStringTest - Testing ΓòÉΓòÉΓòÉ
  15290.  
  15291. Use these members to implement an actual test. 
  15292.  
  15293.  
  15294. ΓòÉΓòÉΓòÉ <hidden> Protected Functions - IStringTest ΓòÉΓòÉΓòÉ
  15295.  
  15296. Constructors
  15297. IStringTest
  15298.  
  15299.  
  15300. ΓòÉΓòÉΓòÉ <hidden> Protected Data - IStringTest ΓòÉΓòÉΓòÉ
  15301.  
  15302. Test Function Description
  15303. data
  15304. type
  15305.  
  15306. Inherited Members
  15307. IBase
  15308. recoverable
  15309. unrecoverable
  15310.  
  15311.  
  15312. ΓòÉΓòÉΓòÉ 1.43.1. IStringTest::data ΓòÉΓòÉΓòÉ
  15313.  
  15314. Data member union, varying by FnType:  cFn  - Pointer to a C function.  user  - 
  15315. Pointer to an arbitrary derived-class data (if FnType is       neither c nor 
  15316. cpp). 
  15317.  
  15318. protected:
  15319. union { CFunction *cFn; void *user; } data;
  15320.  
  15321.  
  15322. ΓòÉΓòÉΓòÉ 1.43.2. IStringTest::IStringTest ΓòÉΓòÉΓòÉ
  15323.  
  15324. You can construct and destruct objects of this class with a pointer to the C 
  15325. function to be used to implement the member IStringTest::test. Such members can 
  15326. be used anywhere an IStringTest can be used. Note that these members are the 
  15327. same as the standard C library is.... functions that check the type of C 
  15328. characters. 
  15329.  
  15330. This class also provides a protected constructor, which derived classes can use 
  15331. to reuse the space for the C/C++ function pointer. 
  15332.  
  15333. Overload 1 
  15334.  
  15335. public:
  15336. IStringTest(CFunction& cFunc);
  15337.  
  15338. Accepts a pointer to a C function. 
  15339.  
  15340. Overload 2 
  15341.  
  15342. public:
  15343. IStringTest(CPPFunction& cppFunc);
  15344.  
  15345. Accepts a pointer to a C++ function. 
  15346.  
  15347. Overload 3 
  15348.  
  15349. protected:
  15350. IStringTest(FnType type, void* userData);
  15351.  
  15352. Used by derived classes to reuse the space for the C/C++ function pointer. 
  15353.  
  15354.  
  15355. ΓòÉΓòÉΓòÉ 1.43.3. IStringTest::test ΓòÉΓòÉΓòÉ
  15356.  
  15357. Tests the specified integer (character) and returns true or false as returned 
  15358. by the C function provided at construction. Derived classes should override 
  15359. this function to implement their own testing function. 
  15360.  
  15361. public:
  15362. virtual Boolean test(int c) const;
  15363.  
  15364.  
  15365. ΓòÉΓòÉΓòÉ 1.43.4. IStringTest::type ΓòÉΓòÉΓòÉ
  15366.  
  15367. Data member FnType. FnType is an enumeration describing the various flavors of 
  15368. functions supported; user-defined, C, C++ static or non-member function, C++ 
  15369. member function,  const C++ member function. 
  15370.  
  15371. protected:
  15372. FnType type;
  15373.  
  15374.  
  15375. ΓòÉΓòÉΓòÉ 1.43.5. IStringTest::~IStringTest ΓòÉΓòÉΓòÉ
  15376.  
  15377. public:
  15378. ~IStringTest();
  15379.  
  15380.  
  15381. ΓòÉΓòÉΓòÉ <hidden> Nested Types - IStringTest ΓòÉΓòÉΓòÉ
  15382.  
  15383. Enumerations 
  15384.  
  15385.       FnType 
  15386.  
  15387. Type Definitions 
  15388.  
  15389.       CFunction 
  15390.       ( int ) 
  15391.  
  15392.  
  15393. ΓòÉΓòÉΓòÉ <hidden> Enums - FnType ΓòÉΓòÉΓòÉ
  15394.  
  15395. enum FnType { user, c, cpp, memFn, cMemFn };
  15396.  
  15397. Use these enumerators to specify the type of functions supported: 
  15398.  
  15399. user      User-defined. 
  15400.  
  15401. c         C. 
  15402.  
  15403. cpp       C++ static or non-member function. 
  15404.  
  15405. memFn     C++ member function. 
  15406.  
  15407. cMemFn    Const C++ member function. 
  15408.  
  15409.  
  15410. ΓòÉΓòÉΓòÉ <hidden> Type Definition - IStringTest::CFunction ΓòÉΓòÉΓòÉ
  15411.  
  15412. typedef ICStrTestFn CFunction;
  15413.  
  15414. Pointer to the C function that accepts an integer parameter and returns 
  15415. Boolean. 
  15416.  
  15417.  
  15418. ΓòÉΓòÉΓòÉ <hidden> Type Definition - IStringTest::( int ) ΓòÉΓòÉΓòÉ
  15419.  
  15420. typedef Boolean CPPFunction ( int );
  15421.  
  15422. Pointer to plain (static or non-member) C++ function accepting integer argument 
  15423. and returning Boolean. 
  15424.  
  15425.  
  15426. ΓòÉΓòÉΓòÉ 1.44. IStringTestMemberFn ΓòÉΓòÉΓòÉ
  15427.  
  15428. Description 
  15429.  
  15430. Derivation 
  15431.  
  15432. Constructors 
  15433.  
  15434. Public Functions 
  15435.  
  15436. Protected Data 
  15437.  
  15438. Nested Types 
  15439.  
  15440. To close all the panels in a chapter, double click on this panel's system menu. 
  15441.  
  15442.  
  15443. ΓòÉΓòÉΓòÉ <hidden> Derivation - IStringTestMemberFn ΓòÉΓòÉΓòÉ
  15444.  
  15445. IBase
  15446.   Γöé
  15447. IVBase
  15448.   Γöé
  15449. IStringTest
  15450.   Γöé
  15451. IStringTestMemberFn
  15452.  
  15453. Inherited by none. 
  15454.  
  15455.  
  15456. ΓòÉΓòÉΓòÉ <hidden> Class Description - IStringTestMemberFn ΓòÉΓòÉΓòÉ
  15457.  
  15458. istrtest.hpp 
  15459.  
  15460. The User Interface Class Library provides the template class 
  15461. IStringTestMemberFn as an IStringTest-type wrapper for particular C++ member 
  15462. functions. Doing so lets you use such member functions in conjunction with 
  15463. functions from IString and I0String that accept an IStringTest object as an 
  15464. parameter. 
  15465.  
  15466. Customization (Template Argument) 
  15467.  
  15468. IStringTestMemberFn is a template class that is instantiated with the following 
  15469. template argument: 
  15470.  
  15471. T    The class of object whose member function is to be wrappered. 
  15472.  
  15473.  
  15474. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IStringTestMemberFn ΓòÉΓòÉΓòÉ
  15475.  
  15476. Constructors
  15477. IStringTestMemberFn
  15478.  
  15479. Testing
  15480. test
  15481.  
  15482. Inherited Members
  15483. IStringTest
  15484. test
  15485.  
  15486. IVBase
  15487. asDebugInfo
  15488. asString
  15489.  
  15490. IBase
  15491. asDebugInfo
  15492. asString
  15493. messageFile
  15494. messageText
  15495. setMessageFile
  15496. version
  15497.  
  15498.  
  15499. ΓòÉΓòÉΓòÉ <hidden> IStringTestMemberFn - Constructors ΓòÉΓòÉΓòÉ
  15500.  
  15501. You can construct objects of this class in the following ways: 
  15502.  
  15503.     Use the constructor that supports const member functions. 
  15504.     Use the constructor that supports nonconst member functions. You must 
  15505.      specify a nonconst member function as the first parameter. 
  15506. Both constructors for the object require the following: 
  15507.  
  15508.     An object of the class T (nonconst object for nonconst member functions). 
  15509.  
  15510.     A pointer to a member function of the class T. The User Interface Class 
  15511.      Library applies this member function to the specified object to test each 
  15512.      character passed to the test member of this class. The member function 
  15513.      must accept a single integer parameter and return a Boolean. 
  15514.  
  15515.  
  15516. ΓòÉΓòÉΓòÉ <hidden> IStringTestMemberFn - Function Types ΓòÉΓòÉΓòÉ
  15517.  
  15518. Use these members to support const and non-const member functions. 
  15519.  
  15520.  
  15521. ΓòÉΓòÉΓòÉ <hidden> IStringTestMemberFn - Testing ΓòÉΓòÉΓòÉ
  15522.  
  15523. Use these members to dispatch member functions. 
  15524.  
  15525.  
  15526. ΓòÉΓòÉΓòÉ <hidden> Protected Data - IStringTestMemberFn ΓòÉΓòÉΓòÉ
  15527.  
  15528. Inherited Members
  15529. IStringTest
  15530. data
  15531. type
  15532.  
  15533. IBase
  15534. recoverable
  15535. unrecoverable
  15536.  
  15537.  
  15538. ΓòÉΓòÉΓòÉ 1.44.1. IStringTestMemberFn::IStringTestMemberFn ΓòÉΓòÉΓòÉ
  15539.  
  15540. You can construct objects of this class in the following ways: 
  15541.  
  15542.     Use the constructor that supports const member functions. 
  15543.     Use the constructor that supports nonconst member functions. You must 
  15544.      specify a nonconst member function as the first parameter. 
  15545. Both constructors for the object require the following: 
  15546.  
  15547.     An object of the class T (nonconst object for nonconst member functions). 
  15548.  
  15549.     A pointer to a member function of the class T. The User Interface Class 
  15550.      Library applies this member function to the specified object to test each 
  15551.      character passed to the test member of this class. The member function 
  15552.      must accept a single integer parameter and return a Boolean. 
  15553.  
  15554. Overload 1 
  15555.  
  15556. public:
  15557. IStringTestMemberFn(const T& object, ConstFn constFn);
  15558.  
  15559. Use this for the const member functions. 
  15560.  
  15561. Overload 2 
  15562.  
  15563. public:
  15564. IStringTestMemberFn(T& object, NonconstFn nonconstFn);
  15565.  
  15566. Use this for the non-const member functions. The object of the class T must be 
  15567. non-const. 
  15568.  
  15569.  
  15570. ΓòÉΓòÉΓòÉ 1.44.2. IStringTestMemberFn::test ΓòÉΓòÉΓòÉ
  15571.  
  15572. Overridden to dispatch a member function against an object. 
  15573.  
  15574. public:
  15575. virtual Boolean test(int c) const;
  15576.  
  15577.  
  15578. ΓòÉΓòÉΓòÉ <hidden> Nested Types - IStringTestMemberFn ΓòÉΓòÉΓòÉ
  15579.  
  15580. Type Definitions 
  15581.  
  15582.       ( int ) 
  15583.       const 
  15584.  
  15585.  
  15586. ΓòÉΓòÉΓòÉ <hidden> Type Definition - IStringTestMemberFn::( int ) ΓòÉΓòÉΓòÉ
  15587.  
  15588. typedef Boolean ( T::* NonconstFn ) ( int );
  15589.  
  15590. Non-const member function of the appropriate type. 
  15591.  
  15592.  
  15593. ΓòÉΓòÉΓòÉ <hidden> Type Definition - IStringTestMemberFn::const ΓòÉΓòÉΓòÉ
  15594.  
  15595. typedef Boolean ( T::* ConstFn ) ( int ) const;
  15596.  
  15597. const member function of the appropriate type. 
  15598.  
  15599.  
  15600. ΓòÉΓòÉΓòÉ 1.45. ISystemErrorInfo ΓòÉΓòÉΓòÉ
  15601.  
  15602. Description 
  15603.  
  15604. Derivation 
  15605.  
  15606. Constructors 
  15607.  
  15608. Public Functions 
  15609.  
  15610. Protected Data 
  15611.  
  15612. To close all the panels in a chapter, double click on this panel's system menu. 
  15613.  
  15614.  
  15615. ΓòÉΓòÉΓòÉ <hidden> Derivation - ISystemErrorInfo ΓòÉΓòÉΓòÉ
  15616.  
  15617. IBase
  15618.   Γöé
  15619. IVBase
  15620.   Γöé
  15621. IErrorInfo
  15622.   Γöé
  15623. ISystemErrorInfo
  15624.  
  15625. Inherited by none. 
  15626.  
  15627.  
  15628. ΓòÉΓòÉΓòÉ <hidden> Class Description - ISystemErrorInfo ΓòÉΓòÉΓòÉ
  15629.  
  15630. iexcept.hpp 
  15631.  
  15632. Objects of the ISystemErrorInfo class represent error information that you can 
  15633. include in an exception object. When an OS/2 DOS system call results in an 
  15634. error condition, objects of the ISystemErrorInfo class are created. You can use 
  15635. the error text to construct a derived class object of IException. 
  15636.  
  15637. The User Interface Class Library provides the ITHROWSYSTEMERROR macro for 
  15638. throwing exceptions constructed with the following ISystemErrorInfo 
  15639. information: 
  15640.  
  15641.     The error ID returned from the system function 
  15642.  
  15643.     The name of the system function that returned an error code 
  15644.  
  15645.     One of the values of the enumeration IErrorInfo::ExceptionType, which 
  15646.      specifies the type of exception this macro creates 
  15647.  
  15648.     One of the values of the enumeration IException::Severity, which specifies 
  15649.      the severity of the exception 
  15650.  
  15651. This macro generates code that calls throwSystemError, which does the 
  15652. following: 
  15653.  
  15654.   1. Creates an ISystemErrorInfo object 
  15655.   2. Uses the object to create an IException object 
  15656.   3. Adds the operatingSystem error group to the object 
  15657.   4. Adds location information 
  15658.   5. Logs the exception data 
  15659.   6. Throws the exception 
  15660.  
  15661. Motif Information 
  15662.  
  15663. You can create objects of this class on AIX, but the objects contain no useful 
  15664. information and only have the default message: "System exception condition 
  15665. detected." 
  15666.  
  15667.  
  15668. ΓòÉΓòÉΓòÉ <hidden> Public Functions - ISystemErrorInfo ΓòÉΓòÉΓòÉ
  15669.  
  15670. Constructors
  15671. ISystemErrorInfo
  15672. ~ISystemErrorInfo
  15673.  
  15674. Error Information
  15675. errorId
  15676. isAvailable
  15677. operator const char *
  15678. text
  15679.  
  15680. Throw Support
  15681. throwSystemError
  15682.  
  15683. Inherited Members
  15684. IErrorInfo
  15685. errorId
  15686. isAvailable
  15687. operator const char *
  15688. text
  15689. throwError
  15690.  
  15691. IVBase
  15692. asDebugInfo
  15693. asString
  15694.  
  15695. IBase
  15696. asDebugInfo
  15697. asString
  15698. messageFile
  15699. messageText
  15700. setMessageFile
  15701. version
  15702.  
  15703.  
  15704. ΓòÉΓòÉΓòÉ <hidden> ISystemErrorInfo - Constructors ΓòÉΓòÉΓòÉ
  15705.  
  15706. You can construct and destruct objects of this class. You cannot copy or assign 
  15707. objects of this class. 
  15708.  
  15709.  
  15710. ΓòÉΓòÉΓòÉ <hidden> ISystemErrorInfo - Error Information ΓòÉΓòÉΓòÉ
  15711.  
  15712. Use these members to return error information provided by objects of this 
  15713. class. 
  15714.  
  15715.  
  15716. ΓòÉΓòÉΓòÉ <hidden> ISystemErrorInfo - Hidden Functions ΓòÉΓòÉΓòÉ
  15717.  
  15718. These members are hidden to prevent you from copying and assigning objects of 
  15719. this class. 
  15720.  
  15721.  
  15722. ΓòÉΓòÉΓòÉ <hidden> ISystemErrorInfo - Throw Support ΓòÉΓòÉΓòÉ
  15723.  
  15724. Use these members to support the throwing of exceptions. 
  15725.  
  15726.  
  15727. ΓòÉΓòÉΓòÉ <hidden> Protected Data - ISystemErrorInfo ΓòÉΓòÉΓòÉ
  15728.  
  15729. Inherited Members
  15730. IBase
  15731. recoverable
  15732. unrecoverable
  15733.  
  15734.  
  15735. ΓòÉΓòÉΓòÉ 1.45.1. ISystemErrorInfo::errorId ΓòÉΓòÉΓòÉ
  15736.  
  15737. Returns the error ID. 
  15738.  
  15739. public:
  15740. virtual unsigned long errorId() const;
  15741.  
  15742.  
  15743. ΓòÉΓòÉΓòÉ 1.45.2. ISystemErrorInfo::isAvailable ΓòÉΓòÉΓòÉ
  15744.  
  15745. If the error information is available, true is returned. 
  15746.  
  15747. public:
  15748. virtual Boolean isAvailable() const;
  15749.  
  15750.  
  15751. ΓòÉΓòÉΓòÉ 1.45.3. ISystemErrorInfo::ISystemErrorInfo ΓòÉΓòÉΓòÉ
  15752.  
  15753. You can construct and destruct objects of this class. You cannot copy or assign 
  15754. objects of this class. 
  15755.  
  15756. public:
  15757. ISystemErrorInfo( unsigned long systemErrorId,
  15758.                   const char* systemFunctionName = 0);
  15759.  
  15760. You can only construct objects of this class using the default constructor. 
  15761.  
  15762. Note:  If the constructor cannot load the error text, the User Interface Class 
  15763.        Library provides the following default text: "No error text is 
  15764.        available.". 
  15765.  
  15766. systemErrorId The error ID identifying an operating system error. 
  15767.  
  15768. systemFunctionName (Optional) The name of the failing system call that returned 
  15769.           the error ID. If you specify systemFunctionName, the constructor 
  15770.           prefixes it to the error text. 
  15771.  
  15772.  
  15773. ΓòÉΓòÉΓòÉ 1.45.4. ISystemErrorInfo::operator const char * ΓòÉΓòÉΓòÉ
  15774.  
  15775. Returns the error text. 
  15776.  
  15777. public:
  15778. virtual  operator const char *() const;
  15779.  
  15780.  
  15781. ΓòÉΓòÉΓòÉ 1.45.5. ISystemErrorInfo::text ΓòÉΓòÉΓòÉ
  15782.  
  15783. Returns the error text. 
  15784.  
  15785. public:
  15786. virtual const char* text() const;
  15787.  
  15788.  
  15789. ΓòÉΓòÉΓòÉ 1.45.6. ISystemErrorInfo::throwSystemError ΓòÉΓòÉΓòÉ
  15790.  
  15791. This function is used by the ITHROWSYSTEMERROR macro.  The function creates an 
  15792. ISystemErrorInfo object and uses the text from it to do the following: 
  15793.  
  15794.   1. Create an exception object 
  15795.   2. Add the location information to it 
  15796.   3. Log the exception data 
  15797.   4. Throw the exception 
  15798.  
  15799. systemErrorId The error ID from the system. 
  15800.  
  15801. functionName The name of the function where the exception occurred. 
  15802.  
  15803. location  An IExceptionLocation object containing the following: 
  15804.  
  15805.               Function name 
  15806.               File name 
  15807.               Line number where the function is called 
  15808.  
  15809. name      Use the enumeration IErrorInfo::ExceptionType to specify the type of 
  15810.           the exception. The default is accessError. 
  15811.  
  15812. severity  Use the enumeration IException::Severity to specify the severity of 
  15813.           the error. The default is recoverable. 
  15814.  
  15815. public:
  15816. static void
  15817.   throwSystemError( unsigned long systemErrorId,
  15818.                     const char* functionName,
  15819.                     const IExceptionLocation& location,
  15820.                     IErrorInfo::ExceptionType name = accessError,
  15821.                     IException::Severity severity = recoverable);
  15822.  
  15823.  
  15824. ΓòÉΓòÉΓòÉ 1.45.7. ISystemErrorInfo::~ISystemErrorInfo ΓòÉΓòÉΓòÉ
  15825.  
  15826. public:
  15827. virtual  ~ISystemErrorInfo();
  15828.  
  15829.  
  15830. ΓòÉΓòÉΓòÉ 1.46. ITime ΓòÉΓòÉΓòÉ
  15831.  
  15832. Description 
  15833.  
  15834. Derivation 
  15835.  
  15836. Constructors 
  15837.  
  15838. Public Functions 
  15839.  
  15840. Protected Functions 
  15841.  
  15842. Protected Data 
  15843.  
  15844. To close all the panels in a chapter, double click on this panel's system menu. 
  15845.  
  15846.  
  15847. ΓòÉΓòÉΓòÉ <hidden> Derivation - ITime ΓòÉΓòÉΓòÉ
  15848.  
  15849. IBase
  15850.   Γöé
  15851. ITime
  15852.  
  15853. Inherited by none. 
  15854.  
  15855.  
  15856. ΓòÉΓòÉΓòÉ <hidden> Class Description - ITime ΓòÉΓòÉΓòÉ
  15857.  
  15858. itime.hpp 
  15859.  
  15860. Objects of the ITime class represent units of time (hours, minutes, and 
  15861. seconds) as portions of days and provide support for converting these units of 
  15862. time into numeric and ASCII format. You can compare and operate on ITime 
  15863. objects by adding them to and subtracting them from other ITime objects. 
  15864.  
  15865. A related class whose objects also represent units of time is the class IDate. 
  15866.  
  15867. The ITime class returns locale-sensitive information, based on the current 
  15868. locale defined at runtime. See the description of the standard C function 
  15869. setlocale in the C Library Reference. OS/2 system documentation for information 
  15870. about setting the locale. 
  15871.  
  15872.  
  15873. ΓòÉΓòÉΓòÉ <hidden> Public Functions - ITime ΓòÉΓòÉΓòÉ
  15874.  
  15875. Comparisons
  15876. operator !=
  15877. operator <
  15878. operator <=
  15879. operator ==
  15880. operator >
  15881. operator >=
  15882.  
  15883. Constructors
  15884. ITime
  15885.  
  15886. Current Time
  15887. now
  15888.  
  15889. Diagnostics
  15890. asString
  15891.  
  15892. Manipulation
  15893. operator +
  15894. operator +=
  15895. operator -
  15896. operator -=
  15897.  
  15898. Time Queries
  15899. asCTIME
  15900. asSeconds
  15901. hours
  15902. minutes
  15903. seconds
  15904.  
  15905. Inherited Members
  15906. IBase
  15907. asDebugInfo
  15908. asString
  15909. messageFile
  15910. messageText
  15911. setMessageFile
  15912. version
  15913.  
  15914.  
  15915. ΓòÉΓòÉΓòÉ <hidden> ITime - Comparisons ΓòÉΓòÉΓòÉ
  15916.  
  15917. Use these members to compare two ITime objects.  Use any of the full complement 
  15918. of comparison operators and applying the natural meaning. 
  15919.  
  15920.  
  15921. ΓòÉΓòÉΓòÉ <hidden> ITime - Constructors ΓòÉΓòÉΓòÉ
  15922.  
  15923. You can construct objects of this class in the following ways: 
  15924.  
  15925.     Use the default constructor, which returns the current time. 
  15926.  
  15927.     Give the number of seconds since midnight that the time represents.  In 
  15928.      this case, the number of seconds can be negative and is subtracted from 
  15929.      the number of seconds in a day. 
  15930.  
  15931.     Give the number of hours, minutes, and seconds since midnight that the 
  15932.      time represents.  In this case, the number of seconds cannot be negative. 
  15933.  
  15934.     Copy another ITime object. 
  15935.  
  15936.     Give a container details CTIME structure. 
  15937.  
  15938.  
  15939. ΓòÉΓòÉΓòÉ <hidden> ITime - Current Time ΓòÉΓòÉΓòÉ
  15940.  
  15941. Use this member when you need the current time. 
  15942.  
  15943.  
  15944. ΓòÉΓòÉΓòÉ <hidden> ITime - Diagnostics ΓòÉΓòÉΓòÉ
  15945.  
  15946. Use these members to provide an IString representation for an ITime object and 
  15947. the capability to output the object to a stream. The formatting is based on the 
  15948. strftime conversion specifications. Often, you use these members to write trace 
  15949. information when debugging your code. 
  15950.  
  15951.  
  15952. ΓòÉΓòÉΓòÉ <hidden> ITime - Implementation ΓòÉΓòÉΓòÉ
  15953.  
  15954. Use these members to initialize objects of this class. 
  15955.  
  15956.  
  15957. ΓòÉΓòÉΓòÉ <hidden> ITime - Manipulation ΓòÉΓòÉΓòÉ
  15958.  
  15959. Use these members to update an ITime object by adding or subtracting another 
  15960. ITime object. Use any of the full complement of addition or subtraction 
  15961. operators and apply the natural meaning. 
  15962.  
  15963.  
  15964. ΓòÉΓòÉΓòÉ <hidden> ITime - Time Queries ΓòÉΓòÉΓòÉ
  15965.  
  15966. Use these members to access the seconds, minutes and hours of an ITime object. 
  15967.  
  15968.  
  15969. ΓòÉΓòÉΓòÉ <hidden> Protected Functions - ITime ΓòÉΓòÉΓòÉ
  15970.  
  15971. Implementation
  15972. initialize
  15973.  
  15974.  
  15975. ΓòÉΓòÉΓòÉ <hidden> Protected Data - ITime ΓòÉΓòÉΓòÉ
  15976.  
  15977. Inherited Members
  15978. IBase
  15979. recoverable
  15980. unrecoverable
  15981.  
  15982.  
  15983. ΓòÉΓòÉΓòÉ 1.46.1. ITime::asCTIME ΓòÉΓòÉΓòÉ
  15984.  
  15985. Returns the time as a container CTIME structure. 
  15986.  
  15987. public:
  15988. _CTIME asCTIME() const;
  15989.  
  15990. Platform Support 
  15991.  
  15992. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  15993. ΓöéPM          ΓöéMOTIF       Γöé
  15994. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  15995. ΓöéYes         ΓöéNo          Γöé
  15996. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  15997.  
  15998.  
  15999. ΓòÉΓòÉΓòÉ 1.46.2. ITime::asSeconds ΓòÉΓòÉΓòÉ
  16000.  
  16001. Returns the number of seconds since midnight. 
  16002.  
  16003. public:
  16004. long asSeconds() const;
  16005.  
  16006.  
  16007. ΓòÉΓòÉΓòÉ 1.46.3. ITime::asString ΓòÉΓòÉΓòÉ
  16008.  
  16009. Returns the ITime object as a string that is formatted according to the 
  16010. specified format. This format string can contain time "conversion specifiers" 
  16011. as defined for the standard C library function strftime in the TIME.H header 
  16012. file. The default format is %X, which yields the time as hh:mm:ss. Refer to the 
  16013. VisualAge C++:  C Library Reference for more information about the strftime 
  16014. function. 
  16015.  
  16016. The conversion specifiers that apply to ITime and their meanings are listed in 
  16017. the following table. IDate::asString describes conversion specifiers that apply 
  16018. to dates. 
  16019.  
  16020.  
  16021.  Specifier  Meaning
  16022.  ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
  16023.  %c         Insert date and time of locale.
  16024.  ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
  16025.  %H         Insert hour (24-hour clock) as a decimal number
  16026.             (00-23).
  16027.  ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
  16028.  %I         Insert hour (12-hour clock) as a decimal number
  16029.             (01-12).
  16030.  ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
  16031.  %M         Insert minute (00-59).
  16032.  ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
  16033.  %p         Insert equivalent of either AM or PM locale.
  16034.  ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
  16035.  %S         Insert second (00-61).
  16036.  ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
  16037.  %X         Insert time representation of locale.
  16038.  ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
  16039.  %Z         Insert name of time zone, or no characters if time
  16040.             zone is not available.
  16041.  ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
  16042.  %%         Insert %.
  16043.  
  16044. public:
  16045. IString asString(const char* fmt = " % X") const;
  16046.  
  16047. Used in sample:   Hello World Sample - Version 6: ahellow6.cpp 
  16048.  
  16049.  
  16050. ΓòÉΓòÉΓòÉ 1.46.4. ITime::hours ΓòÉΓòÉΓòÉ
  16051.  
  16052. Returns the number of hours past midnight. 
  16053.  
  16054. public:
  16055. unsigned hours() const;
  16056.  
  16057.  
  16058. ΓòÉΓòÉΓòÉ 1.46.5. ITime::initialize ΓòÉΓòÉΓòÉ
  16059.  
  16060. A common initialization function used by the ITime constructors. 
  16061.  
  16062. protected:
  16063. ITime& initialize(long seconds);
  16064.  
  16065.  
  16066. ΓòÉΓòÉΓòÉ 1.46.6. ITime::ITime ΓòÉΓòÉΓòÉ
  16067.  
  16068. You can construct objects of this class in the following ways: 
  16069.  
  16070.     Use the default constructor, which returns the current time. 
  16071.  
  16072.     Give the number of seconds since midnight that the time represents.  In 
  16073.      this case, the number of seconds can be negative and is subtracted from 
  16074.      the number of seconds in a day. 
  16075.  
  16076.     Give the number of hours, minutes, and seconds since midnight that the 
  16077.      time represents.  In this case, the number of seconds cannot be negative. 
  16078.  
  16079.     Copy another ITime object. 
  16080.  
  16081.     Give a container details CTIME structure. 
  16082.  
  16083. Overload 1 
  16084.  
  16085. public:
  16086. ITime(long seconds);
  16087.  
  16088. Use this constructor by specifying the number of seconds since midnight that 
  16089. the time is to represent.  For negative values, the constructor subtracts that 
  16090. value from the number of seconds in a day. 
  16091.  
  16092. Overload 2 
  16093.  
  16094. public:
  16095. ITime();
  16096.  
  16097. Using this constructor returns the current time; it's the default. 
  16098.  
  16099. Used in sample:   Hello World Sample - Version 6: ahellow6.cpp 
  16100.  
  16101. Overload 3 
  16102.  
  16103. public:
  16104. ITime( unsigned hours,
  16105.        unsigned minutes,
  16106.        unsigned seconds = 0);
  16107.  
  16108. Specify the number of hours, minutes, and seconds since midnight that the time 
  16109. represents. The number of seconds cannot be negative. 
  16110.  
  16111. Overload 4 
  16112.  
  16113. public:
  16114. ITime(const ITime& aTime);
  16115.  
  16116. Use this constructor to copy another ITime object. 
  16117.  
  16118. Overload 5 
  16119.  
  16120. public:
  16121. ITime(const _CTIME& cTime);
  16122.  
  16123. You use this constructor to construct an ITime object from a container details 
  16124. CTIME structure. 
  16125.  
  16126. Platform Support 
  16127.  
  16128. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  16129. ΓöéPM          ΓöéMOTIF       Γöé
  16130. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  16131. ΓöéYes         ΓöéNo          Γöé
  16132. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  16133.  
  16134.  
  16135. ΓòÉΓòÉΓòÉ 1.46.7. ITime::minutes ΓòÉΓòÉΓòÉ
  16136.  
  16137. Returns the number of minutes past the hour. 
  16138.  
  16139. public:
  16140. unsigned minutes() const;
  16141.  
  16142.  
  16143. ΓòÉΓòÉΓòÉ 1.46.8. ITime::now ΓòÉΓòÉΓòÉ
  16144.  
  16145. Returns the current time. 
  16146.  
  16147. Note:  You can use this function as an ITime constructor. 
  16148.  
  16149. public:
  16150. static ITime now();
  16151.  
  16152.  
  16153. ΓòÉΓòÉΓòÉ 1.46.9. ITime::operator != ΓòÉΓòÉΓòÉ
  16154.  
  16155. Compares two objects to determine whether they are not equal. 
  16156.  
  16157. public:
  16158. Boolean operator !=(const ITime& aTime) const;
  16159.  
  16160.  
  16161. ΓòÉΓòÉΓòÉ 1.46.10. ITime::operator + ΓòÉΓòÉΓòÉ
  16162.  
  16163. Adds two objects. 
  16164.  
  16165. public:
  16166. ITime operator +(const ITime& aTime) const;
  16167.  
  16168.  
  16169. ΓòÉΓòÉΓòÉ 1.46.11. ITime::operator += ΓòÉΓòÉΓòÉ
  16170.  
  16171. Adds two objects and stores the result in the receiver. 
  16172.  
  16173. public:
  16174. ITime& operator +=(const ITime& aTime);
  16175.  
  16176.  
  16177. ΓòÉΓòÉΓòÉ 1.46.12. ITime::operator - ΓòÉΓòÉΓòÉ
  16178.  
  16179. Subtracts one object from another. 
  16180.  
  16181. public:
  16182. ITime operator -(const ITime& aTime) const;
  16183.  
  16184.  
  16185. ΓòÉΓòÉΓòÉ 1.46.13. ITime::operator -= ΓòÉΓòÉΓòÉ
  16186.  
  16187. Subtracts one object from another and stores the result in the receiver. 
  16188.  
  16189. public:
  16190. ITime& operator -=(const ITime& aTime);
  16191.  
  16192.  
  16193. ΓòÉΓòÉΓòÉ 1.46.14. ITime::operator < ΓòÉΓòÉΓòÉ
  16194.  
  16195. Compares two objects to determine whether one is less than the other. 
  16196.  
  16197. public:
  16198. Boolean operator <(const ITime& aTime) const;
  16199.  
  16200.  
  16201. ΓòÉΓòÉΓòÉ 1.46.15. ITime::operator <= ΓòÉΓòÉΓòÉ
  16202.  
  16203. Compares two objects to determine whether one is less than or equal to the 
  16204. other. 
  16205.  
  16206. public:
  16207. Boolean operator <=(const ITime& aTime) const;
  16208.  
  16209.  
  16210. ΓòÉΓòÉΓòÉ 1.46.16. ITime::operator == ΓòÉΓòÉΓòÉ
  16211.  
  16212. Compares two objects to determine whether they are equal. 
  16213.  
  16214. public:
  16215. Boolean operator ==(const ITime& aTime) const;
  16216.  
  16217.  
  16218. ΓòÉΓòÉΓòÉ 1.46.17. ITime::operator > ΓòÉΓòÉΓòÉ
  16219.  
  16220. Compares two objects to determine whether one is greater than the other. 
  16221.  
  16222. public:
  16223. Boolean operator >(const ITime& aTime) const;
  16224.  
  16225.  
  16226. ΓòÉΓòÉΓòÉ 1.46.18. ITime::operator >= ΓòÉΓòÉΓòÉ
  16227.  
  16228. Compares two objects to determine whether one is greater than or equal to the 
  16229. other. 
  16230.  
  16231. public:
  16232. Boolean operator >=(const ITime& aTime) const;
  16233.  
  16234.  
  16235. ΓòÉΓòÉΓòÉ 1.46.19. ITime::seconds ΓòÉΓòÉΓòÉ
  16236.  
  16237. Returns the number of seconds past the minute. 
  16238.  
  16239. public:
  16240. unsigned seconds() const;
  16241.  
  16242.  
  16243. ΓòÉΓòÉΓòÉ 1.47. ITrace ΓòÉΓòÉΓòÉ
  16244.  
  16245. Description 
  16246.  
  16247. Derivation 
  16248.  
  16249. Constructors 
  16250.  
  16251. Public Functions 
  16252.  
  16253. Protected Functions 
  16254.  
  16255. Protected Data 
  16256.  
  16257. Nested Types 
  16258.  
  16259. To close all the panels in a chapter, double click on this panel's system menu. 
  16260.  
  16261.  
  16262. ΓòÉΓòÉΓòÉ <hidden> Derivation - ITrace ΓòÉΓòÉΓòÉ
  16263.  
  16264. IBase
  16265.   Γöé
  16266. IVBase
  16267.   Γöé
  16268. ITrace
  16269.  
  16270. Inherited by none. 
  16271.  
  16272.  
  16273. ΓòÉΓòÉΓòÉ <hidden> Class Description - ITrace ΓòÉΓòÉΓòÉ
  16274.  
  16275. itrace.hpp 
  16276.  
  16277. Objects of the ITrace class provide module tracing within the User Interface 
  16278. Class Library. Whenever an exception is thrown by the library, trace records 
  16279. are output with information about the exception. You can use the ICLUI_TRACE 
  16280. and ICLUI_TRACETO environment variables to redirect the trace output to a file. 
  16281. The output trace records contain the following: 
  16282.  
  16283.     Error message text 
  16284.     Error ID 
  16285.     Class name 
  16286.     Information from the class IExceptionLocation 
  16287.  
  16288. The Application Support Class Library throws only two exceptions: 
  16289.  
  16290. ID   Explanation 
  16291. 1010 IC_ISTRING_OVERFLOW 
  16292. 1011 IC_ISTRING_INDEX_ERROR 
  16293.  
  16294. These error numbers are defined in the header file icconst.h. 
  16295.  
  16296. For exceptions thrown by the User Interface Class Library, the value of the 
  16297. error ID is one of the following: 
  16298.  
  16299.     The value of WinGetLastError or ERRINFO.idError if the error is an OS/2 
  16300.      PM-related error. 
  16301.     A hardcoded 0, if the exception is an X/Motif-related error. In most 
  16302.      cases, these window management systems do not give any error ID for the 
  16303.      exception to pass on. 
  16304.     The throwing function, which typically throws the exception after 
  16305.      performing a system call, if the exception is a system error. 
  16306.  
  16307. For exceptions thrown by the Collection Class Library, the error ID contains 
  16308. the letters CCL, then four numeric digits, then the letter E. 
  16309.  
  16310. Also by default, the library disables tracing. You can set tracing on by 
  16311. entering ICLUI_TRACE=ON in the environment. 
  16312.  
  16313. By default, the library attaches a prefix to the trace entry containing a 
  16314. sequence number followed by the process and thread where the trace call 
  16315. occurred. You can remove prefix area tracing by entering ICLUI_TRACE=NOPREFIX 
  16316. in the environment. Doing so has the side effect of turning tracing on. 
  16317.  
  16318. You can set the output location of tracing by entering one of the following in 
  16319. the environment: 
  16320.  
  16321.     ICLUI_TRACETO=STDERR for the standard error stream (stderr) 
  16322.     ICLUI_TRACETO=STDOUT for the standard output (stdout) 
  16323.     ICLUI_TRACETO=QUEUE for a queue 
  16324. Specifying any of the preceding locations has the side effect of turning 
  16325. tracing on. 
  16326.  
  16327. In addition to turning the trace options on and off in the environment, the 
  16328. library also provides static member functions to do the same thing under 
  16329. program control. 
  16330.  
  16331. The library supports trace input as IStrings or character arrays, and the 
  16332. library automatically adds a line feed on all trace calls. 
  16333.  
  16334. To enable you to compile the trace calls in and out of your code, the User 
  16335. Interface Class Library provides the following sets of macros for tracing 
  16336. modules and data: 
  16337.  
  16338.     The library defines IC_TRACE_RUNTIME by default. The following macros are 
  16339.      expanded: 
  16340.  
  16341.               IMODTRACE_RUNTIME()  IFUNCTRACE_RUNTIME()  ITRACE_RUNTIME()
  16342.  
  16343.     If you define IC_TRACE_DEVELOP, the following macros, in addition to the 
  16344.      RUNTIME macros, are expanded: 
  16345.  
  16346.               IMODTRACE_DEVELOP()  IFUNCTRACE_DEVELOP()  ITRACE_DEVELOP()
  16347.  
  16348.     If you define IC_TRACE_ALL, the following macros, in addition to the 
  16349.      RUNTIME and DEVELOP macros, are expanded: 
  16350.  
  16351.               IMODTRACE_ALL()      IFUNCTRACE_ALL()      ITRACE_ALL()
  16352.  
  16353. The IMODTRACE version of the macros accepts as input a module name that it uses 
  16354. for construction and destruction tracing. 
  16355.  
  16356. The IFUNCTRACE version of the macros accepts no input and uses the predefined 
  16357. identifier __FUNCTION__ for construction and destruction tracing. 
  16358.  
  16359. The ITRACE version of the macros accepts a text string to be written out. 
  16360.  
  16361. Presentation Manager Information 
  16362.  
  16363. In OS/2, the library supports the environment variables ICLUI TRACE and ICLUI 
  16364. TRACETO, in addition to ICLUI_TRACE and ICLUI_TRACETO. 
  16365.  
  16366. The default output location of tracing is the OS/2 queue \\QUEUES\\PRINTF32. 
  16367. You can display this queue using the program PMPRTF32.EXE. 
  16368.  
  16369. Motif Information 
  16370.  
  16371. The default output location of tracing is standardOutput. Setting the output 
  16372. location of tracing to queue has the same effect in X/Motif as setting it to 
  16373. standardOutput. 
  16374.  
  16375.  
  16376. ΓòÉΓòÉΓòÉ <hidden> Public Functions - ITrace ΓòÉΓòÉΓòÉ
  16377.  
  16378. Constructors
  16379. ITrace
  16380. ~ITrace
  16381.  
  16382. Enabling and Disabling
  16383. disableTrace
  16384. enableTrace
  16385. isTraceEnabled
  16386.  
  16387. Format
  16388. disableWriteLineNumber
  16389. disableWritePrefix
  16390. enableWriteLineNumber
  16391. enableWritePrefix
  16392. isWriteLineNumberEnabled
  16393. isWritePrefixEnabled
  16394.  
  16395. Output Operations
  16396. traceDestination
  16397. write
  16398. writeToQueue
  16399. writeToStandardError
  16400. writeToStandardOutput
  16401.  
  16402. Inherited Members
  16403. IVBase
  16404. asDebugInfo
  16405. asString
  16406.  
  16407. IBase
  16408. asDebugInfo
  16409. asString
  16410. messageFile
  16411. messageText
  16412. setMessageFile
  16413. version
  16414.  
  16415.  
  16416. ΓòÉΓòÉΓòÉ <hidden> ITrace - Constructors ΓòÉΓòÉΓòÉ
  16417.  
  16418. You can construct objects of this class by using the default constructor. If 
  16419. you do not specify the optional values, this constructor creates an ITrace 
  16420. object, but no logging occurs on construction or destruction. 
  16421.  
  16422.  
  16423. ΓòÉΓòÉΓòÉ <hidden> ITrace - Enabling and Disabling ΓòÉΓòÉΓòÉ
  16424.  
  16425. Use these members to enable or disable tracing, as well as to query whether 
  16426. tracing is on. 
  16427.  
  16428.  
  16429. ΓòÉΓòÉΓòÉ <hidden> ITrace - Format ΓòÉΓòÉΓòÉ
  16430.  
  16431. Use these members to enable, disable, and query the formatting options for 
  16432. writing trace output. 
  16433.  
  16434.  
  16435. ΓòÉΓòÉΓòÉ <hidden> ITrace - Output Operations ΓòÉΓòÉΓòÉ
  16436.  
  16437. Use these members to do the following: 
  16438.  
  16439.     Write trace data to the current trace location 
  16440.     Query the current trace location 
  16441.     Set the current trace location 
  16442.  
  16443.  
  16444. ΓòÉΓòÉΓòÉ <hidden> ITrace - Thread ID ΓòÉΓòÉΓòÉ
  16445.  
  16446. Use these members to query the thread ID. 
  16447.  
  16448.  
  16449. ΓòÉΓòÉΓòÉ <hidden> Protected Functions - ITrace ΓòÉΓòÉΓòÉ
  16450.  
  16451. Output Operations
  16452. writeFormattedString
  16453. writeString
  16454.  
  16455. Thread ID
  16456. threadId
  16457.  
  16458.  
  16459. ΓòÉΓòÉΓòÉ <hidden> Protected Data - ITrace ΓòÉΓòÉΓòÉ
  16460.  
  16461. Inherited Members
  16462. IBase
  16463. recoverable
  16464. unrecoverable
  16465.  
  16466.  
  16467. ΓòÉΓòÉΓòÉ 1.47.1. ITrace::disableTrace ΓòÉΓòÉΓòÉ
  16468.  
  16469. Disables trace entries from being written. 
  16470.  
  16471. public:
  16472. static void disableTrace();
  16473.  
  16474.  
  16475. ΓòÉΓòÉΓòÉ 1.47.2. ITrace::disableWriteLineNumber ΓòÉΓòÉΓòÉ
  16476.  
  16477. Disables the tracing of line number information. 
  16478.  
  16479. public:
  16480. static void disableWriteLineNumber();
  16481.  
  16482.  
  16483. ΓòÉΓòÉΓòÉ 1.47.3. ITrace::disableWritePrefix ΓòÉΓòÉΓòÉ
  16484.  
  16485. Disables the writing of the process ID, the thread ID, and the output line 
  16486. number to trace. 
  16487.  
  16488. public:
  16489. static void disableWritePrefix();
  16490.  
  16491.  
  16492. ΓòÉΓòÉΓòÉ 1.47.4. ITrace::enableTrace ΓòÉΓòÉΓòÉ
  16493.  
  16494. Enables trace entries to be written. 
  16495.  
  16496. public:
  16497. static void enableTrace();
  16498.  
  16499.  
  16500. ΓòÉΓòÉΓòÉ 1.47.5. ITrace::enableWriteLineNumber ΓòÉΓòÉΓòÉ
  16501.  
  16502. Enables the tracing of line number information. 
  16503.  
  16504. public:
  16505. static void enableWriteLineNumber();
  16506.  
  16507.  
  16508. ΓòÉΓòÉΓòÉ 1.47.6. ITrace::enableWritePrefix ΓòÉΓòÉΓòÉ
  16509.  
  16510. Enables the writing of the process ID, the thread ID, and the output line 
  16511. number to trace. 
  16512.  
  16513. public:
  16514. static void enableWritePrefix();
  16515.  
  16516.  
  16517. ΓòÉΓòÉΓòÉ 1.47.7. ITrace::isTraceEnabled ΓòÉΓòÉΓòÉ
  16518.  
  16519. Determines whether tracing is currently enabled. 
  16520.  
  16521. public:
  16522. static Boolean isTraceEnabled();
  16523.  
  16524.  
  16525. ΓòÉΓòÉΓòÉ 1.47.8. ITrace::isWriteLineNumberEnabled ΓòÉΓòÉΓòÉ
  16526.  
  16527. Determines whether line numbers are currently being written. 
  16528.  
  16529. public:
  16530. static Boolean isWriteLineNumberEnabled();
  16531.  
  16532.  
  16533. ΓòÉΓòÉΓòÉ 1.47.9. ITrace::isWritePrefixEnabled ΓòÉΓòÉΓòÉ
  16534.  
  16535. Determines whether the line count prefix is being written. 
  16536.  
  16537. public:
  16538. static Boolean isWritePrefixEnabled();
  16539.  
  16540.  
  16541. ΓòÉΓòÉΓòÉ 1.47.10. ITrace::ITrace ΓòÉΓòÉΓòÉ
  16542.  
  16543. You can construct objects of this class by using the default constructor. If 
  16544. you do not specify the optional values, this constructor creates an ITrace 
  16545. object, but no logging occurs on construction or destruction. 
  16546.  
  16547. public:
  16548. ITrace(const char* traceName = 0, long lineNumber = 0);
  16549.  
  16550. You pass the optional parameters to gain the following trace behavior: 
  16551.  
  16552. traceName (Optional) If you specify traceName, the name is written on 
  16553.           construction and again on destruction. 
  16554.  
  16555.           Warning: If you pass an IString to the trace object, you must ensure 
  16556.           that the lifetime of the IString exceeds the lifetime of the ITrace 
  16557.           object. The library does not support the use of temporary IStrings. 
  16558.  
  16559. lineNumber (Optional) The line number where the trace statement occurred. 
  16560.  
  16561.  
  16562. ΓòÉΓòÉΓòÉ 1.47.11. ITrace::threadId ΓòÉΓòÉΓòÉ
  16563.  
  16564. Returns the current thread identifier. 
  16565.  
  16566. protected:
  16567. static unsigned long threadId();
  16568.  
  16569. Motif: In environments that do not support kernel threads, this function always 
  16570. returns a 1. 
  16571.  
  16572.  
  16573. ΓòÉΓòÉΓòÉ 1.47.12. ITrace::traceDestination ΓòÉΓòÉΓòÉ
  16574.  
  16575. Returns the trace output destination for this trace object. The returned value 
  16576. is an enumerator provided by ITrace::Destination. 
  16577.  
  16578. public:
  16579. static ITrace::Destination traceDestination();
  16580.  
  16581.  
  16582. ΓòÉΓòÉΓòÉ 1.47.13. ITrace::write ΓòÉΓòÉΓòÉ
  16583.  
  16584. Writes the specified text. 
  16585.  
  16586. text      The text to write as a character string. 
  16587.  
  16588. text      The text to write as an IString. 
  16589.  
  16590. Overload 1 
  16591.  
  16592. public:
  16593. static void write(const IString& text);
  16594.  
  16595. Overload 2 
  16596.  
  16597. public:
  16598. static void write(const char* text);
  16599.  
  16600.  
  16601. ΓòÉΓòÉΓòÉ 1.47.14. ITrace::writeFormattedString ΓòÉΓòÉΓòÉ
  16602.  
  16603. Writes the trace data after formatting, which includes the following: 
  16604.  
  16605.     Adding the prefix, if necessary 
  16606.     Updating any new lines embedded in the string to include the prefix 
  16607.  
  16608. string    Any trace information you want to write. 
  16609.  
  16610. marker    When the User Interface Class Library uses this function, it 
  16611.           specifies a character to mark, or distinguish, whether the trace 
  16612.           statement is entering (+) or exiting (-) a function. You can specify 
  16613.           marker for any purpose. 
  16614.  
  16615. protected:
  16616. static void
  16617.   writeFormattedString( const IString& string,
  16618.                         char* marker);
  16619.  
  16620.  
  16621. ΓòÉΓòÉΓòÉ 1.47.15. ITrace::writeString ΓòÉΓòÉΓòÉ
  16622.  
  16623. Writes to the output device without formatting. 
  16624.  
  16625. text      Any trace information you want to write. 
  16626.  
  16627. protected:
  16628. static void writeString(char* text);
  16629.  
  16630.  
  16631. ΓòÉΓòÉΓòÉ 1.47.16. ITrace::writeToQueue ΓòÉΓòÉΓòÉ
  16632.  
  16633. Sets the location for output to \\QUEUES\\PRINTF32. 
  16634.  
  16635. public:
  16636. static void writeToQueue();
  16637.  
  16638. Motif: In AIX, this member function is equivalent to writeToStandardOutput. 
  16639.  
  16640.  
  16641. ΓòÉΓòÉΓòÉ 1.47.17. ITrace::writeToStandardError ΓòÉΓòÉΓòÉ
  16642.  
  16643. Sets the location for output to the standard error stream. 
  16644.  
  16645. public:
  16646. static void writeToStandardError();
  16647.  
  16648.  
  16649. ΓòÉΓòÉΓòÉ 1.47.18. ITrace::writeToStandardOutput ΓòÉΓòÉΓòÉ
  16650.  
  16651. Sets the location for output to the standard output stream. Using this function 
  16652. is equivalent to setting the environment variable ICLUI_TRACETO=OUT. 
  16653.  
  16654. Note:  STDOUT is a synonym for OUT. 
  16655.  
  16656. public:
  16657. static void writeToStandardOutput();
  16658.  
  16659.  
  16660. ΓòÉΓòÉΓòÉ 1.47.19. ITrace::~ITrace ΓòÉΓòÉΓòÉ
  16661.  
  16662. public:
  16663. ~ITrace();
  16664.  
  16665.  
  16666. ΓòÉΓòÉΓòÉ <hidden> Nested Types - ITrace ΓòÉΓòÉΓòÉ
  16667.  
  16668. Enumerations 
  16669.  
  16670.       Destination 
  16671.  
  16672.  
  16673. ΓòÉΓòÉΓòÉ <hidden> Enums - Destination ΓòÉΓòÉΓòÉ
  16674.  
  16675. enum Destination { queue, standardError, standardOutput };
  16676.  
  16677. These enumerators specify the destination of the trace data: 
  16678.  
  16679. queue          Sends the trace data to the queue. 
  16680.  
  16681. standardError  Sends the trace data to the standard error stream (stderr). 
  16682.  
  16683. standardOutput Sends the trace data to the standard output (stdout). 
  16684.  
  16685. When used on the following platforms, the queue enumerator is not supported, 
  16686. and queue tracing goes to stdout: 
  16687.  
  16688.     AIX 
  16689.     Solaris 
  16690.     MVS 
  16691.  
  16692. Motif InformationAIX does not support the queue enumerator. If the trace 
  16693. destination is queue, tracing goes to stdout. 
  16694.  
  16695.  
  16696. ΓòÉΓòÉΓòÉ 1.48. IVBase ΓòÉΓòÉΓòÉ
  16697.  
  16698. Description 
  16699.  
  16700. Derivation 
  16701.  
  16702. Public Functions 
  16703.  
  16704. Protected Data 
  16705.  
  16706. To close all the panels in a chapter, double click on this panel's system menu. 
  16707.  
  16708.  
  16709. ΓòÉΓòÉΓòÉ <hidden> Derivation - IVBase ΓòÉΓòÉΓòÉ
  16710.  
  16711. IBase
  16712.   Γöé
  16713. IVBase
  16714.  
  16715. Inherited by: 
  16716.  
  16717.      IApplication 
  16718.      IBaseComboBox::Cursor 
  16719.      IBaseListBox::Cursor 
  16720.      IBuffer 
  16721.      IClipboard 
  16722.      IClipboard::Cursor 
  16723.      IColor 
  16724.      IContainerColumn 
  16725.      IContainerControl::ColumnCursor 
  16726.      IContainerControl::CompareFn 
  16727.      IContainerControl::FilterFn 
  16728.      IContainerControl::Iterator 
  16729.      IContainerControl::ObjectCursor 
  16730.      IContainerControl::TextCursor 
  16731.      IContainerObject 
  16732.      IDMImage 
  16733.      IDMItemProvider 
  16734.      IDMRenderer 
  16735.      IErrorInfo 
  16736.      IEvent 
  16737.      IFont 
  16738.      IFont::FaceNameCursor 
  16739.      IFont::PointSizeCursor 
  16740.      IGList::Cursor 
  16741.      IGraphic 
  16742.      IGraphicContext 
  16743.      IHandler 
  16744.      IMenu::Cursor 
  16745.      IMessageBox 
  16746.      IMMAudioCDContents 
  16747.      IMMAudioCDContents::Cursor 
  16748.      IMMSpeed 
  16749.      IMMTime 
  16750.      INotebook::Cursor 
  16751.      INotebook::PageSettings 
  16752.      INotifier 
  16753.      IObserver 
  16754.      IObserverList 
  16755.      IObserverList::Cursor 
  16756.      IProfile 
  16757.      IProfile::Cursor 
  16758.      IRefCounted 
  16759.      IResource 
  16760.      IResourceLibrary 
  16761.      IResourceLock 
  16762.      IStringTest 
  16763.      ISubmenu::Cursor 
  16764.      ITextSpinButton::Cursor 
  16765.      IThread 
  16766.      IThread::Cursor 
  16767.      ITimer 
  16768.      ITimer::Cursor 
  16769.      IToolBar::FrameCursor 
  16770.      IToolBar::WindowCursor 
  16771.      ITrace 
  16772.      IWindow::BidiSettings 
  16773.      IWindow::ChildCursor 
  16774.      IWindow::ExceptionFn 
  16775.  
  16776.  
  16777. ΓòÉΓòÉΓòÉ <hidden> Class Description - IVBase ΓòÉΓòÉΓòÉ
  16778.  
  16779. ivbase.hpp 
  16780.  
  16781. The IVBase class provides basic generic behavior for all the library classes 
  16782. that have virtual functions. In addition, it allows derived classes to exploit 
  16783. the nested type and value names in the IBase class, such as Boolean, true, and 
  16784. false. See IBasefor information about that class. 
  16785.  
  16786. Derived classes are expected to override the virtual functions IVBase::asString 
  16787. and IVBase::asDebugInfo. This enables automatic support for the output of 
  16788. derived class objects on ostreams, such as cout, cerr, or both. See asString 
  16789. and asDebugInfo for information about those functions. 
  16790.  
  16791.  
  16792. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IVBase ΓòÉΓòÉΓòÉ
  16793.  
  16794. Constructors
  16795. ~IVBase
  16796.  
  16797. Conversions
  16798. asDebugInfo
  16799. asString
  16800.  
  16801. Inherited Members
  16802. IBase
  16803. asDebugInfo
  16804. asString
  16805. messageFile
  16806. messageText
  16807. setMessageFile
  16808. version
  16809.  
  16810.  
  16811. ΓòÉΓòÉΓòÉ <hidden> IVBase - Constructors ΓòÉΓòÉΓòÉ
  16812.  
  16813. The class provides a virtual destructor to ensure that all derived classes' 
  16814. destructors are also virtual. 
  16815.  
  16816.  
  16817. ΓòÉΓòÉΓòÉ <hidden> IVBase - Conversions ΓòÉΓòÉΓòÉ
  16818.  
  16819. Use these members to return an IVBase object in a different form. 
  16820.  
  16821.  
  16822. ΓòÉΓòÉΓòÉ <hidden> IVBase - Displaying ΓòÉΓòÉΓòÉ
  16823.  
  16824. Use these members to write an IVBase object to an ostream object. 
  16825.  
  16826.  
  16827. ΓòÉΓòÉΓòÉ <hidden> Protected Data - IVBase ΓòÉΓòÉΓòÉ
  16828.  
  16829. Inherited Members
  16830. IBase
  16831. recoverable
  16832. unrecoverable
  16833.  
  16834.  
  16835. ΓòÉΓòÉΓòÉ 1.48.1. IVBase::asDebugInfo ΓòÉΓòÉΓòÉ
  16836.  
  16837. Obtains the diagnostic version of an object's contents. Generally, this is a 
  16838. hex string representation of a pointer to the object. 
  16839.  
  16840. public:
  16841. virtual IString asDebugInfo() const;
  16842.  
  16843.  
  16844. ΓòÉΓòÉΓòÉ 1.48.2. IVBase::asString ΓòÉΓòÉΓòÉ
  16845.  
  16846. Obtains the standard version of an object's contents. 
  16847.  
  16848. public:
  16849. virtual IString asString() const;
  16850.  
  16851.  
  16852. ΓòÉΓòÉΓòÉ 1.48.3. IVBase::~IVBase ΓòÉΓòÉΓòÉ
  16853.  
  16854. The virtual destructor ensures that all derived classes' destructors are also 
  16855. virtual. 
  16856.  
  16857. public:
  16858. virtual  ~IVBase();
  16859.  
  16860.  
  16861. ΓòÉΓòÉΓòÉ 1.49. IXLibErrorInfo ΓòÉΓòÉΓòÉ
  16862.  
  16863. Description 
  16864.  
  16865. Derivation 
  16866.  
  16867. Constructors 
  16868.  
  16869. Public Functions 
  16870.  
  16871. Protected Data 
  16872.  
  16873. To close all the panels in a chapter, double click on this panel's system menu. 
  16874.  
  16875.  
  16876. ΓòÉΓòÉΓòÉ <hidden> Derivation - IXLibErrorInfo ΓòÉΓòÉΓòÉ
  16877.  
  16878. IBase
  16879.   Γöé
  16880. IVBase
  16881.   Γöé
  16882. IErrorInfo
  16883.   Γöé
  16884. IXLibErrorInfo
  16885.  
  16886. Inherited by none. 
  16887.  
  16888.  
  16889. ΓòÉΓòÉΓòÉ <hidden> Class Description - IXLibErrorInfo ΓòÉΓòÉΓòÉ
  16890.  
  16891. iexcept.hpp 
  16892.  
  16893. Objects of the IXLibErrorInfo class represent error information that you can 
  16894. include in an exception object. When an X library call results in an error 
  16895. condition, objects of the IXLibErrorInfo class are created. IThread registers a 
  16896. handler through XSetErrorHandler to do the following: 
  16897.  
  16898.     Detect the error condition 
  16899.     Save the error code 
  16900. You can use this error code to obtain the information about the X library 
  16901. error. When you have an X library function call fail, construct an object of 
  16902. this class to obtain the error text. You can use the error text to construct a 
  16903. derived class object of IException. 
  16904.  
  16905. The User Interface Class Library provides the ITHROWXLIBERROR macro for 
  16906. throwing exceptions constructed with IXLibErrorInfo information. This macro has 
  16907. the following parameters: 
  16908.  
  16909. location  The name of the X library function returning an error code. 
  16910.  
  16911. name      Use the enumeration ExceptionType to specify the type of the 
  16912.           exception. The default is accessError. 
  16913.  
  16914. severity  Use the enumeration IException::Severity to specify the severity of 
  16915.           the error. The default is recoverable. 
  16916.  
  16917. This macro generates code that calls throwXLibError, which does the following: 
  16918.  
  16919.   1. Creates an IXLibErrorInfo object 
  16920.   2. Uses the object to create an IException object 
  16921.   3. Adds location information 
  16922.   4. Logs the exception data 
  16923.   5. Throws the exception 
  16924.  
  16925. Portability Considerations The IXLibErrorInfo class is provided for versions of 
  16926. the product that run on X/Windows-based windowing systems.  On OS/2, MVS and 
  16927. AS/400 versions of the library, this class is not supported. 
  16928.  
  16929. Presentation Manager Information 
  16930.  
  16931. The OS/2 release of the User Interface Class Library does not support this 
  16932. class. 
  16933.  
  16934.  
  16935. ΓòÉΓòÉΓòÉ <hidden> Public Functions - IXLibErrorInfo ΓòÉΓòÉΓòÉ
  16936.  
  16937. Constructors
  16938. IXLibErrorInfo
  16939. ~IXLibErrorInfo
  16940.  
  16941. Error Information
  16942. errorId
  16943. isAvailable
  16944. operator const char *
  16945. text
  16946.  
  16947. Throw Support
  16948. throwXLibError
  16949.  
  16950. Inherited Members
  16951. IErrorInfo
  16952. errorId
  16953. isAvailable
  16954. operator const char *
  16955. text
  16956. throwError
  16957.  
  16958. IVBase
  16959. asDebugInfo
  16960. asString
  16961.  
  16962. IBase
  16963. asDebugInfo
  16964. asString
  16965. messageFile
  16966. messageText
  16967. setMessageFile
  16968. version
  16969.  
  16970.  
  16971. ΓòÉΓòÉΓòÉ <hidden> IXLibErrorInfo - Constructors ΓòÉΓòÉΓòÉ
  16972.  
  16973. You can construct and destruct objects of this class. You cannot copy or assign 
  16974. objects of this class. 
  16975.  
  16976.  
  16977. ΓòÉΓòÉΓòÉ <hidden> IXLibErrorInfo - Error Information ΓòÉΓòÉΓòÉ
  16978.  
  16979. Use these members to return error information provided by objects of this 
  16980. class. 
  16981.  
  16982.  
  16983. ΓòÉΓòÉΓòÉ <hidden> IXLibErrorInfo - Hidden Functions ΓòÉΓòÉΓòÉ
  16984.  
  16985. These members are hidden to prevent you from copying and assigning objects of 
  16986. this class. 
  16987.  
  16988.  
  16989. ΓòÉΓòÉΓòÉ <hidden> IXLibErrorInfo - Throw Support ΓòÉΓòÉΓòÉ
  16990.  
  16991. Use these members to support the throwing of exceptions. 
  16992.  
  16993.  
  16994. ΓòÉΓòÉΓòÉ <hidden> Protected Data - IXLibErrorInfo ΓòÉΓòÉΓòÉ
  16995.  
  16996. Inherited Members
  16997. IBase
  16998. recoverable
  16999. unrecoverable
  17000.  
  17001.  
  17002. ΓòÉΓòÉΓòÉ 1.49.1. IXLibErrorInfo::errorId ΓòÉΓòÉΓòÉ
  17003.  
  17004. Returns the X error code, which you can use to obtain the error text. 
  17005.  
  17006. public:
  17007. virtual unsigned long errorId() const;
  17008.  
  17009. Platform Support 
  17010.  
  17011. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  17012. ΓöéPM          ΓöéMOTIF       Γöé
  17013. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  17014. ΓöéNo          ΓöéYes         Γöé
  17015. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  17016.  
  17017.  
  17018. ΓòÉΓòÉΓòÉ 1.49.2. IXLibErrorInfo::isAvailable ΓòÉΓòÉΓòÉ
  17019.  
  17020. If the error text is available, true is returned. 
  17021.  
  17022. public:
  17023. virtual Boolean isAvailable() const;
  17024.  
  17025. Platform Support 
  17026.  
  17027. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  17028. ΓöéPM          ΓöéMOTIF       Γöé
  17029. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  17030. ΓöéNo          ΓöéYes         Γöé
  17031. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  17032.  
  17033.  
  17034. ΓòÉΓòÉΓòÉ 1.49.3. IXLibErrorInfo::IXLibErrorInfo ΓòÉΓòÉΓòÉ
  17035.  
  17036. You can construct and destruct objects of this class. You cannot copy or assign 
  17037. objects of this class. 
  17038.  
  17039. public:
  17040. IXLibErrorInfo(const char* systemFunctionName = 0);
  17041.  
  17042. You can only construct objects of this class using the default constructor. 
  17043.  
  17044. Note:  If the constructor cannot load the error text, the User Interface Class 
  17045.        Library provides the following default text: "No error text is 
  17046.        available." 
  17047.  
  17048. systemFunctionName (Optional) The name of the failing X library function. If 
  17049.           you specify systemFunctionName, the constructor prefixes it to the 
  17050.           error text. 
  17051.  
  17052. Platform Support 
  17053.  
  17054. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  17055. ΓöéPM          ΓöéMOTIF       Γöé
  17056. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  17057. ΓöéNo          ΓöéYes         Γöé
  17058. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  17059.  
  17060.  
  17061. ΓòÉΓòÉΓòÉ 1.49.4. IXLibErrorInfo::operator const char * ΓòÉΓòÉΓòÉ
  17062.  
  17063. Returns the error text. 
  17064.  
  17065. public:
  17066. virtual  operator const char *() const;
  17067.  
  17068. Platform Support 
  17069.  
  17070. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  17071. ΓöéPM          ΓöéMOTIF       Γöé
  17072. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  17073. ΓöéNo          ΓöéYes         Γöé
  17074. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  17075.  
  17076.  
  17077. ΓòÉΓòÉΓòÉ 1.49.5. IXLibErrorInfo::text ΓòÉΓòÉΓòÉ
  17078.  
  17079. Returns the error text. 
  17080.  
  17081. public:
  17082. virtual const char* text() const;
  17083.  
  17084. Platform Support 
  17085.  
  17086. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  17087. ΓöéPM          ΓöéMOTIF       Γöé
  17088. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  17089. ΓöéNo          ΓöéYes         Γöé
  17090. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  17091.  
  17092.  
  17093. ΓòÉΓòÉΓòÉ 1.49.6. IXLibErrorInfo::throwXLibError ΓòÉΓòÉΓòÉ
  17094.  
  17095. This function is used by the ITHROWCLIBERROR macro.  The function creates an 
  17096. IXLibErrorInfo object and uses the text from it to do the following: 
  17097.  
  17098.     Create an exception object 
  17099.     Add the location information to it 
  17100.     Log the exception data 
  17101.     Throw the exception 
  17102.  
  17103. functionName The name of the function where the exception occurred. 
  17104.  
  17105. location  An IExceptionLocation object containing the following: 
  17106.  
  17107.               Function name 
  17108.               File name 
  17109.               Line number where the function is called 
  17110.  
  17111. name      Use the enumeration IErrorInfo::ExceptionType to specify the type of 
  17112.           the exception. The default is accessError. 
  17113.  
  17114. severity  Use the enumeration IException::Severity to specify the severity of 
  17115.           the error. The default is recoverable. 
  17116.  
  17117. public:
  17118. static void
  17119.   throwXLibError( const char* functionName,
  17120.                   const IExceptionLocation& location,
  17121.                   IErrorInfo::ExceptionType name = accessError,
  17122.                   IException::Severity severity = recoverable);
  17123.  
  17124. Platform Support 
  17125.  
  17126. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  17127. ΓöéPM          ΓöéMOTIF       Γöé
  17128. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  17129. ΓöéNo          ΓöéYes         Γöé
  17130. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  17131.  
  17132.  
  17133. ΓòÉΓòÉΓòÉ 1.49.7. IXLibErrorInfo::~IXLibErrorInfo ΓòÉΓòÉΓòÉ
  17134.  
  17135. public:
  17136. virtual  ~IXLibErrorInfo();
  17137.  
  17138. Platform Support 
  17139.  
  17140. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  17141. ΓöéPM          ΓöéMOTIF       Γöé
  17142. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  17143. ΓöéNo          ΓöéYes         Γöé
  17144. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  17145.