TClap class indirectly used to define the interface for visitors. More...
#include <version_visitor.hpp>
Public Member Functions | |
VersionVisitor (CmdLineInterface *cmd, CmdLineOutput **out) | |
void | visit () |
Protected Attributes | |
CmdLineInterface * | _cmd |
CmdLineOutput ** | _out |
TClap class indirectly used to define the interface for visitors.
A Vistor that will call the version method of the given CmdLineOutput for the specified CmdLine object and then exit.
Definition at line 30 of file version_visitor.hpp.
ecl::VersionVisitor::VersionVisitor | ( | CmdLineInterface * | cmd, |
CmdLineOutput ** | out | ||
) | [inline] |
Constructor.
cmd | - The CmdLine the output is generated for. |
out | - The type of output. |
Definition at line 51 of file version_visitor.hpp.
void ecl::VersionVisitor::visit | ( | ) | [inline, virtual] |
Calls the version method of the output object using the specified CmdLine.
Reimplemented from ecl::Visitor.
Definition at line 58 of file version_visitor.hpp.
CmdLineInterface* ecl::VersionVisitor::_cmd [protected] |
The CmdLine of interest.
Definition at line 37 of file version_visitor.hpp.
CmdLineOutput** ecl::VersionVisitor::_out [protected] |
The output object.
Definition at line 42 of file version_visitor.hpp.