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