Poco::OSP::Shell

class CommandFactory

File Information

Library: OSP/Shell
Package: Shell
Header: Poco/OSP/Shell/CommandFactory.h

Description

A factory for Command objects.

Inheritance

Known Derived Classes: HelpCommandFactory, LoginCommandFactory, QuitCommandFactory

Member Summary

Member Functions: context, createCommand, init, initImpl

Constructors

CommandFactory

CommandFactory();

Creates the CommandFactory.

Destructor

~CommandFactory virtual

virtual ~CommandFactory();

Destroys the CommandFactory.

Member Functions

context inline

Poco::OSP::BundleContext::Ptr context() const;

Returns the context. The pointer is guaranteed to be valid.

createCommand virtual

virtual Command * createCommand() = 0;

Create a Command object.

init

void init(
    Poco::OSP::BundleContext::Ptr pContext
);

Initializes the factory with the given BundleContext.

initImpl protected virtual

virtual void initImpl();

Add extra initialization code by overriding this method in your subclass.