#include <qstring.h>
#include <qfileinfo.h>
-#include <SALOMEDSClient.hxx>
-#include <SALOMEDS_IParameters.hxx>
-#include <SALOMEDS_Study.hxx>
-
//#define COUT
using namespace std;
//Output the script that sets up the visul parameters.
if(theIsPublished) {
- _PTR(Study) study(new SALOMEDS_Study(aStudy));
- string defScript = SALOMEDS_IParameters::getDefaultScript(study, "Interface Applicative", "Post-Pro", aPrefix);
- if(defScript != "") aStr << defScript;
+ char* script = aStudy->GetDefaultScript("Post-Pro", aPrefix.c_str());
+ if(script && strlen(script) > 0) {
+ aStr << script;
+ CORBA::string_free(script);
+ }
}
aStr<<aPrefix<<"pass"<<endl;