mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4416 First implementation of gRPC-based Python interface
First implementation with Asynchronous gRPC server, a few services and some client python code.
This commit is contained in:
@@ -41,11 +41,11 @@ int main(int argc, char *argv[])
|
||||
RiaLogging::loggerInstance()->setLevel(RI_LL_DEBUG);
|
||||
|
||||
std::unique_ptr<RiaApplication> app (createApplication(argc, argv));
|
||||
app->initialize();
|
||||
|
||||
cvf::ProgramOptions progOpt;
|
||||
bool result = RiaArgumentParser::parseArguments(&progOpt);
|
||||
|
||||
bool result = RiaArgumentParser::parseArguments(&progOpt);
|
||||
app->initialize();
|
||||
|
||||
if (!result)
|
||||
{
|
||||
@@ -60,7 +60,6 @@ int main(int argc, char *argv[])
|
||||
app->showErrorMessage(RiaApplication::commandLineParameterHelp() +
|
||||
cvfqt::Utils::toQString(usageText) +
|
||||
unknownOptionsText.join("\n"));
|
||||
app->cleanupBeforeProgramExit();
|
||||
if (dynamic_cast<RiaGuiApplication*>(app.get()) == nullptr)
|
||||
{
|
||||
return 1;
|
||||
@@ -84,6 +83,10 @@ int main(int argc, char *argv[])
|
||||
int exitCode = 0;
|
||||
try
|
||||
{
|
||||
if (app->initializeGrpcServer(progOpt))
|
||||
{
|
||||
app->launchGrpcServer();
|
||||
}
|
||||
exitCode = QCoreApplication::instance()->exec();
|
||||
}
|
||||
catch (std::exception& exep )
|
||||
|
||||
Reference in New Issue
Block a user