Tokenizer.h
Upload User: kairuinn
Upload Date: 2009-02-07
Package Size: 2922k
Code Size: 1k
Category:

Graph program

Development Platform:

Visual C++

  1. #ifndef _CTOKENIZER_H_9BBD5DD2_819A_40CE_92574222C14D
  2. #define _CTOKENIZER_H_9BBD5DD2_819A_40CE_92574222C14D
  3. ///////////////////////////////////////////////////////////
  4. // File : Tokenizer.h
  5. // Created : 06/18/04
  6. //
  7. class CTokenizer
  8. {
  9. public:
  10. // Construction/destruction
  11. CTokenizer( CString strInput, const CString & strDelimiter = _T(",") );
  12. // Operations
  13. void Init( const CString & strInput, const CString & strDelimiter = _T(",") );
  14. int GetSize(  ) const;
  15. void GetAt( int nIndex, CString & str ) const;
  16. void GetAt( int nIndex, int & var ) const;
  17. void GetAt( int nIndex, WORD & var ) const;
  18. void GetAt( int nIndex, double & var ) const;
  19. void GetAt( int nIndex, DWORD & var ) const;
  20. // Attributes
  21. private:
  22. CStringArray m_stra;
  23. };
  24. #endif //_CTOKENIZER_H_9BBD5DD2_819A_40CE_92574222C14D