omni/structuredlog/IStructuredLogExtraFields.h

File members: omni/structuredlog/IStructuredLogExtraFields.h

// Copyright (c) 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.
//
#pragma once

#include "StructuredLogCommon.h"

#include "../core/IObject.h"

#include <omni/String.h>

namespace omni
{
namespace structuredlog
{

class IStructuredLogExtraFields;

using ExtraFieldFlags = uint32_t;

constexpr ExtraFieldFlags fExtraFieldFlagNone = 0;

// ***************************** IStructuredLogExtraFields interface ******************************
class IStructuredLogExtraFields_abi
    : public omni::core::Inherits<omni::core::IObject, OMNI_TYPE_ID("omni.structuredlog.IStructuredLogExtraFields")>
{
protected:
    virtual bool setValue_abi(OMNI_ATTR("c_str, in, not_null") const char* fieldName,
                              OMNI_ATTR("c_str, in, not_null") const char* value,
                              ExtraFieldFlags flags) noexcept = 0;
};

} // namespace structuredlog
} // namespace omni

#define OMNI_BIND_INCLUDE_INTERFACE_DECL
#include "IStructuredLogExtraFields.gen.h"

// insert custom API functions here.
class omni::structuredlog::IStructuredLogExtraFields
    : public omni::core::Generated<omni::structuredlog::IStructuredLogExtraFields_abi>
{
};

#define OMNI_BIND_INCLUDE_INTERFACE_IMPL
#include "IStructuredLogExtraFields.gen.h"