Open 3D Engine AzCore API Reference
24.09
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::string & | GetName () const |
void | SetName (const AZStd::string &name) |
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::string | m_name |
AZStd::vector< Bound > | m_bounds |
Defines a dependency upon another versioned object.
const AZStd::vector< typename Dependency< N >::Bound > & AZ::Dependency< N >::GetBounds |
Gets the bounds that the dependence's version must fulfill.
const AZ::Uuid & AZ::Dependency< N >::GetID |
Gets the ID of the object depended on.
const AZStd::string & AZ::Dependency< N >::GetName |
Gets the name of the object depended on.
bool AZ::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 > AZ::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 AZ::Version<N>.
\params[in] deps The list of bound strings to parse.
void AZ::Dependency< N >::SetID | ( | const AZ::Uuid & | id | ) |
Set the ID of the object depended on.
\params[in] id The ID of the dependency
void AZ::Dependency< N >::SetName | ( | const AZStd::string & | name | ) |
Set the name of the object depended on.
\params[in] name The name of the dependency