Peano
Loading...
Searching...
No Matches
UserActionSet.py
Go to the documentation of this file.
1# This file is part of the Peano project. For conditions of distribution and
2# use, please see the copyright notice at www.peano-framework.org
3from .ActionSet import ActionSet
4
5
7 def __init__(self,name,descend_invocation_order = 0, parallel = True):
8 super(UserActionSet,self).__init__(descend_invocation_order,parallel)
9 self.name = name
10 pass
11
12
14 return True
15
16
18 return "// @todo Please implement\n"
19
20
22 return "// @todo Please implement\n"
23
24
26 return "// @todo Please implement\nreturn std::vector< peano4::grid::GridControlEvent >();\n"
27
28
29 def get_body_of_operation(self,operation_name):
30 return """
31// Feel free to comment in and to add arguments if you want to trace them.
32// Ensure the logTraceOut is activated, too, if you switch on traceIn.
33// logTraceIn( \"""" + operation_name + """()" );
34// @todo Please implement
35// logTraceOut( \"""" + operation_name + """()" );
36"""
37
38
40 """
41 Returns a description (word) for the mapping which is also used as class name
42 for the generated type. As a consequence, the result should be one word (if
43 possible) and uppercase. Also, every subclass should overwrite this routine.
44 """
45 return self.name
46
47
48 def get_attributes(self):
49 return "// @todo Please implement\n"
50
51
52 def get_includes(self):
53 return "// @todo Please implement\n"
54
Action set (reactions to events)
Definition ActionSet.py:6
get_constructor_body(self)
Define a tailored constructor body.
__init__(self, name, descend_invocation_order=0, parallel=True)
get_attributes(self)
Return attributes as copied and pasted into the generated class.
get_includes(self)
Return include statements that you need.
get_body_of_operation(self, operation_name)
Return actual C++ code snippets to be inserted into C++ code.
get_action_set_name(self)
Returns a description (word) for the mapping which is also used as class name for the generated type.
user_should_modify_template(self)
Is the user allowed to modify the output.