35 #ifndef ANATOMIST_COMMANDS_CEVENTFILTER_H
36 #define ANATOMIST_COMMANDS_CEVENTFILTER_H
46 struct CommandContext;
53 const std::set<std::string> & tounfilt,
56 const std::set<std::string> & tounfilt,
60 virtual std::string
name()
const {
return(
"EventFilter" ); }
70 std::set<std::string> _filter;
71 std::set<std::string> _unfilter;
74 static bool initSyntax();
The abstract base class for commands.
Set output stream for the current commands context.
EventFilterCommand(bool deffilter, const std::set< std::string > &tofilt, const std::set< std::string > &tounfilt, CommandContext *context=0)
virtual ~EventFilterCommand()
virtual void write(Tree &com, Serializer *ser) const
Print the guts of a command into a Tree given as parent.
virtual std::string name() const
Return the unique name of a class of commands.
virtual void doit()
Do a command.
EventFilterCommand(const std::set< std::string > &tofilt, const std::set< std::string > &tounfilt, CommandContext *context=0)
The abstract base class for usual commands.
Serializer is a helper class for pointer serialization.
The abstract base class used for commands that have to read/write pointers.
CommandContext * context()
Context for commands processor readers (APipeReader etc)