00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 Open Download Manager Copyright (c) 2008-2010 OpenDownloadManager.ORG 00004 */ 00005 00006 #if !defined(AFX_FSCOMMANDLINEPARSER_H__83B66E37_1776_4D30_A255_1BC65A140AFD__INCLUDED_) 00007 #define AFX_FSCOMMANDLINEPARSER_H__83B66E37_1776_4D30_A255_1BC65A140AFD__INCLUDED_ 00008 00009 #if _MSC_VER > 1000 00010 #pragma once 00011 #endif 00012 00013 #include <fsString.h> 00014 #include "list.h" 00015 00016 class fsCommandLineParser 00017 { 00018 public: 00019 00020 BOOL Parse(); 00021 00022 int Get_ParameterCount(); 00023 00024 LPCSTR Get_Parameter(int iIndex); 00025 00026 LPCSTR Get_ParameterValue (int iIndex); 00027 00028 fsCommandLineParser(); 00029 virtual ~fsCommandLineParser(); 00030 00031 protected: 00032 struct fsCmdLineParameter 00033 { 00034 fsString strParam; 00035 fsString strValue; 00036 }; 00037 00038 fs::list <fsCmdLineParameter> m_vPars; 00039 }; 00040 00041 #endif
1.5.6