home *** CD-ROM | disk | FTP | other *** search
/ Windows 95 v2.4 Fix / W95-v2.4fix.iso / ACADWIN / ADS / CPP / GENERAL / ADSTABLE.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-08  |  4.5 KB  |  155 lines

  1. /* 
  2.     ADSTABLE.H -
  3.     
  4.     This file:
  5.  
  6.         Declares ADS table objects.
  7.  
  8.     (C) Copyright 1988-1994 by Autodesk, Inc.
  9.  
  10.     This program is copyrighted by Autodesk, Inc. and is  licensed
  11.     to you under the following conditions.  You may not distribute
  12.     or  publish the source code of this program in any form.   You
  13.     may  incorporate this code in object form in derivative  works
  14.     provided  such  derivative  works  are  (i.) are  designed and
  15.     intended  to  work  solely  with  Autodesk, Inc. products, and
  16.     (ii.)  contain  Autodesk's  copyright  notice  "(C)  Copyright
  17.     1988-1994 by Autodesk, Inc."
  18.  
  19.     AUTODESK  PROVIDES THIS PROGRAM "AS IS" AND WITH  ALL  FAULTS.
  20.     AUTODESK  SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF  MER-
  21.     CHANTABILITY OR FITNESS FOR A PARTICULAR USE.  AUTODESK,  INC.
  22.     DOES  NOT  WARRANT THAT THE OPERATION OF THE PROGRAM  WILL  BE
  23.     UNINTERRUPTED OR ERROR FREE.
  24.  
  25. */
  26. #ifndef _ADSTABLE_H
  27. #define _ADSTABLE_H
  28.  
  29. //-----------------------------------------------------------------------------
  30. struct ADS_TABLE_OBJ;
  31. struct ADS_LAYER;
  32. struct ADS_LTYPE;
  33. struct ADS_VIEW;
  34. struct ADS_STYLE;
  35. struct ADS_BLOCK;
  36. struct ADS_UCS;
  37. struct ADS_DIMSTYLE;
  38. struct ADS_VPORT;
  39. struct ADS_APPID;
  40.  
  41. //-----------------------------------------------------------------------------
  42. struct ADS_TABLE_OBJ*   MakeAdsTable( struct resbuf* rb );
  43. void                    DeleteAdsTable( ADS_TABLE_OBJ* table_obj );
  44.  
  45. //-----------------------------------------------------------------------------
  46. struct ADS_TABLE_OBJ : ADS_OBJ
  47. {
  48.     struct resbuf   *rb;
  49.  
  50.                     ADS_TABLE_OBJ( struct resbuf* _rb )
  51.                     {
  52.                         rb = _rb;
  53.                     }
  54.     virtual         ~ADS_TABLE_OBJ(){}
  55.     BOOL            Valid() { return ( rb != NULL ); }
  56.  
  57.     ADS_STRING      formatstring;
  58.     ADS_STRING&     FormatTableString();
  59.  
  60. private:
  61.     BASIC_CPP_STUFF( ADS_TABLE_OBJ )
  62. };
  63.  
  64. //-----------------------------------------------------------------------------
  65. struct ADS_LAYER : ADS_TABLE_OBJ
  66. {
  67.                     ADS_LAYER( struct resbuf* _rb ) : ADS_TABLE_OBJ( _rb ){}
  68.     virtual         ~ADS_LAYER(){}
  69.  
  70. private:
  71.     BASIC_CPP_STUFF( ADS_LAYER )
  72. };
  73.  
  74. //-----------------------------------------------------------------------------
  75. struct ADS_LTYPE : ADS_TABLE_OBJ
  76. {
  77.                     ADS_LTYPE( struct resbuf* _rb ) : ADS_TABLE_OBJ( _rb ){}
  78.     virtual         ~ADS_LTYPE(){}
  79.  
  80. private:
  81.     BASIC_CPP_STUFF( ADS_LTYPE )
  82. };
  83.  
  84. //-----------------------------------------------------------------------------
  85. struct ADS_VIEW : ADS_TABLE_OBJ
  86. {
  87.                     ADS_VIEW( struct resbuf* _rb ) : ADS_TABLE_OBJ( _rb ){}
  88.     virtual         ~ADS_VIEW(){}
  89.  
  90. private:
  91.     BASIC_CPP_STUFF( ADS_VIEW )
  92. };
  93.  
  94. //-----------------------------------------------------------------------------
  95. struct ADS_STYLE : ADS_TABLE_OBJ
  96. {
  97.                     ADS_STYLE( struct resbuf* _rb ) : ADS_TABLE_OBJ( _rb ){}
  98.     virtual         ~ADS_STYLE(){}
  99.  
  100. private:
  101.     BASIC_CPP_STUFF( ADS_STYLE )
  102. };
  103.  
  104. //-----------------------------------------------------------------------------
  105. struct ADS_BLOCK : ADS_TABLE_OBJ
  106. {
  107.                     ADS_BLOCK( struct resbuf* _rb ) : ADS_TABLE_OBJ( _rb ){}
  108.     virtual         ~ADS_BLOCK(){}
  109.  
  110. private:
  111.     BASIC_CPP_STUFF( ADS_BLOCK )
  112. };
  113.  
  114. //-----------------------------------------------------------------------------
  115. struct ADS_UCS : ADS_TABLE_OBJ
  116. {
  117.                     ADS_UCS( struct resbuf* _rb ) : ADS_TABLE_OBJ( _rb ){}
  118.     virtual         ~ADS_UCS(){}
  119.  
  120. private:
  121.     BASIC_CPP_STUFF( ADS_UCS )
  122. };
  123.  
  124. //-----------------------------------------------------------------------------
  125. struct ADS_DIMSTYLE : ADS_TABLE_OBJ
  126. {
  127.                     ADS_DIMSTYLE( struct resbuf* _rb ) : ADS_TABLE_OBJ( _rb ){}
  128.     virtual         ~ADS_DIMSTYLE(){}
  129.  
  130. private:
  131.     BASIC_CPP_STUFF( ADS_DIMSTYLE )
  132. };
  133.  
  134. //-----------------------------------------------------------------------------
  135. struct ADS_VPORT : ADS_TABLE_OBJ
  136. {
  137.                     ADS_VPORT( struct resbuf* _rb ) : ADS_TABLE_OBJ( _rb ){}
  138.     virtual         ~ADS_VPORT(){}
  139.  
  140. private:
  141.     BASIC_CPP_STUFF( ADS_VPORT )
  142. };
  143.  
  144. //-----------------------------------------------------------------------------
  145. struct ADS_APPID : ADS_TABLE_OBJ
  146. {
  147.                     ADS_APPID( struct resbuf* _rb ) : ADS_TABLE_OBJ( _rb ){}
  148.     virtual         ~ADS_APPID(){}
  149.  
  150. private:
  151.     BASIC_CPP_STUFF( ADS_APPID )
  152. };
  153.  
  154. #endif
  155.