/usr/include/ace/Get_Opt.inl is in libace-dev 6.3.3+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | // -*- C++ -*-
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE bool
ACE_Get_Opt::ACE_Get_Opt_Long_Option::operator < (const ACE_Get_Opt_Long_Option &rhs)
{
return this->name_ < rhs.name_;
}
ACE_INLINE int
ACE_Get_Opt::argc (void) const
{
return this->argc_;
}
ACE_INLINE ACE_TCHAR **
ACE_Get_Opt::argv (void) const
{
return this->argv_;
}
ACE_INLINE ACE_TCHAR*
ACE_Get_Opt::opt_arg (void) const
{
return this->optarg;
}
ACE_INLINE int
ACE_Get_Opt::opt_opt (void)
{
return this->optopt_;
}
ACE_INLINE int &
ACE_Get_Opt::opt_ind (void)
{
return this->optind;
}
#ifdef ACE_USES_WCHAR
ACE_INLINE ACE_Get_Opt::ACE_Get_Opt (int argc,
ACE_TCHAR **argv,
const ACE_TCHAR *optstring,
int skip_args,
int report_errors,
int ordering,
int long_only)
: argc_ (argc),
argv_ (argv),
optind (skip_args),
opterr (report_errors),
optarg (0),
optstring_ (0),
long_only_ (long_only),
has_colon_ (0),
last_option_ (0),
nextchar_ (0),
optopt_ (0),
ordering_ (ordering),
nonopt_start_ (optind),
nonopt_end_ (optind),
long_option_ (0)
{
ACE_Get_Opt_Init (optstring);
}
ACE_INLINE ACE_Get_Opt::ACE_Get_Opt (int argc,
ACE_TCHAR **argv,
const char *optstring,
int skip_args,
int report_errors,
int ordering,
int long_only)
: argc_ (argc),
argv_ (argv),
optind (skip_args),
opterr (report_errors),
optarg (0),
optstring_ (),
long_only_ (long_only),
has_colon_ (0),
last_option_ (0),
nextchar_ (0),
optopt_ (0),
ordering_ (ordering),
nonopt_start_ (optind),
nonopt_end_ (optind),
long_option_ (0)
{
ACE_Get_Opt_Init (ACE_TEXT_CHAR_TO_TCHAR (optstring));
}
#endif
ACE_END_VERSIONED_NAMESPACE_DECL
|