#include <Y2CCStdio.h>
Public Member Functions | |
Y2CCStdio (bool creates_servers, bool to_stderr) | |
bool | isServerCreator () const |
Y2Component * | create (const char *name) const |
Y2Component * | provideNamespace (const char *name_space) |
Private Attributes | |
bool | creates_servers |
bool | to_stderr |
Y2CCStdio::Y2CCStdio | ( | bool | creates_servers, | |
bool | to_stderr | |||
) |
Y2Component * Y2CCStdio::create | ( | const char * | name | ) | const [virtual] |
Override this method to implement the actual creating of the component. You must use the symbol and the signature of the term to decide, which component is to be created. If you are not able to create a matching component, return 0.
Reimplemented from Y2ComponentCreator.
References creates_servers, and to_stderr.
bool Y2CCStdio::isServerCreator | ( | ) | const [virtual] |
Specifies, whether this creator creates Y2Servers.
Implements Y2ComponentCreator.
References creates_servers.
Y2Component * Y2CCStdio::provideNamespace | ( | const char * | name_space | ) | [virtual] |
Importing a namespace from a stdio subcomponent is not possible.
Reimplemented from Y2ComponentCreator.
bool Y2CCStdio::creates_servers [private] |
If true, creates only the "cat" component, if false only the "stdio".
Referenced by create(), and isServerCreator().
bool Y2CCStdio::to_stderr [private] |
true, if stderr component should be created
Referenced by create().