Class VersionVisitor

Inheritance Relationships

Base Type

Class Documentation

class VersionVisitor : public ecl::Visitor

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.

Public Functions

inline VersionVisitor(CmdLineInterface *cmd, CmdLineOutput **out)

Constructor.

Parameters
  • cmd – - The CmdLine the output is generated for.

  • out – - The type of output.

inline virtual void visit()

Calls the version method of the output object using the specified CmdLine.

Protected Attributes

CmdLineInterface *_cmd

The CmdLine of interest.

CmdLineOutput **_out

The output object.