neuray API Programmer's Manual

ienum.h File Reference

Description

Numeric types.

Code Example

ienum.h

‎/***************************************************************************************************
 * Copyright 2024 NVIDIA Corporation. All rights reserved.
 **************************************************************************************************/

#ifndef MI_NEURAYLIB_IENUM_H
#define MI_NEURAYLIB_IENUM_H

#include <mi/neuraylib/idata.h>

namespace mi {

class IEnum_decl;

















class IEnum :
    public base::Interface_declare<0x4e10d0e4,0x456b,0x45a5,0xa6,0xa7,0xdf,0x0a,0xa1,0x9a,0x0c,0xd2,
                                   IData_simple>
{
public:
    virtual void get_value( Sint32& value) const = 0;

    Sint32 
               get_value() const { Sint32 value; get_value( value); return value; }

    virtual const char* get_value_by_name() const = 0;

    virtual Sint32 
               set_value( Sint32 value) = 0;

    virtual Sint32 
               set_value_by_name( const char* name) = 0;

    virtual const IEnum_decl* get_enum_decl() const = 0;
};
 // end group mi_neuray_simple_types

} // namespace mi

#endif // MI_NEURAYLIB_IENUM_H

Namespaces

namespace 
Common namespace for APIs of NVIDIA Advanced Rendering Center GmbH. More...

Classes

class 
This interface represents enums. More...