#include <ParameterTreeVertex.h>
Inheritance diagram for dtpf::ParameterTreeVertex:
Encapsulates common attributes and functionality common to items in a parameter tree (Parameter
s and ParameterGroup
s). This encompasses the name and path in the tree of a vertex, its parent (if any), the NodeID
of the node it is associated with, and flattening and unflattening via the muscle::Flattenable
interface.
Public Member Functions | |
virtual | ~ParameterTreeVertex () |
Delete a ParameterTreeVertex and any memory it owns. | |
virtual void | SetName (const muscle::String &name) |
Set a ParameterTreeVertex 's name. | |
virtual muscle::String | GetName () const |
Retrieve a ParameterTreeVertex 's name. | |
virtual muscle::String | GetPath () const |
Retrieve a ParameterTreeVertex 's path in a parameter tree. | |
virtual void | SetParent (ParameterVertex *parent) |
Set the parent of a vertex. | |
virtual ParameterTreeVertex * | GetParent () const |
Retieve a ParameterTreeVertex 's parent if any. | |
virtual void | SetNode (NodeID id) |
Set the NodeID for a ParameterTreeVertex . | |
virtual NodeID | GetNode () const |
Retrieve the NodeID for a ParameterTreeVertex . | |
virtual bool | IsFixedSize () const |
Indicates that ParameterTreeVertex instances have variable flattened sizes. | |
virtual uint32 | TypeCode () const =0 |
Subclasses of ParameterTreeVertex override this function to return a code identifying the subclass type. | |
virtual uint32 | FlattenedSize () const |
Returns the number of bytes needed to store a ParameterTreeVertex object in its current state. | |
virtual void | Flatten (uint8 *buffer) const |
Write a ParameterTreeVertex 's state to a byte array. | |
virtual bool | AllowsTypeCode (uint32 code) |
Indicates whether a buffer containing data of type code can be unflattened to an instance of a ParameterTreeVertex subclass. | |
virtual status_t | Unflatten (const uint8 *buffer, uint32 size) |
Set an object's state from a byte array. | |
Protected Member Functions | |
ParameterTreeVertex () | |
Create an unnamed ParameterTreeVertex with no parent. | |
ParameterTreeVertex (const muscle::String &name) | |
Create a named ParameterTreeVertex with no parent. |
|
Delete a
|
|
Create an unnamed A name must be given to the vertex before it can be considered to have a place in a tree. A vertex without a parent is considered to be the root of its own tree. |
|
Create a named
|
|
Indicates whether a buffer containing data of type
|
|
Write a
Reimplemented in dtpf::DataFormat, dtpf::Parameter, dtpf::ParameterGroup, and dtpf::ParameterTree. |
|
Returns the number of bytes needed to store a Overridden to return the flattened size for a particular subclass.
Reimplemented in dtpf::DataFormat, dtpf::Parameter, dtpf::ParameterGroup, and dtpf::ParameterTree. |
|
Retrieve a
|
|
Retrieve the
|
|
Retieve a
|
|
Retrieve a
|
|
Indicates that
|
|
Set a
|
|
Set the
|
|
Set the parent of a vertex.
|
|
Subclasses of
Implemented in dtpf::DataFormat, dtpf::Parameter, dtpf::ParameterGroup, and dtpf::ParameterTree. |
|
Set an object's state from a byte array.
The
Reimplemented in dtpf::DataFormat, dtpf::Parameter, dtpf::ParameterGroup, and dtpf::ParameterTree. |