#include <enginepropertytypes.h>

Public Member Functions | |
| StringActorProperty (const std::string &name, const std::string &label, Functor1< const std::string & > set, Functor0Ret< std::string > get, const std::string &desc="", const std::string &groupName="") | |
| void | SetMaxLength (unsigned int length) |
| Sets the maximum length of strings stored in this property. | |
| unsigned int | GetMaxLength () const |
| Gets the maximum length of strings stored in this property. | |
| void | SetValue (const std::string &str) |
| Overloaded set value method so that the new string value can be truncated if it is longer than the maximum length allowed. | |
| virtual bool | FromString (const std::string &value) |
| Does the same thing as SetValue. | |
| virtual const std::string | ToString () const |
| |
Protected Member Functions | |
| virtual | ~StringActorProperty () |
Protected Attributes | |
| unsigned int | mMaxLength |
| Maximum length the string for this string property can be. | |
Where as the property has a maximum string length, by default, the string has no maximum length.
| dtDAL::StringActorProperty::StringActorProperty | ( | const std::string & | name, | |
| const std::string & | label, | |||
| Functor1< const std::string & > | set, | |||
| Functor0Ret< std::string > | get, | |||
| const std::string & | desc = "", |
|||
| const std::string & | groupName = "" | |||
| ) | [inline] |
| virtual dtDAL::StringActorProperty::~StringActorProperty | ( | ) | [inline, protected, virtual] |
| void dtDAL::StringActorProperty::SetMaxLength | ( | unsigned int | length | ) | [inline] |
Sets the maximum length of strings stored in this property.
| length | Max length. |
| unsigned int dtDAL::StringActorProperty::GetMaxLength | ( | ) | const [inline] |
Gets the maximum length of strings stored in this property.
| void dtDAL::StringActorProperty::SetValue | ( | const std::string & | str | ) | [inline] |
Overloaded set value method so that the new string value can be truncated if it is longer than the maximum length allowed.
| str | The new string value to set on this property. |
Reimplemented from dtDAL::GenericActorProperty< const std::string &, std::string >.
| virtual bool dtDAL::StringActorProperty::FromString | ( | const std::string & | value | ) | [inline, virtual] |
Does the same thing as SetValue.
| value | the value to set. |
Implements dtDAL::AbstractParameter.
| virtual const std::string dtDAL::StringActorProperty::ToString | ( | ) | const [inline, virtual] |
unsigned int dtDAL::StringActorProperty::mMaxLength [protected] |
Maximum length the string for this string property can be.