neuray API Programmer's Manual

mi::neuraylib::IAnnotation Class Reference

[MDL type system]

Description

An annotation is similar to a direct call expression, but without return type. Its definition can be obtained by calling mi::neuraylib::IAnnotation::get_definition().

Annotations can be created with mi::neuraylib::IExpression_factory::create_annotation() or mi::neuraylib::IAnnotation_definition::create_annotation().

Public Member Functions

virtual const IExpression_listget_arguments() const =0
Returns the arguments of the annotation. More...
virtual const IAnnotation_definitionget_definition() const =0
Returns the definition of this annotation.
virtual const char* get_name() const =0
Returns the name of the annotation.
virtual void set_name( const char* name) =0
Sets the name of the annotation.

Member Functions

virtual const IExpression_list* mi::​neuraylib::​IAnnotation::get_arguments() const [pure virtual]

Returns the arguments of the annotation. The arguments of annotations are always constant expressions.

virtual const IAnnotation_definition* mi::​neuraylib::​IAnnotation::get_definition() const [pure virtual]

Returns the definition of this annotation.

virtual const char* mi::​neuraylib::​IAnnotation::get_name() const [pure virtual]

Returns the name of the annotation.

virtual void mi::​neuraylib::​IAnnotation::set_name( const char* name) [pure virtual]

Sets the name of the annotation.