OpenAssetIO [beta]
An abstract API for generalising interactions between a host application and an asset management system
EntityReference Class Referencefinal

EntityReference forms a strongly typed wrapper around arbitrary strings to ensure they have been validated by the target manager before being used as an Entity Reference in the various entity related API calls. More...

#include <EntityReference.hpp>

Public Member Functions

 EntityReference (Str entityReferenceString)
 Constructs an EntityReference around the supplied string. More...
 
bool operator== (const EntityReference &other) const
 Compare the contents of this reference with another for equality. More...
 
const StrtoString () const
 

Detailed Description

EntityReference forms a strongly typed wrapper around arbitrary strings to ensure they have been validated by the target manager before being used as an Entity Reference in the various entity related API calls.

It can be assumed that if isEntityReferenceString is true for a given string, then an EntityReference can be constructed from that string.

Warning
EntityReferences should not be constructed directly by the host, use the creation methods of the manager instead, createEntityReference and createEntityReferenceIfValid.

Note that this does not preclude the possibility of a malformed reference. See kInvalidEntityReference.

Constructor & Destructor Documentation

EntityReference ( Str  entityReferenceString)
inlineexplicit

Constructs an EntityReference around the supplied string.

Member Function Documentation

bool operator== ( const EntityReference other) const
inline

Compare the contents of this reference with another for equality.

Parameters
otherEntity refernce to compare against.
Returns
true if contents are equal, false otherwise.
const Str& toString ( ) const
inline
Returns
The string representation of this entity reference.

The documentation for this class was generated from the following file:
  • /src/src/openassetio-core/include/openassetio/EntityReference.hpp