OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::WinCmd Class Reference

#include <cmd.hpp>

Inheritance diagram for openvpn::WinCmd:
[legend]
Collaboration diagram for openvpn::WinCmd:
[legend]

Public Types

typedef RCPtr< WinCmdPtr
 
- Public Types inherited from openvpn::Action
typedef RCPtr< ActionPtr
 
- Public Types inherited from openvpn::RC< thread_unsafe_refcount >
typedef RCPtr< RCPtr
 

Public Member Functions

 WinCmd (const std::string &command)
 
virtual void execute (std::ostream &os) override
 
virtual std::string to_string () const override
 
- Public Member Functions inherited from openvpn::Action
virtual ~Action ()=default
 
- Public Member Functions inherited from openvpn::RC< thread_unsafe_refcount >
 RC () noexcept=default
 
 RC (const RC &)=delete
 
virtual ~RC ()=default
 
RCoperator= (const RC &)=delete
 
olong use_count () const noexcept
 Delegates call to RCImpl and returns the result.
 

Private Attributes

std::string cmd
 

Additional Inherited Members

- Static Public Member Functions inherited from openvpn::RC< thread_unsafe_refcount >
static constexpr bool is_thread_safe ()
 Delegates call to RCImpl and returns the result.
 
- Public Attributes inherited from openvpn::Action
std::string mark
 

Detailed Description

Definition at line 28 of file cmd.hpp.

Member Typedef Documentation

◆ Ptr

Definition at line 31 of file cmd.hpp.

Constructor & Destructor Documentation

◆ WinCmd()

openvpn::WinCmd::WinCmd ( const std::string &  command)
inline

Definition at line 33 of file cmd.hpp.

Member Function Documentation

◆ execute()

virtual void openvpn::WinCmd::execute ( std::ostream &  os)
inlineoverridevirtual

Implements openvpn::Action.

Definition at line 38 of file cmd.hpp.

Here is the caller graph for this function:

◆ to_string()

virtual std::string openvpn::WinCmd::to_string ( ) const
inlineoverridevirtual

Implements openvpn::Action.

Definition at line 45 of file cmd.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ cmd

std::string openvpn::WinCmd::cmd
private

Definition at line 51 of file cmd.hpp.


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