示例#1
0
bool putNumericArgument(char**& av, ClumpletWriter& spb, unsigned int tag)
{
	if (! *av)
		return false;

	int n = atoi(*av++);
	spb.insertInt(tag, n);

	return true;
}
示例#2
0
bool putIntArgument(char**& av, ClumpletWriter& spb, unsigned int tag)
{
	if (! *av)
		return false;

	SLONG n;
	if (sscanf(*av++, "%" SLONGFORMAT, &n) != 1)
		(Arg::Gds(isc_fbsvcmgr_bad_arg) << av[-2]).raise();

	spb.insertInt(tag, n);

	return true;
}
示例#3
0
bool putNumericArgument(char**& av, ClumpletWriter& spb, unsigned int tag)
{
	if (! *av)
		return false;

	char* err = NULL;
	SLONG n = strtol(*av++, &err, 10);

	if (err && *err)
	{
		(Arg::Gds(isc_fbsvcmgr_bad_arg) << av[-2]).raise();
	}

	spb.insertInt(tag, n);

	return true;
}
示例#4
0
bool putOption(char**&, ClumpletWriter& spb, unsigned int tag)
{
	spb.insertInt(isc_spb_options, tag);

	return true;
}