NVIDIA Iray API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mi::neuraylib::IChild_process_resolver Class Referenceabstract

A filter used to decide if a command string to start a child process is eligible for execution. More...

Inheritance diagram for mi::neuraylib::IChild_process_resolver:
Inheritance graph
[legend]

Public Member Functions

virtual const IString resolve_process (const char *program_name, const char *program_arguments)=0
  Indicates whether a command string to start a child process should be executed by the worker node. More...
 

Additional Inherited Members

- Public Types inherited from mi::base::Interface_declare< 0xbd1ab5cb, 0x2794, 0x4cd8, 0x99, 0xa9, 0x30, 0x36, 0x32, 0x8a, 0xca, 0xff >
typedef Interface_declare< id1,
id2, id3, id4, id5, id6, id7,
id8, id9, id10, id11,
IInterface
Self
  Own type. More...
 
typedef Uuid_t< id1, id2, id3,
id4, id5, id6, id7, id8, id9,
id10, id11 > 
IID
  Declares the interface ID (IID) of this interface. More...
 
- Static Public Member Functions inherited from mi::base::Interface_declare< 0xbd1ab5cb, 0x2794, 0x4cd8, 0x99, 0xa9, 0x30, 0x36, 0x32, 0x8a, 0xca, 0xff >
static bool  compare_iid (const Uuid &iid)
  Compares the interface ID iid against the interface ID of this interface and of its ancestors. More...
 

Detailed Description

A filter used to decide if a command string to start a child process is eligible for execution.

Member Function Documentation

virtual const IString* mi::neuraylib::IChild_process_resolver::resolve_process ( const char *  program_name,
const char *  program_arguments 
)
pure virtual

Indicates whether a command string to start a child process should be executed by the worker node.

This can be used to enforce security policies. In case of success, in addition, it allows to adapt the incoming program name to the local file system.

Parameters
program_name The name of the program to be executed as child process.
program_arguments The arguments supposed to be passed to the program.
Returns
If program_name (in combination with program_arguments) is eligible to be run then program_name or an adaption of program_name to the local file system of the worker node is returned (possibly including a full path name). Otherwise, NULL is returned.