ponder 3.2
C++ reflection library
ponder::EnumProperty Class Reference

Specialized type of property for enums. More...

#include <enumproperty.hpp>

+ Inheritance diagram for ponder::EnumProperty:

Public Member Functions

 EnumProperty (IdRef name, const Enum &propEnum)
 Construct the property from its description. More...
 
virtual ~EnumProperty ()
 Destructor.
 
const EnumgetEnum () const
 Get the owner enum. More...
 
void accept (ClassVisitor &visitor) const override
 Accept the visitation of a ClassVisitor. More...
 
- Public Member Functions inherited from ponder::Property
virtual ~Property ()
 Destructor.
 
IdReturn name () const
 Get the name of the property. More...
 
ValueKind kind () const
 Get the type of the property. More...
 
virtual bool isReadable () const
 Check if the property can be read. More...
 
virtual bool isWritable () const
 Check if the property can be written. More...
 
Value get (const UserObject &object) const
 Get the current value of the property for a given object. More...
 
void set (const UserObject &object, const Value &value) const
 Set the current value of the property for a given object. More...
 

Detailed Description

Specialized type of property for enums.

Constructor & Destructor Documentation

◆ EnumProperty()

ponder::EnumProperty::EnumProperty ( IdRef  name,
const Enum propEnum 
)

Construct the property from its description.

Parameters
nameName of the property
propEnumEumeration the property is bound to

Member Function Documentation

◆ accept()

void ponder::EnumProperty::accept ( ClassVisitor visitor) const
overridevirtual

Accept the visitation of a ClassVisitor.

Parameters
visitorVisitor to accept

Reimplemented from ponder::Property.

◆ getEnum()

const Enum& ponder::EnumProperty::getEnum ( ) const

Get the owner enum.

Returns
Enum the property is bound to

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