3#include <Infinity/api.h>
49 ComponentID(
const std::string& group,
const std::string& name);
82 std::string
str()
const;
93template<>
struct std::hash<
Infinity::Procedural::ComponentID> {
102 return std::hash<std::string>{}(s.str());
Definition ComponentException.hpp:7
Unique identifier for a procedural component.
Definition ComponentID.hpp:35
std::string str() const
Converts the ComponentID to its string representation.
std::string group
The component's group/namespace identifier.
Definition ComponentID.hpp:72
std::string name
The component's name within the group.
Definition ComponentID.hpp:73
bool operator==(const ComponentID &rhs) const noexcept
Equality comparison operator.
ComponentID()=default
Default constructor.
ComponentID(const std::string &group, const std::string &name)
Constructs a ComponentID from separate group and name strings.
ComponentID(const std::string &combinedGroupName)
Constructs a ComponentID from a combined group.name string.
size_t operator()(Infinity::Procedural::ComponentID const &s) const noexcept
Computes the hash value for a ComponentID.
Definition ComponentID.hpp:100