Click here to Skip to main content
15,888,610 members
Articles / Programming Languages / Objective C

Parse command lines using STL

Rate me:
Please Sign up or sign in to vote.
2.40/5 (9 votes)
10 Mar 2006CPOL2 min read 39.7K   702   16  
A simple command line parser employing STL
/*
This code was written by Mohammed Lokhandwala. (lokhandwalamohammed@yahoo.com)

You may use this code in your projects provided the project is for non commercial use. 
You (or your company) should not be profiting from it. 

For commercial use, a written permission from the author is required.

This code is given without any warranties. You should use it at your own risk. Author is NOT
liable for any damage caused due to use of this code even if incidental.

*/
namespace Epoch
{
	namespace ErrorConstants
	{
		enum ProcessErrors {Success = 0,
							// Parameters
							UnhandledException = 100,
							InvalidInput,

							//IO
							SomeIOFailure = 200,
							FileReadFailure ,
							FileWriteFailure,

							
							// Others
							Unknown = 9999};
	}


	namespace Exceptions
	{
		class GenericOperationFailure{};
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect Epoch Consulting Services
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions