AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface

◆ SetFile()

virtual void drama::Path::SetFile ( const std::string &  File)
inlinevirtualinherited

Set the executable file name.

This is only used if drama::Path::GetPath must load the task

Note
DRAMA does not directly deal with long program names (value of the file argument). The limit is about 63 characters. The work around for this is to use environment variables known to IMP_Master on the machine doing the loading (node). The normal approach is to use the ENVVAR:program approach to specifying the node name. E.g. rather then specifying a filename like this:
    /directory1/diretory2/directory3/directory4/program

There would be an environment variable know to the IMP_Master program defined like this:

    export ENVVAR=/directory1/diretory2/directory3/directory4/

And then the ENVVAR:program name will work. Remember that IMP_Master is normally started using dits_netstart.

Parameters
FileThe name of the file to run.

References drama::CreateRunDramaTask().