PicoScenes API Docs
 
Loading...
Searching...
No Matches
AbstractHALConfiguration.hxx
Go to the documentation of this file.
1//
2// Created by Zhiping Jiang on 12/26/19.
3//
4
5#ifndef PICOSCENES_PLATFORM_ABSTRACTHALCONFIGURATION_HXX
6#define PICOSCENES_PLATFORM_ABSTRACTHALCONFIGURATION_HXX
7
8#include "BoostHeaders.hxx"
9
10class AbstractNIC;
11
13public:
14 explicit AbstractHALConfiguration(const std::shared_ptr<AbstractNIC> &nic) : nic(nic) {}
15
16 virtual void applyConfiguration(const pt::ptree &config) = 0;
17
18 virtual std::shared_ptr<po::options_description> getHALOptions() = 0;
19
20 virtual void parseAndExecuteCommands(const std::string &command) = 0;
21
22protected:
23 std::shared_ptr<AbstractNIC> nic;
24};
25
26
27#endif //PICOSCENES_PLATFORM_ABSTRACTHALCONFIGURATION_HXX
virtual std::shared_ptr< po::options_description > getHALOptions()=0
virtual void parseAndExecuteCommands(const std::string &command)=0
std::shared_ptr< AbstractNIC > nic
virtual void applyConfiguration(const pt::ptree &config)=0
AbstractHALConfiguration(const std::shared_ptr< AbstractNIC > &nic)