Inviwo  0.9.10.1
Inviwo documentation
inviwo::FileAssociationCommand Struct Reference

Public Member Functions

 FileAssociationCommand (const std::string &command, const std::string &cmdLineArg, const std::string &ddeCommand, std::function< void(const std::string &)> callback)
 

Public Attributes

std::string command_
 
std::string cmdLineArg_
 
std::string ddeCommand_
 
std::function< void(const std::string &)> callback_
 

Constructor & Destructor Documentation

◆ FileAssociationCommand()

inviwo::FileAssociationCommand::FileAssociationCommand ( const std::string &  command,
const std::string &  cmdLineArg,
const std::string &  ddeCommand,
std::function< void(const std::string &)>  callback 
)
inline

Construct a FileAssociationCommand

Parameters
commandName of the command, this will be shown in the context menu in the explorer for example.
cmdLineArgThe command line argument to pass to inviwo to invoke the command, the passed file is available as '%1'. E.g. for 'open' we would pass '-w %1'
ddeCommandThe runtime command use to intercept the command when Inviwo is running
callbackA callback that will be called whenever the command is executed and Inviwo is running

The documentation for this struct was generated from the following file: