From 6121912a543931951fb449601ccc8116966a122b Mon Sep 17 00:00:00 2001 From: Christophe Meynard Date: Tue, 12 Mar 2024 12:43:49 +0100 Subject: [PATCH] MMVII: GenArgsSpecs: manage XML file type (=>completion,vcommand) --- MMVII/src/Appli/cMMVII_Appli.cpp | 3 +-- MMVII/src/Appli/cMMVII_GenArgsSpec.cpp | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MMVII/src/Appli/cMMVII_Appli.cpp b/MMVII/src/Appli/cMMVII_Appli.cpp index 2957c5e246..350256d0aa 100755 --- a/MMVII/src/Appli/cMMVII_Appli.cpp +++ b/MMVII/src/Appli/cMMVII_Appli.cpp @@ -1248,8 +1248,7 @@ void cMMVII_Appli::GenerateOneArgSpec(cCollecSpecArg2007& aSpecArgs, const std:: std::string range; std::string vectorSize; for (const auto& a : Arg->SemPL()) { - - if (a.Type() < eTA2007::AddCom) { + if (a.Type() < eTA2007::AddCom || a.Type() == eTA2007::XmlOfTopTag) { semantic.push_back(E2Str(a.Type())); } if (a.Type() == eTA2007::AllowedValues) { diff --git a/MMVII/src/Appli/cMMVII_GenArgsSpec.cpp b/MMVII/src/Appli/cMMVII_GenArgsSpec.cpp index 4fcf6b418d..4517ba19ee 100755 --- a/MMVII/src/Appli/cMMVII_GenArgsSpec.cpp +++ b/MMVII/src/Appli/cMMVII_GenArgsSpec.cpp @@ -28,6 +28,7 @@ static const std::map> fileList = // c {eTA2007::FileImage,{".tif",".tiff",".jpg",".jpeg",".png",".cr2",".crw",".nef"}}, {eTA2007::FileCloud,{".ply"}}, {eTA2007::File3DRegion,{".*"}}, + {eTA2007::XmlOfTopTag,{".xml",".json"}}, }; } // namespace GenArgsInternal