initial commit
This commit is contained in:
commit
811f80c92c
17 changed files with 549 additions and 0 deletions
45
source/gns3/GnsProject.hpp
Normal file
45
source/gns3/GnsProject.hpp
Normal file
|
@ -0,0 +1,45 @@
|
|||
#pragma once
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "GnsNode.hpp"
|
||||
|
||||
|
||||
namespace gns {
|
||||
|
||||
|
||||
class GnsServer;
|
||||
|
||||
|
||||
/**
|
||||
* Represent a GNS3 project.
|
||||
*/
|
||||
class GnsProject {
|
||||
public:
|
||||
GnsProject(const GnsServer* server, std::string uuid);
|
||||
|
||||
/**
|
||||
* Get the base prefix for an API request
|
||||
* @return the base prefix for an API request
|
||||
*/
|
||||
[[nodiscard]] std::string getApiBase() const;
|
||||
|
||||
/**
|
||||
* Get the uuid of the project
|
||||
* @return the uuid of the project
|
||||
*/
|
||||
[[nodiscard]] std::string getUuid() const;
|
||||
|
||||
/**
|
||||
* Get all the nodes of the project
|
||||
* @return all the nodes of the project
|
||||
*/
|
||||
[[nodiscard]] std::vector<GnsNode> getNodes() const;
|
||||
|
||||
private:
|
||||
const GnsServer* server;
|
||||
std::string uuid;
|
||||
};
|
||||
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue