예제 #1
0
inline void
QtArgCmdLine::addArgImpl( QtArgIface * arg )
{
    if( !m_args.contains( arg ) )
    {
        m_args.append( arg );

        checkArgumentsCorrectness();
    }
}
예제 #2
0
inline void
QtXorArg::add( QtArgIface * arg )
{
	if( arg && !m_args.contains( arg ) )
	{
		if( !arg->isRequired() )
				m_args.append( arg );
		else
			throw QtRequiredArgumentUnderXORMaskEx(
				QString::fromLatin1( "A try to add required argument under the XOR mask." ) );
	}
}