// Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
// --------- Warning: This is a build system generated file. ----------
//

//! @file
//!
//! @brief This file was generated by <i>omni.bind</i>.

#include <omni/core/Interface.h>
#include <omni/core/OmniAttr.h>
#include <omni/core/ResultError.h>

#include <functional>
#include <type_traits>
#include <utility>

#ifndef OMNI_BIND_INCLUDE_INTERFACE_IMPL


template <>
class omni::core::Generated<usdrt::IRtStage_abi> : public usdrt::IRtStage_abi
{
public:
    OMNI_PLUGIN_INTERFACE("usdrt::IRtStage")


    omni::core::ObjectPtr<usdrt::IRtStage> open(const char* identifier) noexcept;


    omni::core::ObjectPtr<usdrt::IRtStage> createNew(const char* identifier) noexcept;


    omni::core::ObjectPtr<usdrt::IRtStage> createInMemory(const char* identifier) noexcept;


    omni::core::ObjectPtr<usdrt::IRtStage> attach(omni::fabric::UsdStageId stageId,
                                                  omni::fabric::StageReaderWriterId stageReaderWriterId) noexcept;


    omni::core::ObjectPtr<usdrt::IRtStage> attachUnknown(omni::fabric::UsdStageId stageId) noexcept;


    omni::core::ObjectPtr<usdrt::IRtPrim> getDefaultPrim() noexcept;


    omni::core::ObjectPtr<usdrt::IRtPrim> getPrimAtPath(omni::fabric::PathC path) noexcept;


    omni::core::ObjectPtr<usdrt::IRtPrim> definePrim(omni::fabric::PathC path, omni::fabric::TokenC typeName) noexcept;


    bool removePrim(omni::fabric::PathC path) noexcept;


    omni::core::ObjectPtr<usdrt::IRtAttribute> getAttributeAtPath(omni::fabric::PathC path) noexcept;


    omni::core::ObjectPtr<usdrt::IRtRelationship> getRelationshipAtPath(omni::fabric::PathC path) noexcept;


    void done() noexcept;


    omni::fabric::UsdStageId getStageId() noexcept;


    void write(const char* filepath) noexcept;


    bool hasPrimAtPath(omni::fabric::PathC path) noexcept;
};

#endif

#ifndef OMNI_BIND_INCLUDE_INTERFACE_DECL

inline omni::core::ObjectPtr<usdrt::IRtStage> omni::core::Generated<usdrt::IRtStage_abi>::open(const char* identifier) noexcept
{
    return omni::core::steal(open_abi(identifier));
}

inline omni::core::ObjectPtr<usdrt::IRtStage> omni::core::Generated<usdrt::IRtStage_abi>::createNew(
    const char* identifier) noexcept
{
    return omni::core::steal(createNew_abi(identifier));
}

inline omni::core::ObjectPtr<usdrt::IRtStage> omni::core::Generated<usdrt::IRtStage_abi>::createInMemory(
    const char* identifier) noexcept
{
    return omni::core::steal(createInMemory_abi(identifier));
}

inline omni::core::ObjectPtr<usdrt::IRtStage> omni::core::Generated<usdrt::IRtStage_abi>::attach(
    omni::fabric::UsdStageId stageId, omni::fabric::StageReaderWriterId stageReaderWriterId) noexcept
{
    return omni::core::steal(attach_abi(stageId, stageReaderWriterId));
}

inline omni::core::ObjectPtr<usdrt::IRtStage> omni::core::Generated<usdrt::IRtStage_abi>::attachUnknown(
    omni::fabric::UsdStageId stageId) noexcept
{
    return omni::core::steal(attachUnknown_abi(stageId));
}

inline omni::core::ObjectPtr<usdrt::IRtPrim> omni::core::Generated<usdrt::IRtStage_abi>::getDefaultPrim() noexcept
{
    return omni::core::steal(getDefaultPrim_abi());
}

inline omni::core::ObjectPtr<usdrt::IRtPrim> omni::core::Generated<usdrt::IRtStage_abi>::getPrimAtPath(
    omni::fabric::PathC path) noexcept
{
    return omni::core::steal(getPrimAtPath_abi(path));
}

inline omni::core::ObjectPtr<usdrt::IRtPrim> omni::core::Generated<usdrt::IRtStage_abi>::definePrim(
    omni::fabric::PathC path, omni::fabric::TokenC typeName) noexcept
{
    return omni::core::steal(definePrim_abi(path, typeName));
}

inline bool omni::core::Generated<usdrt::IRtStage_abi>::removePrim(omni::fabric::PathC path) noexcept
{
    return removePrim_abi(path);
}

inline omni::core::ObjectPtr<usdrt::IRtAttribute> omni::core::Generated<usdrt::IRtStage_abi>::getAttributeAtPath(
    omni::fabric::PathC path) noexcept
{
    return omni::core::steal(getAttributeAtPath_abi(path));
}

inline omni::core::ObjectPtr<usdrt::IRtRelationship> omni::core::Generated<usdrt::IRtStage_abi>::getRelationshipAtPath(
    omni::fabric::PathC path) noexcept
{
    return omni::core::steal(getRelationshipAtPath_abi(path));
}

inline void omni::core::Generated<usdrt::IRtStage_abi>::done() noexcept
{
    done_abi();
}

inline omni::fabric::UsdStageId omni::core::Generated<usdrt::IRtStage_abi>::getStageId() noexcept
{
    return getStageId_abi();
}

inline void omni::core::Generated<usdrt::IRtStage_abi>::write(const char* filepath) noexcept
{
    write_abi(filepath);
}

inline bool omni::core::Generated<usdrt::IRtStage_abi>::hasPrimAtPath(omni::fabric::PathC path) noexcept
{
    return hasPrimAtPath_abi(path);
}

#endif

#undef OMNI_BIND_INCLUDE_INTERFACE_DECL
#undef OMNI_BIND_INCLUDE_INTERFACE_IMPL
