|
MorphoGraphX
2.0-1-227
|
#include <Process.hpp>
Inheritance diagram for mgx::UserCancelException:Public Member Functions | |
| UserCancelException () | |
| const char * | what () const throw () |
Here is a template of a minimal process:
Then, in the implementation file, you need to add:
Which will take care of registering the process to the system when the library is loaded.
Beside the minimal process, it is recommended to structure the process in two functions: the first one taking generic arguments (i.e. a string list and a float list), the other one taking specific arguments. This way, your process will be easier to use from another C++ process.
Also, to help providing meaningful (and uniform) error messages, and to help you testing the current state of the process, the checkState() method is provided.
The structure then typically becomes:
Exception launched when a user clicks the Cancel button. When writing your own processes, you should use the userCancel() method.
Definition at line 204 of file Process.hpp.
|
inline |
Definition at line 206 of file Process.hpp.
|
inline | |||||||||||||
Definition at line 208 of file Process.hpp.
1.8.17