IInputFiled.h 506 B

1234567891011121314151617181920
  1. #pragma once
  2. enum INPUTFILEDTYPE{INPUT_FILED_VALUE,INPUT_FILED_FILE};
  3. class CInputFiled
  4. {
  5. public:
  6. CInputFiled(CString filed_name,CString filed_value,INPUTFILEDTYPE type = INPUT_FILED_VALUE);
  7. ~CInputFiled(void);
  8. INPUTFILEDTYPE GetType();
  9. CString GetFiledName();
  10. CString GetFiledValue();
  11. virtual unsigned long DataSize();
  12. virtual void Open();
  13. virtual void Close();
  14. virtual int Read(void* buffer,int buffer_size);
  15. protected:
  16. INPUTFILEDTYPE m_type;
  17. CString m_filed_value;
  18. CString m_filed_name;
  19. };