]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/mgr/ActionCreator.h
2 * DEBUG: section 16 Cache Manager API
6 #ifndef SQUID_MGR_ACTION_CREATOR_H
7 #define SQUID_MGR_ACTION_CREATOR_H
9 #include "mgr/forward.h"
14 /** Creates objects of the right Action class, parameterized with Command.
15 * A part of the Action profile that allows Cache Manager be ignorant about
16 * specific Action classes (\see Mgr::ActionProfile).
18 class ActionCreator
: public RefCountable
21 typedef RefCount
<ActionCreator
> Pointer
;
23 virtual ~ActionCreator() {}
25 /// returns a pointer to the new Action object for cmd; never nil
26 virtual ActionPointer
create(const CommandPointer
&cmd
) const = 0;
31 #endif /* SQUID_MGR_ACTION_CREATOR_H */