home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 3 / AACD03.BIN / AACD / Programming / Triton / Source / classes / object.c < prev    next >
C/C++ Source or Header  |  1998-05-23  |  3KB  |  76 lines

  1. /*
  2.  *  OpenTriton -- A free release of the triton.library source code
  3.  *  Copyright (C) 1993-1998  Stefan Zeiger
  4.  *
  5.  *  This program is free software; you can redistribute it and/or modify
  6.  *  it under the terms of the GNU General Public License as published by
  7.  *  the Free Software Foundation; either version 2 of the License, or
  8.  *  (at your option) any later version.
  9.  *
  10.  *  This program is distributed in the hope that it will be useful,
  11.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  *  GNU General Public License for more details.
  14.  *
  15.  *  You should have received a copy of the GNU General Public License
  16.  *  along with this program; if not, write to the Free Software
  17.  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  *
  19.  */
  20.  
  21.  
  22. /****** triton.library/class_Object ******
  23. *
  24. *   NAME    
  25. *    class_Object -- The abstract root class
  26. *
  27. *   SUPERCLASS
  28. *    <none>
  29. *
  30. *   SYNOPSIS
  31. *    (TROB_Object)
  32. *
  33. *   ATTRIBUTES
  34. *    <Default>        : <unused>
  35. *
  36. *   OBJECT MESSAGES
  37. *    TROM_NEW         : Create an instance
  38. *    TROM_DISPOSE     : Dispose of an instance
  39. *
  40. ******/
  41.  
  42.  
  43. /////////////////////////////////////////////////////////////////////////////////////////////////////////////
  44. //////////////////////////////////////////////////////////////////////////////////////// Include our stuff //
  45. /////////////////////////////////////////////////////////////////////////////////////////////////////////////
  46.  
  47. #define TR_THIS_IS_TRITON
  48.  
  49. #include <libraries/triton.h>
  50. #include <clib/triton_protos.h>
  51. #include "/internal.h"
  52. #include "object.def"
  53.  
  54.  
  55. /////////////////////////////////////////////////////////////////////////////////////////////////////////////
  56. ////////////////////////////////////////////////////////////////////////////////////////////// Object data //
  57. /////////////////////////////////////////////////////////////////////////////////////////////////////////////
  58.  
  59. #define OBJECT object
  60.  
  61.  
  62. /////////////////////////////////////////////////////////////////////////////////////////////////////////////
  63. ////////////////////////////////////////////////////////////////////////////////////////////////// Methods //
  64. /////////////////////////////////////////////////////////////////////////////////////////////////////////////
  65.  
  66. TR_METHOD(Object,NEW,NewData)
  67. {
  68.   OBJECT->Project=data->project;
  69.   return (ULONG)object;
  70. }
  71.  
  72. //    case TROM_DISPOSE: // Not needed; the entire pool gets deleted
  73. //      TR_FreePooled(OBJECT->Project->trp_MemPool,
  74. //            (void *)object,((struct TROD_Object *)object)->Class->trc_SizeOfClassData);
  75. //      return 1L;
  76.