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

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

#include "plugins/network/layer/Layer.h"

Public Member Functions

 Layer (const utils::file::IWriter &writer)
 
 ~Layer ()
 
 Layer (const Layer &)=delete
 
Layeroperator= (const Layer &)=delete
 
 Layer (Layer &&)=delete
 
Layeroperator= (Layer &&)=delete
 
void applyCommand (const std::string &pathname, const std::string &value) const
 Apply the requested "layer command". More...
 

Private Attributes

std::unique_ptr< Internal > m_internal
 

Detailed Description

Helper class to handle "layer 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

◆ Layer() [1/3]

service::plugins::network::layer::Layer::Layer ( const utils::file::IWriter writer)
explicit

Class constructor

Parameters
writerWriter object to write into files

◆ ~Layer()

service::plugins::network::layer::Layer::~Layer ( )

Class destructor

◆ Layer() [2/3]

service::plugins::network::layer::Layer::Layer ( const Layer )
delete

Class copy constructor

◆ Layer() [3/3]

service::plugins::network::layer::Layer::Layer ( Layer &&  )
delete

Class move constructor

Member Function Documentation

◆ applyCommand()

void service::plugins::network::layer::Layer::applyCommand ( const std::string &  pathname,
const std::string &  value 
) const

Apply the requested "layer command".

Parameters
pathnameAbsolute path to the file to update
valueNew content to write to file

◆ operator=() [1/2]

Layer& service::plugins::network::layer::Layer::operator= ( const Layer )
delete

Class copy-assignment operator

◆ operator=() [2/2]

Layer& service::plugins::network::layer::Layer::operator= ( Layer &&  )
delete

Class move-assignment operator

Member Data Documentation

◆ m_internal

std::unique_ptr<Internal> service::plugins::network::layer::Layer::m_internal
private

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