place netsim in static library

This commit is contained in:
Robert 2023-06-30 01:19:45 +02:00
parent aa458dadd6
commit 8f840ff1fe
10 changed files with 17 additions and 10 deletions

View file

@ -0,0 +1,21 @@
#pragma once
#include <vector>
#include <memory>
#include <string>
#include "Device.hpp"
class Network {
public:
friend std::ostream& operator<<(std::ostream& os, const Network& network);
public:
Network(const std::string& name);
void addDevice(std::shared_ptr<Device> device);
private:
std::vector<std::shared_ptr<Device>> devices;
std::string name;
};