omni/structuredlog/IStructuredLog.gen.h
File members: omni/structuredlog/IStructuredLog.gen.h
// Copyright (c) 2020-2023, 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. ----------
//
#include <omni/core/OmniAttr.h>
#include <omni/core/Interface.h>
#include <omni/core/ResultError.h>
#include <functional>
#include <utility>
#include <type_traits>
#ifndef OMNI_BIND_INCLUDE_INTERFACE_IMPL
template <>
class omni::core::Generated<omni::structuredlog::IStructuredLog_abi> : public omni::structuredlog::IStructuredLog_abi
{
public:
OMNI_PLUGIN_INTERFACE("omni::structuredlog::IStructuredLog")
bool isEnabled(omni::structuredlog::EventId eventId) noexcept;
void setEnabled(omni::structuredlog::EventId eventId, omni::structuredlog::EnableFlags flags, bool enabled) noexcept;
uint8_t* allocSchema(const char* schemaName,
const char* schemaVersion,
omni::structuredlog::SchemaFlags flags,
size_t size,
omni::structuredlog::AllocHandle* outHandle) noexcept;
omni::structuredlog::SchemaResult commitSchema(omni::structuredlog::AllocHandle schemaBlock,
const omni::structuredlog::EventInfo* events,
size_t eventCount) noexcept;
uint8_t* allocEvent(omni::structuredlog::ParserVersion version,
omni::structuredlog::EventId eventId,
omni::structuredlog::AllocFlags flags,
size_t payloadSize,
omni::structuredlog::AllocHandle* outHandle) noexcept;
void commitEvent(omni::structuredlog::AllocHandle handle) noexcept;
};
#endif
#ifndef OMNI_BIND_INCLUDE_INTERFACE_DECL
inline bool omni::core::Generated<omni::structuredlog::IStructuredLog_abi>::isEnabled(
omni::structuredlog::EventId eventId) noexcept
{
return isEnabled_abi(eventId);
}
inline void omni::core::Generated<omni::structuredlog::IStructuredLog_abi>::setEnabled(
omni::structuredlog::EventId eventId, omni::structuredlog::EnableFlags flags, bool enabled) noexcept
{
setEnabled_abi(eventId, flags, enabled);
}
inline uint8_t* omni::core::Generated<omni::structuredlog::IStructuredLog_abi>::allocSchema(
const char* schemaName,
const char* schemaVersion,
omni::structuredlog::SchemaFlags flags,
size_t size,
omni::structuredlog::AllocHandle* outHandle) noexcept
{
return allocSchema_abi(schemaName, schemaVersion, flags, size, outHandle);
}
inline omni::structuredlog::SchemaResult omni::core::Generated<omni::structuredlog::IStructuredLog_abi>::commitSchema(
omni::structuredlog::AllocHandle schemaBlock, const omni::structuredlog::EventInfo* events, size_t eventCount) noexcept
{
return commitSchema_abi(schemaBlock, events, eventCount);
}
inline uint8_t* omni::core::Generated<omni::structuredlog::IStructuredLog_abi>::allocEvent(
omni::structuredlog::ParserVersion version,
omni::structuredlog::EventId eventId,
omni::structuredlog::AllocFlags flags,
size_t payloadSize,
omni::structuredlog::AllocHandle* outHandle) noexcept
{
return allocEvent_abi(version, eventId, flags, payloadSize, outHandle);
}
inline void omni::core::Generated<omni::structuredlog::IStructuredLog_abi>::commitEvent(
omni::structuredlog::AllocHandle handle) noexcept
{
commitEvent_abi(handle);
}
#endif
#undef OMNI_BIND_INCLUDE_INTERFACE_DECL
#undef OMNI_BIND_INCLUDE_INTERFACE_IMPL
static_assert(std::is_standard_layout<omni::structuredlog::EventInfo>::value,
"omni::structuredlog::EventInfo must be standard layout to be used in ONI ABI");