home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / oclsrc15.zip / OCL / Include / OContainer.inl < prev    next >
Text File  |  1996-01-16  |  3KB  |  106 lines

  1. // OCL - OS/2 Class Library
  2. // (c) Cubus 1995
  3. // All Rights Reserved
  4. // OContainer.inl
  5.  
  6. /*
  7.  * Redistribution and use in source and binary forms, with or without
  8.  * modification, are permitted provided that the following conditions
  9.  * are met:
  10.  * 1. Redistributions of source code must retain the above copyright
  11.  *    notice, this list of conditions and the following disclaimer.
  12.  * 2. Neither the name Cubus nor the name Team OCL may be used to
  13.  *    endorse or promote products derived from this software
  14.  *    without specific prior written permission.
  15.  * 3. See OCL.INF for a detailed copyright notice.
  16.  *
  17.  *              THIS SOFTWARE IS PROVIDED ``AS IS'' AND
  18.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  19.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  20.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  21.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  22.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  23.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  24.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  25.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  26.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  27.  * SUCH DAMAGE.
  28.  */
  29.  
  30. // $Header: E:/Projects/OCL/Include/rcs/OContainer.inl 1.2 1996/01/16 10:12:17 B.STEIN Release B.STEIN $
  31.  
  32. #ifndef OCONTAINER_INLINED
  33.   #define OCONTAINER_INLINED
  34.  
  35.  
  36. template <class T, class R>
  37. OContainer<T,R>::OContainer(const ULONG id,
  38.                             const HWND Parent,
  39.                             const ULONG cnrStyle, 
  40.                             const ULONG initViewStyle)
  41.   : OContainerBase(id, Parent, cnrStyle, initViewStyle)
  42.   {}
  43.  
  44.  
  45. template <class T, class R>
  46. OContainer<T,R>::OContainer(const ULONG id, 
  47.                             const OFrame& Parent,
  48.                             const ULONG cnrStyle,
  49.                             const ULONG initViewStyle)
  50.   : OContainerBase(id, Parent, cnrStyle, initViewStyle)
  51.   {}
  52.  
  53.  
  54. template <class T, class R>
  55. OContainer<T,R>::OContainer(const ULONG id,
  56.                             const pOFrame Parent,
  57.                             const ULONG cnrStyle, 
  58.                             const ULONG initViewStyle)
  59.   : OContainerBase(id, Parent, cnrStyle, initViewStyle)
  60.   {}
  61.  
  62.  
  63. template <class T, class R>
  64. OContainer<T,R>::~OContainer() {}
  65.  
  66.  
  67. template <class T, class R>
  68. PSZ OContainer<T,R>::isOfType() const
  69.  return("OContainer<T,R>"); 
  70. }
  71.  
  72.  
  73. template <class T, class R>
  74. T* OContainer<T,R>::allocRecords(ULONG records) const
  75. {
  76.  return((T*)OContainerBase::_allocRecords((sizeof(T) - sizeof(R)), records));
  77. }
  78.  
  79.  
  80.  
  81. template <class T, class R>
  82. T* OContainer<T,R>::queryRecord(T* root, ULONG flag, ULONG order) const
  83. {
  84.  return((T*)OContainerBase::_queryRecord(root, flag, order));
  85. }
  86.  
  87.  
  88. template <class T, class R>
  89. T* OContainer<T,R>::queryEmphasis(T* record, ULONG flag) const
  90. {
  91.  return((T*)OContainerBase::_queryEmphasis(record, flag));
  92. }
  93.  
  94.  
  95. template <class T, class R>
  96. T* OContainer<T,R>::querySelected(T* record) const
  97. {
  98.  return((T*)OContainerBase::_queryEmphasis(record, CRA_SELECTED));
  99. }
  100.  
  101. #endif // OCONTAINER_INLINED
  102.  
  103.  
  104. // end of source
  105.