dtDAL::DoubleActorProperty Class Reference

This actor property represents a 64-bit precision decimal data member. More...

#include <enginepropertytypes.h>

Inheritance diagram for dtDAL::DoubleActorProperty:

dtDAL::GenericActorProperty< double, double > dtDAL::ActorProperty dtDAL::AbstractParameter

List of all members.

Public Member Functions

 DoubleActorProperty (const std::string &name, const std::string &label, Functor1< double > set, Functor0Ret< double > get, const std::string &desc="", const std::string &groupName="")
virtual bool FromString (const std::string &value)
 Sets the value of the property based on a string.
virtual const std::string ToString () const
 
Returns:
a string version of the data.


Protected Member Functions

virtual ~DoubleActorProperty ()


Detailed Description

This actor property represents a 64-bit precision decimal data member.

Constructor & Destructor Documentation

dtDAL::DoubleActorProperty::DoubleActorProperty ( const std::string &  name,
const std::string &  label,
Functor1< double >  set,
Functor0Ret< double >  get,
const std::string &  desc = "",
const std::string &  groupName = "" 
) [inline]

virtual dtDAL::DoubleActorProperty::~DoubleActorProperty (  )  [inline, protected, virtual]


Member Function Documentation

bool dtDAL::DoubleActorProperty::FromString ( const std::string &  value  )  [virtual]

Sets the value of the property based on a string.

The string should be a double value as a string. This will set the value to 0 if it's not valid.

Note:
Returns false it the property is read only
Parameters:
value the value to set.
Returns:
true

Implements dtDAL::AbstractParameter.

const std::string dtDAL::DoubleActorProperty::ToString (  )  const [virtual]

Returns:
a string version of the data.

This value can be used when calling FromString.

See also:
FromString

Implements dtDAL::AbstractParameter.


http://www.delta3d.org
2.0.0 generated 14 Feb 2008