Suppose that i have main.cpp- the initializations there (console etc..)
and i have another file - class which implement an active object.
so i want to call to Start function from the main file, hence i create an object of the class (in the main file) and call the the start function .(object->Start)
now suppose that from the RunL i want to write to the console something, so i need to transfer the pointer of the console to the constructor of the class.
Here comes the problem.
I want something more generic, if in the future i would like to write to a file and not to a console ? so i don't want to pass the console pointer to the constructor.
Is there a solution to this problem ?
Thanks in advance.