1 // Copyright (c) 1996 James Clark
2 // See the file COPYING for copying permission.
3 #pragma ident "%Z%%M% %I% %E% SMI"
5 #ifndef Options_INCLUDED
6 #define Options_INCLUDED 1
11 namespace SP_NAMESPACE
{
14 // This is a mildly C++ified version of getopt().
15 // It never prints any message.
20 Options(int argc
, T
*const *, const T
*);
21 // Returns false if there are no more options.
23 T
*arg() const { return arg_
; } // optarg
24 T
opt() const { return opt_
; } // optopt
25 int ind() const { return ind_
; } // optind
27 const T
*search(T
) const;
41 #endif /* not Options_INCLUDED */
43 #ifdef SP_DEFINE_TEMPLATES
44 #include "Options.cxx"