home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / TemaCD / tcvpa / data1.cab / MyFileGroup / INCLUDE / Def.hpp < prev    next >
C/C++ Source or Header  |  1999-06-03  |  2KB  |  70 lines

  1. #ifndef _INC_DEF_HPP
  2. #define _INC_DEF_HPP
  3. #ifdef TC_PS_DLL
  4.     #define TC_PS_EXPORT    __declspec(dllexport)
  5. #else
  6.     #define TC_PS_EXPORT    __declspec(dllimport)
  7. #endif
  8. #define TC_PS_THROW_FUNC    throw()
  9. typedef long TCPsRetCode;
  10. #define    rcOk                    0
  11. #define    rcNullArg                1
  12. #define    rcLoadDrvFail            50
  13. #define rcDrvEntryFail            51
  14. #define    rcReregisterDS            52
  15. #define    rcDSNotFound            53
  16. #define    rcDSDError                100
  17. #define rcDSDWrongHandle        101
  18. #define    rcNullClass                200
  19. #define    rcNullCltnImpl            201
  20. #define    rcTxResumeAlien            300
  21. #define    rcObjNotFound            400
  22. #define    rcMissingRelation        401
  23. #define    rcDuplicateObj            402
  24. #define    rcRelationNotDef        403
  25. #define    rcCreateObjFail            404
  26. #define    rcImplNotFound            406
  27. #define    rcCltnNotFound            407
  28. #define    rcObjsNotRelated        408
  29. #define    rcNullObj                409
  30. #define    rcMany2OneNotDef        410
  31. #define    rcFuncSeqError            411
  32. #define    rcWrongCID                412
  33. #define    rcNullOID                413
  34. #define rcAttribNotExists        414
  35. #define    rcMemberSyntax            500
  36. #define    rcMemberNotFound        501
  37. #define    rcMemberWrongPath        502
  38. #define    rcMemberCltnAsAttrib    503
  39. #define    rcPredTypeMismatch        504
  40. #define    rcQryDestMismatch        505
  41. #define    rcWrongQryDest            506
  42. #define    rcGenOidNotFound        600
  43. #define    rcNoCurrentTx            700
  44. #define    rcTxInNotProperState    701
  45. #define    rcUnexpectedDisconnect    702
  46. #define rcQueryTransientClass    800
  47. #define    rcPersistRef2Transient    801
  48. #define rcPsDerivedFromTrans    802
  49. #define rcUIDefValTypeMismatch    900
  50. #define rcUIValSetTypeMismatch    901
  51. #define rcUIAttribCantHaveData    902
  52.  
  53. #define rcUserError                2000
  54. // NOTE: after adding errors here put their processing into 'tcPsErrorString' function
  55. enum TCPsDepthMode {
  56.  Depth_Default,
  57.  Depth_Shallow,
  58.  Depth_Deep,
  59. };
  60. enum TCPsSetOpt {
  61.  opt_Clear,
  62.  opt_Set,
  63. };
  64. enum TCPsLockMode {
  65.  Lock_Read,
  66.  Lock_Write,
  67. };
  68.  
  69. #endif // _INC_DEF_HPP
  70.