Public Member Functions | Protected Attributes | List of all members
ecl::VersionVisitor Class Reference

TClap class indirectly used to define the interface for visitors. More...

#include <version_visitor.hpp>

Inheritance diagram for ecl::VersionVisitor:
Inheritance graph
[legend]

Public Member Functions

 VersionVisitor (CmdLineInterface *cmd, CmdLineOutput **out)
 
void visit ()
 
- Public Member Functions inherited from ecl::Visitor
 Visitor ()
 
virtual ~Visitor ()
 

Protected Attributes

CmdLineInterface_cmd
 
CmdLineOutput ** _out
 

Detailed Description

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 32 of file version_visitor.hpp.

Constructor & Destructor Documentation

◆ VersionVisitor()

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

Constructor.

Parameters
cmd- The CmdLine the output is generated for.
out- The type of output.

Definition at line 55 of file version_visitor.hpp.

Member Function Documentation

◆ visit()

void ecl::VersionVisitor::visit ( )
inlinevirtual

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

Reimplemented from ecl::Visitor.

Definition at line 62 of file version_visitor.hpp.

Member Data Documentation

◆ _cmd

CmdLineInterface* ecl::VersionVisitor::_cmd
protected

The CmdLine of interest.

Definition at line 41 of file version_visitor.hpp.

◆ _out

CmdLineOutput** ecl::VersionVisitor::_out
protected

The output object.

Definition at line 46 of file version_visitor.hpp.


The documentation for this class was generated from the following file:


ecl_command_line
Author(s): Daniel Stonier
autogenerated on Sun Aug 2 2020 03:12:03