2025-01-14 14:42:39 +00:00
|
|
|
/* Node list.
|
2021-06-21 16:12:47 -04:00
|
|
|
*
|
2025-01-14 14:42:39 +00:00
|
|
|
* Author: Steffen Vogel <post@steffenvogel.de>
|
|
|
|
* SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
2021-06-21 16:12:47 -04:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2021-08-10 10:12:48 -04:00
|
|
|
#include <jansson.h>
|
2025-01-14 14:42:39 +00:00
|
|
|
#include <uuid/uuid.h>
|
2021-06-21 16:12:47 -04:00
|
|
|
|
|
|
|
#include <list>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace villas {
|
|
|
|
namespace node {
|
|
|
|
|
2025-01-14 14:42:39 +00:00
|
|
|
// Forward declarations
|
2021-08-10 10:12:48 -04:00
|
|
|
class Path;
|
|
|
|
|
|
|
|
class PathList : public std::list<Path *> {
|
2021-06-21 16:12:47 -04:00
|
|
|
|
|
|
|
public:
|
2025-01-14 14:42:39 +00:00
|
|
|
// Lookup a path from the list based on its UUID
|
|
|
|
Path *lookup(const uuid_t &uuid) const;
|
2021-08-10 10:12:48 -04:00
|
|
|
|
2025-01-14 14:42:39 +00:00
|
|
|
json_t *toJson() const;
|
2021-06-21 16:12:47 -04:00
|
|
|
};
|
|
|
|
|
2025-01-14 14:42:39 +00:00
|
|
|
} // namespace node
|
|
|
|
} // namespace villas
|