tests/cuda2.2/sdk/cmd_arg_reader.cpp
void
CmdArgReader::init( const int argc, const char** argv) 
{  
    if ( NULL != self) 
    {
        return;
    }

    // command line arguments 
    if (( 0 == argc) || ( 0 == argv)) 
    {
        LOGIC_EXCEPTION( "No command line arguments given.");
    }

    self = new CmdArgReader();

    self->createArgsMaps( argc, argv);

    rargc = argc;
    rargv = const_cast<char**>( argv);
}
////////////////////////////////////////////////////////////////////////////////
//! Public construction interface
//! @return a handle to the class instance
//! @param argc number of command line arguments (as given to main())
//! @param argv command line argument string (as given to main())
////////////////////////////////////////////////////////////////////////////////
/*static*/
Public construction interface
@return a handle to the class instance
@param argc number of command line arguments (as given to main())
@param argv command line argument string (as given to main())

static
Public construction interface @return a handle to the class instance @param argc number of command line arguments ( as given to main () ) @param argv command line argument string ( as given to main () ) static
void
CmdArgReader::init( const int argc, const char** argv) 
{  
    if ( NULL != self) 
    {
        return;
    }
    if (( 0 == argc) || ( 0 == argv)) 
    {
        LOGIC_EXCEPTION( "No command line arguments given.");
    }
    self = new CmdArgReader();
    self->createArgsMaps( argc, argv);
    rargc = argc;
    rargv = const_cast<char**>( argv);
}
void CmdArgReader :: init ( const int argc , const char * * argv ) { if ( NULL != self ) { return ; } if ( ( 0 == argc ) || ( 0 == argv ) ) { LOGIC_EXCEPTION ( " " ) ; } self = new CmdArgReader ( ) ; self -> createArgsMaps ( argc , argv ) ; rargc = argc ; rargv = const_cast < char * * > ( argv ) ; }
Public construction interface
@return a handle to the class instance
@param argc number of command line arguments (as given to main())
@param argv command line argument string (as given to main())
Public construction interface @return a handle to the class instance @param argc number of command line arguments ( as given to main () ) @param argv command line argument string ( as given to main () )
// command line arguments 