daeMetaArrayAttribute Class Reference

#include <daeMetaAttribute.h>

Inheritance diagram for daeMetaArrayAttribute:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual daeInt compare (daeElement *elt1, daeElement *elt2)
virtual daeInt compareToDefault (daeElement *e)
virtual void copy (daeElement *toElement, daeElement *fromElement)
virtual void copyDefault (daeElement *element)
virtual daeBool isArrayAttribute ()
virtual void memoryToString (daeElement *e, std::ostringstream &buffer)
virtual void setDefaultString (daeString defaultVal)
virtual void setDefaultValue (daeMemoryRef defaultVal)
virtual void setDocument (daeElement *e, daeDocument *doc)
virtual void stringToMemory (daeElement *e, daeString s)
virtual ~daeMetaArrayAttribute ()

Detailed Description

The daeMetaArrayAttribute class is simple a wrapper that implements an array of atomic types rather than a singleton. The corresponding storage is an array and the corresponding operations are implemented on the array data structure rather than on inlined storage in elements.

Definition at line 238 of file daeMetaAttribute.h.


Constructor & Destructor Documentation

virtual daeMetaArrayAttribute::~daeMetaArrayAttribute (  )  [virtual]

Member Function Documentation

virtual daeInt daeMetaArrayAttribute::compare ( daeElement elt1,
daeElement elt2 
) [virtual]

Compares the value of this attribute in the given elements.

Parameters:
elt1 The first element whose attribute value should be compared.
elt2 The second element whose attribute value should be compared.
Returns:
Returns a positive integer if value1 > value2, a negative integer if value1 < value2, and 0 if value1 == value2.

Reimplemented from daeMetaAttribute.

virtual daeInt daeMetaArrayAttribute::compareToDefault ( daeElement e  )  [virtual]

Compares the value of this attribute from the given element to the default value of this attribute (if one exists).

Parameters:
e The element whose value should be compared to the default value.
Returns:
Returns a positive integer if value > default, a negative integer if value < default, and 0 if value == default.

Reimplemented from daeMetaAttribute.

virtual void daeMetaArrayAttribute::copy ( daeElement toElement,
daeElement fromElement 
) [virtual]

Defines the override version of this method from daeMetaAttribute.

Parameters:
toElement Pointer to a daeElement to copy this attribute to.
fromElement Pointer to a daeElement to copy this attribute from.

Reimplemented from daeMetaAttribute.

virtual void daeMetaArrayAttribute::copyDefault ( daeElement element  )  [virtual]

Copies the default value of this attribute to the element

Parameters:
element Pointer to a daeElement to copy the default value to.

Reimplemented from daeMetaAttribute.

virtual daeBool daeMetaArrayAttribute::isArrayAttribute (  )  [inline, virtual]

Gets if this attribute is an array attribute.

Returns:
Returns true if this attribute is an array type.

Reimplemented from daeMetaAttribute.

Definition at line 300 of file daeMetaAttribute.h.

virtual void daeMetaArrayAttribute::memoryToString ( daeElement e,
std::ostringstream &  buffer 
) [virtual]

Converts an element's attribute value to a string.

Reimplemented from daeMetaAttribute.

virtual void daeMetaArrayAttribute::setDefaultString ( daeString  defaultVal  )  [virtual]

Sets the default for this attribute via a string.

Parameters:
defaultVal daeString representing the default value.

Reimplemented from daeMetaAttribute.

virtual void daeMetaArrayAttribute::setDefaultValue ( daeMemoryRef  defaultVal  )  [virtual]

Sets the default for this attribute via a memory pointer.

Parameters:
defaultVal daeMemoryRef representing the default value.

Reimplemented from daeMetaAttribute.

virtual void daeMetaArrayAttribute::setDocument ( daeElement e,
daeDocument doc 
) [virtual]

Notifies an attribute when the containing document changes.

Reimplemented from daeMetaAttribute.

virtual void daeMetaArrayAttribute::stringToMemory ( daeElement e,
daeString  s 
) [virtual]

Converts a string to a memory value in the specified element.

Reimplemented from daeMetaAttribute.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


colladadom
Author(s): Du Hung Hou, Khronos.org, Marcus Barnes, Greg Corson, Herbert Law, Sebastian Schwarz, Steven Thomas, John Hsu (ros package), Tim Field (ros package)
autogenerated on Fri Jan 11 09:29:14 2013