Software TSN Switch
A software switch to connect VMs and Containers to a TSN network
Loading...
Searching...
No Matches
JsonImporter.h
Go to the documentation of this file.
1#pragma once
2#include <string>
3#include <vector>
4
5#include "CncTypes.h"
6#include "Inventory.h"
7#include "Topology.h"
8
9namespace cnc {
18 public:
24 static bool importFromFile(const std::string& filename, Topology& topology);
25
31 static InventoryMap importInventory(const std::string& filename);
32};
33} // namespace cnc
Stores and provides lookup access to the controller's in-memory network topology.
Definition Topology.h:18
Imports CNC topology and inventory data from JSON sources.
Definition JsonImporter.h:17
static InventoryMap importInventory(const std::string &filename)
Imports device inventory (credentials) from a JSON file.
Definition JsonImporter.cpp:103
static bool importFromFile(const std::string &filename, Topology &topology)
Imports CNC node configurations from a JSON file.
Definition JsonImporter.cpp:16
Definition GclParser.h:10
std::map< std::string, DeviceCredentials_t > InventoryMap
Definition Inventory.h:17