#pragma once #using <mscorlib.dll> #include "StdAfx.h" #include <vcclr.h> #include "options.h" namespace p4dn { __gc public class Options : public System::IDisposable { public: __value enum Flags { OPT_ONE = 0x01, /// exactly one OPT_TWO = 0x02, /// exactly two OPT_THREE = 0x04, /// exactly three OPT_MORE = 0x08, /// more than two OPT_NONE = 0x10, /// require none OPT_MAKEONE = 0x20, /// if none, make one that points to null // combos of the above OPT_OPT = 0x11, /// NONE, or ONE OPT_ANY = 0x1F, /// ONE, TWO, THREE, MORE, or NONE OPT_DEFAULT = 0x2F, /// ONE, TWO, THREE, MORE, or MAKEONE OPT_SOME = 0x0F /// ONE, TWO, THREE, or MORE }; Options( void ); ~Options(); void Dispose(); // : System::IDisposable::Dispose(); void Parse(System::String* args[], System::String* opts, Flags flags); System::String* GetValue(System::Char opt); private: ::Options* _options; char** _argsArray; char* _optionDefinition; bool _parseSuccess; void CleanUp(); int _argc; }; } // end namespace
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#3 | 5830 | Shawn Hladky | P4.Net: reorg to support release branches | ||
#2 | 5798 | Shawn Hladky |
P4.Net... still not ready for beta Added license to all files Added several doc files Misc bugs |
||
#1 | 5447 | Shawn Hladky | refactor, and added options class |