#include <genericactorproperty.h>

Public Member Functions | |
| GenericActorProperty (DataType &dataType, const std::string &name, const std::string &label, Functor1< SetType > &set, Functor0Ret< GetType > &get, const std::string &desc, const std::string &groupName, bool readOnly=false) | |
| Constructs the actor property. | |
| virtual void | CopyFrom (const ActorProperty &otherProp) |
| This method allows a generic property of any type to be copied from one to the other. | |
| void | SetValue (SetType value) |
| Sets the value of this property by calling the set functor assigned to this property. | |
| GetType | GetValue () const |
| |
Protected Member Functions | |
| virtual | ~GenericActorProperty () |
| Keep destructors protected to ensure property smart pointer management. | |
The class is templated such that it has a set type and a get type which correspond to the set and get method signatures.
The get method returns a value of any type and takes no parameters.
| dtDAL::GenericActorProperty< SetType, GetType >::GenericActorProperty | ( | DataType & | dataType, | |
| const std::string & | name, | |||
| const std::string & | label, | |||
| Functor1< SetType > & | set, | |||
| Functor0Ret< GetType > & | get, | |||
| const std::string & | desc, | |||
| const std::string & | groupName, | |||
| bool | readOnly = false | |||
| ) | [inline] |
Constructs the actor property.
Note, that functor objects must be specified and match the set and get types of the GenericActorProperty.
| virtual dtDAL::GenericActorProperty< SetType, GetType >::~GenericActorProperty | ( | ) | [inline, protected, virtual] |
Keep destructors protected to ensure property smart pointer management.
| virtual void dtDAL::GenericActorProperty< SetType, GetType >::CopyFrom | ( | const ActorProperty & | otherProp | ) | [inline, virtual] |
This method allows a generic property of any type to be copied from one to the other.
| otherProp | The property to copy from. |
Implements dtDAL::ActorProperty.
| void dtDAL::GenericActorProperty< SetType, GetType >::SetValue | ( | SetType | value | ) | [inline] |
Sets the value of this property by calling the set functor assigned to this property.
Reimplemented in dtDAL::StringActorProperty.
| GetType dtDAL::GenericActorProperty< SetType, GetType >::GetValue | ( | ) | const [inline] |