Generate Python class skeletons

This commit is contained in:
Gaute Lindkvist
2020-02-21 11:35:14 +01:00
parent 83942784df
commit 169bea818a
6 changed files with 206 additions and 2 deletions

View File

@@ -130,6 +130,18 @@ RiaApplication::ApplicationStatus RiaConsoleApplication::handleArguments( cvf::P
return RiaApplication::EXIT_COMPLETED;
}
// Code generation
// -----------------
if ( cvf::Option o = progOpt->option( "generate" ) )
{
CVF_ASSERT( o.valueCount() == 1 );
QString outputFile = cvfqt::Utils::toQString( o.value( 0 ) );
RiaApplication::generatePythonClasses( outputFile );
return RiaApplication::EXIT_COMPLETED;
}
// Unit testing
// --------------------------------------------------------
if ( cvf::Option o = progOpt->option( "unittest" ) )