SBCClassAttribute Class Referenceabstract

This class describes a class attribute in a class proxy.

Attribute types

enum  Type
 

Constructors and destructors

 SBCClassAttribute ()
 Constructs a class attribute.
 
virtual ~SBCClassAttribute ()
 Destructs the class attribute.
 

Identity

virtual Type getType () const =0
 Returns the type of the attribute.
 
virtual std::string getName () const =0
 Returns the name of the attribute.
 
virtual std::string getDescription () const =0
 Returns the description of the attribute.
 
virtual std::string getGroup () const =0
 Returns the group of the attribute.
 
virtual SBValue getAttributeType () const =0
 Returns the type of the attribute value.
 

Accessors

virtual SBValue get (const SBValue &object) const =0
 Gets the attribute from the object.
 
virtual void set (const SBValue &object, const SBValue &value, const SBValue &size=SBValue()) const =0
 Sets the attribute in the object to a specific value.
 
virtual bool has (const SBValue &object) const =0
 Returns whether the attribute has a value when the attribute is clearable.
 
virtual void clear (const SBValue &object) const =0
 Clears the value of the attribute when possible.
 
virtual unsigned int getSize (const SBValue &object) const =0
 Returns the size of the array attribute in the object when relevant.