home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / IRIT / IRITS.ZIP / DATAPRSG.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-05  |  1.3 KB  |  35 lines

  1. /*****************************************************************************
  2. *   "Irit" - the 3d polygonal solid modeller.                     *
  3. *                                         *
  4. * Written by:  Gershon Elber                Ver 0.2, Mar. 1990   *
  5. ******************************************************************************
  6. * General, visible to others, definitions of DataPrsr goes to here:         *
  7. *****************************************************************************/
  8.  
  9. #ifndef    DATA_PRSR_GH
  10. #define    DATA_PRSR_GH
  11.  
  12. void DataPrsrPutObject(char *FileName, ObjectStruct *PObj);
  13. ObjectStruct *DataPrsrGetObject(char *FileName, char *ObjName);
  14. int DataPrsrParseError(char **ErrorMsg);
  15.  
  16. /*****************************************************************************
  17. * Parser error codes are following (Data Parser Err):                 *
  18. *****************************************************************************/
  19. #define    DP_ERR_NumberExpected    1
  20. #define    DP_ERR_CloseParanExpected 2
  21. #define    DP_ERR_ListCompUndef    3
  22. #define    DP_ERR_UndefExprHeader    4
  23. #define DP_ERR_InternalStackOF    5
  24. #define DP_ERR_SameName        6
  25. #define DP_ERR_PolyDupRefer    7
  26. #define DP_ERR_UndefAttr    8
  27. #define DP_ERR_OnlyMatGeomObj    9
  28. #define DP_ERR_EmptyName    10
  29. #define DP_ERR_OpenFail        11
  30. #define DP_ERR_WrongFileType    12
  31. #define DP_ERR_MixedPolygonLine    13
  32. #define DP_ERR_NonMatrixObject    14
  33.  
  34. #endif    /* DATA_PRSR_GH */
  35.