#include <enginepropertytypes.h>

Public Member Functions | |
| ResourceActorProperty (ActorProxy &actorProxy, DataType &type, const std::string &name, const std::string &label, Functor1< const std::string & > Set, const std::string &desc="", const std::string &groupName="") | |
| virtual void | CopyFrom (const ActorProperty &otherProp) |
| Copies a ResourceActorProperty value to this one from the property specified. | |
| void | SetValue (ResourceDescriptor *value) |
| Sets the value of this property by calling the set functor assigned to this property. | |
| ResourceDescriptor * | GetValue () const |
| Gets the value of this property be calling the get functor assigned to this property. | |
| virtual bool | FromString (const std::string &value) |
| Sets the value of the property based on a string. | |
| virtual const std::string | ToString () const |
| |
Protected Member Functions | |
| virtual | ~ResourceActorProperty () |
| dtDAL::ResourceActorProperty::ResourceActorProperty | ( | ActorProxy & | actorProxy, | |
| DataType & | type, | |||
| const std::string & | name, | |||
| const std::string & | label, | |||
| Functor1< const std::string & > | Set, | |||
| const std::string & | desc = "", |
|||
| const std::string & | groupName = "" | |||
| ) | [inline] |
| virtual dtDAL::ResourceActorProperty::~ResourceActorProperty | ( | ) | [inline, protected, virtual] |
| virtual void dtDAL::ResourceActorProperty::CopyFrom | ( | const ActorProperty & | otherProp | ) | [inline, virtual] |
Copies a ResourceActorProperty value to this one from the property specified.
This method fails if otherProp is not a ResourceActorProperty.
| otherProp | The property to copy the value from. |
Implements dtDAL::ActorProperty.
| void dtDAL::ResourceActorProperty::SetValue | ( | ResourceDescriptor * | value | ) |
Sets the value of this property by calling the set functor assigned to this property.
Hack for the resource class
| value | the value to set or NULL to clear it. The passed in pointer is not stored. The values are extracted and stored in a separate object. |
| ResourceDescriptor * dtDAL::ResourceActorProperty::GetValue | ( | ) | const |
Gets the value of this property be calling the get functor assigned to this property.
Hack for the resource class
| bool dtDAL::ResourceActorProperty::FromString | ( | const std::string & | value | ) | [virtual] |
Sets the value of the property based on a string.
The string should be the both the unique id and the display string separated by a comma.
| value | the value to set. |
Implements dtDAL::AbstractParameter.
| const std::string dtDAL::ResourceActorProperty::ToString | ( | ) | const [virtual] |
This value can be used when calling FromString.
Implements dtDAL::AbstractParameter.