2021-06-21 16:12:47 -04:00
|
|
|
/** Node list
|
|
|
|
*
|
|
|
|
* @file
|
2022-12-14 17:41:58 +01:00
|
|
|
* @author Steffen Vogel <post@steffenvogel.de>
|
2022-03-15 09:28:57 -04:00
|
|
|
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
|
2022-07-04 18:20:03 +02:00
|
|
|
* @license Apache 2.0
|
|
|
|
**********************************************************************************/
|
|
|
|
|
2021-06-21 16:12:47 -04:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <uuid/uuid.h>
|
2021-08-10 10:12:48 -04:00
|
|
|
#include <jansson.h>
|
2021-06-21 16:12:47 -04:00
|
|
|
|
|
|
|
#include <list>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace villas {
|
|
|
|
namespace node {
|
|
|
|
|
2021-08-10 10:12:48 -04:00
|
|
|
/* Forward declarations */
|
|
|
|
class Path;
|
|
|
|
|
|
|
|
class PathList : public std::list<Path *> {
|
2021-06-21 16:12:47 -04:00
|
|
|
|
|
|
|
public:
|
|
|
|
/** Lookup a path from the list based on its UUID */
|
2021-08-10 10:12:48 -04:00
|
|
|
Path * lookup(const uuid_t &uuid) const;
|
|
|
|
|
|
|
|
json_t * toJson() const;
|
2021-06-21 16:12:47 -04:00
|
|
|
};
|
|
|
|
|
2023-08-28 09:34:02 +02:00
|
|
|
} // namespace node
|
|
|
|
} // namespace villas
|