Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
2.0 KiB

  1. //**********************************************************************
  2. // File name: PAYCSV.H
  3. //
  4. // Definition of CISPCSV
  5. //
  6. // Copyright (c) 1992 - 1996 Microsoft Corporation. All rights reserved.
  7. //**********************************************************************
  8. #if !defined( _PAYCSV_H_ )
  9. #define _PAYCSV_H_
  10. #define MAX_DISPLAY_NAME 100
  11. #define NUM_PAYCSV_FIELDS 4 // Might only be 3
  12. #define PAYMENT_TYPE_INVALID 0
  13. #define PAYMENT_TYPE_CREDITCARD 1
  14. #define PAYMENT_TYPE_INVOICE 2
  15. #define PAYMENT_TYPE_PHONEBILL 3
  16. #define PAYMENT_TYPE_CUSTOM 4
  17. class CPAYCSV
  18. {
  19. private:
  20. // The following members represent the content of a single line from the CSV file.
  21. TCHAR m_szDisplayName[MAX_DISPLAY_NAME];
  22. WORD m_wPaymentType;
  23. TCHAR m_szCustomPayURLPath[MAX_PATH];
  24. BOOL m_bLUHNCheck;
  25. public:
  26. CPAYCSV(void)
  27. {
  28. memset(this, 0, sizeof(CPAYCSV));
  29. }
  30. ~CPAYCSV(void) {}
  31. HRESULT ReadOneLine(CCSVFile far *pcCSVFile,BOOL bLUHNFormat);
  32. HRESULT ReadFirstLine(CCSVFile far *pcCSVFile, BOOL far *pbLUHNFormat);
  33. void StripQuotes(LPSTR lpszDst, LPSTR lpszSrc);
  34. BOOL ReadW(WORD far *pw, CCSVFile far *pcCSVFile);
  35. BOOL ReadBOOL(BOOL far *pbool, CCSVFile far *pcCSVFile);
  36. BOOL ReadSZ(LPSTR psz, DWORD dwSize, CCSVFile far *pcCSVFile);
  37. BOOL ReadToEOL(CCSVFile far *pcCSVFile);
  38. LPTSTR get_szDisplayName(void)
  39. {
  40. return m_szDisplayName;
  41. }
  42. LPTSTR get_szCustomPayURLPath(void)
  43. {
  44. return m_szCustomPayURLPath;
  45. }
  46. WORD get_wPaymentType()
  47. {
  48. return m_wPaymentType;
  49. }
  50. BOOL get_bLUHNCheck()
  51. {
  52. return m_bLUHNCheck;
  53. }
  54. };
  55. #endif