MeVisLab Toolbox Reference
ml::StandardItemModel::Attribute Struct Reference

Defines the name of an attribute and its default value. More...

#include <mlStandardItemModel.h>

Public Member Functions

 Attribute (const std::string &nameArg, const Variant &defaultValueArg=Variant())
 

Public Attributes

std::string name
 Name of the attribute. More...
 
Variant defaultValue
 Default value of the attribute. More...
 

Detailed Description

Defines the name of an attribute and its default value.

If no default value is given, Variant() is used.

Definition at line 33 of file mlStandardItemModel.h.

Constructor & Destructor Documentation

◆ Attribute()

ml::StandardItemModel::Attribute::Attribute ( const std::string &  nameArg,
const Variant defaultValueArg = Variant() 
)
inline

Definition at line 35 of file mlStandardItemModel.h.

Member Data Documentation

◆ defaultValue

Variant ml::StandardItemModel::Attribute::defaultValue

Default value of the attribute.

Definition at line 43 of file mlStandardItemModel.h.

◆ name

std::string ml::StandardItemModel::Attribute::name

Name of the attribute.

Definition at line 41 of file mlStandardItemModel.h.


The documentation for this struct was generated from the following file: