|
libcrn
3.9.5
A document image processing library
|
A class containing functors. More...
#include <CRNDefaultAction.h>
Static Public Member Functions | |
| static SAction | GetAction (const String &name) |
| Gets a default action. More... | |
| static void | SetAction (const String &name, SAction action) |
| Sets a default action. More... | |
| static void | Load (const Path &filename) |
| Loads a set of default actions. More... | |
| static void | Save (const Path &filename) |
| Saves the set of default actions. More... | |
| static std::vector< String > | GetActionList () |
| Gets the list of default actions. More... | |
A class containing functors.
A class containing functors stored with a name. The whole set can be saved to a file or loaded from a file.
Definition at line 67 of file CRNDefaultAction.h.
|
static |
Gets a default action.
Gets a default action
| [in] | name | the key name of the action |
Definition at line 74 of file CRNDefaultAction.cpp.
|
static |
Gets the list of default actions.
Gets the list of default actions
Definition at line 126 of file CRNDefaultAction.cpp.
|
static |
Loads a set of default actions.
Loads a set of default actions
| ExceptionIO | cannot read file |
| ExceptionUninitialized | empty file |
| ExceptionNotFound | invalid file |
| ExceptionProtocol | load unimplemented |
| [in] | filename | the path to the file containing the actions |
Definition at line 104 of file CRNDefaultAction.cpp.
|
static |
Saves the set of default actions.
Saves a set of default actions
| ExceptionIO | cannot write file |
| ExceptionProtocol | save unimplemented |
| [in] | filename | the path to the file to create or overwrite |
Definition at line 117 of file CRNDefaultAction.cpp.
|
static |
Sets a default action.
Sets a default action
| [in] | name | the key name of the action |
| [in] | action | the functor |
Definition at line 89 of file CRNDefaultAction.cpp.
1.8.6