From 41f7119d8631a142fa5a97285a8443f9d7eb7e14 Mon Sep 17 00:00:00 2001 From: manuel Date: Sat, 9 Mar 2013 15:14:01 +0100 Subject: initial import of UpdateTool 0.4 --- CCommandLine.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 CCommandLine.h (limited to 'CCommandLine.h') diff --git a/CCommandLine.h b/CCommandLine.h new file mode 100644 index 0000000..899a875 --- /dev/null +++ b/CCommandLine.h @@ -0,0 +1,31 @@ +/* + This file is a part of "Didrole's Update Tool" + ©2k12, Didrole + + License : Public domain +*/ + +#pragma once + +class CCommandLine +{ +public: + CCommandLine(int argc, char **argv); + ~CCommandLine(); + + const char* ParmValue(const char *psz, const char *pDefaultVal = 0) const; + int ParmValue(const char *psz, int nDefaultVal) const; + + unsigned int ParmCount() const; + unsigned int FindParm(const char *psz) const; + const char* GetParm(unsigned int nIndex) const; + + void AddParm(const char *psz); + +private: + + static const unsigned int k_nMaxArgs = 64; + + int m_argc; + char *m_argv[k_nMaxArgs]; +}; -- cgit v1.2.3