#include #include #include #include #include Command ICommand::create(Path p) { Command_Adapt rval = IEntryAdapt::check_interface( p ); if ( !rval ) { throw InterfaceNotImplementedError( p ); } return rval; } CommandField ICommandField::create(const char *name) { return CShObj::create(name); } CCommandImpl::CCommandImpl(Key &k, const char *name): CEntryImpl(k, name, 1) { } void CCommandImpl::executeCommand(Path p) const { throw InterfaceNotImplementedError( p ); } CCommand_Adapt::CCommand_Adapt(Key &k, Path p, shared_ptr ie): IEntryAdapt(k, p, ie) { pParent_= p->clone(); pParent_->up(); } Command CCommand_Adapt::create(Path p) { Command_Adapt comm = IEntryAdapt::check_interface( p ); return comm; }