|  | Open 3D Engine AzFramework API Reference
    2205.0
    O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry. | 
#include <Dependency.h>
| Classes | |
| class | Bound | 
| Public Member Functions | |
| Dependency (const Dependency &dep) | |
| const AZ::Uuid & | GetID () const | 
| void | SetID (const AZ::Uuid &id) | 
| const AZStd::vector< Bound > & | GetBounds () const | 
| bool | IsFullfilledBy (const Specifier< N > &spec) const | 
| AZ::Outcome< void, AZStd::string > | ParseVersions (const AZStd::vector< AZStd::string > &deps) | 
| Public Attributes | |
| AZ::Uuid | m_id = AZ::Uuid::CreateNull() | 
| AZStd::vector< Bound > | m_bounds | 
Defines a Gem's dependency upon another Gem.
| const AZStd::vector< typename Dependency< N >::Bound > & AzFramework::Dependency< N >::GetBounds | 
Gets the bounds that the dependence's version must fulfill.
| const AZ::Uuid & AzFramework::Dependency< N >::GetID | 
Gets the ID of the Gem depended on.
| bool AzFramework::Dependency< N >::IsFullfilledBy | ( | const Specifier< N > & | spec | ) | const | 
Checks if a specifier matches a dependency.
Checks that the specifier's ID is the one depended on, and that the version matches the bounds (which can be retrieved by GetBounds()).
\params[in] spec The specifier to test.
| AZ::Outcome< void, AZStd::string > AzFramework::Dependency< N >::ParseVersions | ( | const AZStd::vector< AZStd::string > & | deps | ) | 
Parses version bounds from a list of strings.
Each string should fit the pattern [OPERATOR][VERSION], where [OPERATOR] is >, >=, <, <=, ==, or ~>, and [VERSION] is a valid version string, parsable by Gems::Version<N>.
\params[in] deps The list of bound strings to parse.
| void AzFramework::Dependency< N >::SetID | ( | const AZ::Uuid & | id | ) | 
Set the ID of the Gem depended on.
\params[in] id The ID of the dependency
 1.8.17
 1.8.17