// Copyright (c) 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.
//
#include <OgnTestExecutionTaskDatabase.h>
#include <omni/graph/exec/unstable/ExecutionTask.h>
#include <cstdlib>

// This is the implementation of the OGN node defined in OgnTestExecutionTask.ogn

namespace omni {
namespace graph {
namespace test {

class OgnTestExecutionTask
{
public:
    static bool compute(OgnTestExecutionTaskDatabase& db)
    {
        auto& result = db.outputs.result();
        if (exec::unstable::getCurrentTask())
            result = true;
        else
            result = false;

        return true;
    }
};

REGISTER_OGN_NODE()

} // test
} // namespace graph
} // namespace omni
