networkservice
Public Member Functions | Private Attributes | List of all members
service::plugins::network::interface::Interface Class Reference

Helper class to handle "interface commands". More...

#include "plugins/network/interface/Interface.h"

Public Member Functions

 Interface (const utils::command::IExecutor &executor)
 
 ~Interface ()
 
 Interface (const Interface &)=delete
 
Interfaceoperator= (const Interface &)=delete
 
 Interface (Interface &&)=delete
 
Interfaceoperator= (Interface &&)=delete
 
void applyCommand (const std::string &command) const
 

Private Attributes

std::unique_ptr< Internal > m_internal
 

Detailed Description

Helper class to handle "interface commands".

Note
Copy contructor, copy-assignment operator, move constructor and move-assignment operator are defined to be compliant with the "Rule of five"
See also
https://en.cppreference.com/w/cpp/language/rule_of_three
Author
Boubacar DIENE bouba.nosp@m.car..nosp@m.diene.nosp@m.@gma.nosp@m.il.co.nosp@m.m
Date
April 2020

Constructor & Destructor Documentation

◆ Interface() [1/3]

service::plugins::network::interface::Interface::Interface ( const utils::command::IExecutor executor)
explicit

Class constructor

Parameters
executorCommand executor to use

◆ ~Interface()

service::plugins::network::interface::Interface::~Interface ( )

Class destructor

◆ Interface() [2/3]

service::plugins::network::interface::Interface::Interface ( const Interface )
delete

Class copy constructor

◆ Interface() [3/3]

service::plugins::network::interface::Interface::Interface ( Interface &&  )
delete

Class move constructor

Member Function Documentation

◆ applyCommand()

void service::plugins::network::interface::Interface::applyCommand ( const std::string &  command) const

Apply the requested "interface command"

◆ operator=() [1/2]

Interface& service::plugins::network::interface::Interface::operator= ( const Interface )
delete

Class copy-assignment operator

◆ operator=() [2/2]

Interface& service::plugins::network::interface::Interface::operator= ( Interface &&  )
delete

Class move-assignment operator

Member Data Documentation

◆ m_internal

std::unique_ptr<Internal> service::plugins::network::interface::Interface::m_internal
private

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