OpenDaVINCI  4.15.3
odcore::base::Arguments Class Reference

#include <Arguments.h>

Public Member Functions

 Arguments (const std::initializer_list< std::string > &argList)
 
 Arguments (const Arguments &)=delete
 
 Arguments (Arguments &&)=delete
 
void operator= (const Arguments &)=delete
 
void operator= (Arguments &&)=delete
 

Public Attributes

const int32_t argc
 
char **const argv
 

Detailed Description

Helper class to easily get argc and argv values from an initializer list.

Usage:

Arguments args{"foo", "bar"};
Module mod1(args.argc, args.argv);

There is no copy-, but a move-constructor / assignment.

Constructor & Destructor Documentation

odcore::base::Arguments::Arguments ( const std::initializer_list< std::string > &  argList)
odcore::base::Arguments::Arguments ( const Arguments )
delete
odcore::base::Arguments::Arguments ( Arguments &&  )
delete

Member Function Documentation

void odcore::base::Arguments::operator= ( const Arguments )
delete
void odcore::base::Arguments::operator= ( Arguments &&  )
delete

Member Data Documentation

const int32_t odcore::base::Arguments::argc
char** const odcore::base::Arguments::argv