S3PCard.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:1k
源码类别:

模拟服务器

开发平台:

C/C++

  1. // S3PCard.h: interface for the S3PCard class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_S3PCARD_H__6CEE334A_4D80_4BCE_B8F0_B0DF8C3DB449__INCLUDED_)
  5. #define AFX_S3PCARD_H__6CEE334A_4D80_4BCE_B8F0_B0DF8C3DB449__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include <string>
  10. #include <list>
  11. #include "S3PRow.h"
  12. class S3PCard  
  13. {
  14. public:
  15. S3PCard(int iType,std::string strIID);
  16. S3PCard(ColumnAndValue CardInfoProp);
  17. virtual ~S3PCard();
  18. virtual ColumnAndValue getCardProp();
  19. virtual int setCardProp(ColumnAndValue CardProp);
  20. virtual int remove();
  21. static std::list<ColumnAndValue> getCardList(int iType);
  22. protected:
  23. virtual int findByPrimaryKey(std::string primKey);
  24. virtual int findByCardCode(std::string CardCode);
  25. private:
  26. ColumnAndValue m_CardProp;
  27. virtual ColumnAndValue load(std::string strSQL);
  28. virtual int store(ColumnAndValue CardProp);
  29. virtual int create(ColumnAndValue NewCard);
  30. virtual int deletes(std::string CardCode);
  31. virtual bool beExist(std::string strSQL);
  32. };
  33. #endif // !defined(AFX_S3PCARD_H__6CEE334A_4D80_4BCE_B8F0_B0DF8C3DB449__INCLUDED_)