neuray Services API Programmer's Manual

iuser.h File Reference

Description

user data type

Code Example

iuser.h

‎//*****************************************************************************
// Copyright 1986-2011 by mental images GmbH, Fasanenstr. 81, D-10623 Berlin,
// Germany. All rights reserved.
//*****************************************************************************
//*****************************************************************************
#ifndef MI_NSERVICES_IUSER_H
#define MI_NSERVICES_IUSER_H

#include <mi/neuraylib/istructure.h>

namespace mi {
namespace nservices {









class IUser_type : public
    mi::base::Interface_declare<0xFCB62B6A,0xAD7E,0xFC52,0x3F,0x81,0x7E,0x40,0x4B,0xFE,0x1B,0xDC,
    mi::IStructure>
{
};

 // end group mi_nservices_types



class IUser_type_definition : public
    mi::base::Interface_declare<0x154532B3,0x8CF9,0x472F,0xAA,0x03,0x78,0x72,0x6E,0x73,0x53,0x52>
{
public:
    virtual Sint32 
               set_name(const char *name) = 0;

    virtual const char *get_name() const = 0;

    virtual Sint32 
               add_element(const char *name, const char *type_name) = 0;

    virtual const char *get_element_type(const char *name) const = 0;

    virtual bool get_element_type(Size idx, const char **name, const char **type_name) const = 0;
};
 // end group mi_nservices_user_types

} // namespace nservices
} // namespace mi

#endif // MI_NSERVICES_IUSER_H

Namespaces

namespace mi
namespace 
Namespace for the neuray Services API. More...

Classes

class 
This interface represents user defined objects. More...
class 
A definition of a user type. More...