- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Examples

- Class List
- Class Hierarchy
- Class Members

Public Member Functions

# Attach Class Reference

Search for all occurrences

## Detailed Description

Helper class to manage attachment of metadata to other class objects.

Since in the purest sense metadata means "data about data" it is often useful to attach the metadata directly to the data which it informs. This helper class provides a simple interface for doing just that.

Use it as a mixin on any class to which metadata is to be attached. Implement the abstract methods to access the metadata from wherever your class wishes to store it.

`#include <adskDataAttach.h>`

Inheritance diagram for Attach:
[legend]

List of all members.

## Public Member Functions
| Attach ()
| Default constructor.
virtual | ~Attach ()
| Default destructor.
| Attach (const Attach &)
| Copy constructor, does nothing since there is no data.
virtual adsk::Data::Associations * | editableMetadata ()=0
| Retrieve the metadata uniquely associated with this object. Search for all occurrences
virtual const adsk::Data::Associations * | metadata () const =0
| Retrieve the metadata uniquely associated with this object (const form) Search for all occurrences
virtual bool | setMetadata (const adsk::Data::Associations &)=0
| Attach new metadata to this object. Search for all occurrences
virtual bool | deleteMetadata ()=0
| Remove all metadata attached to this object. Search for all occurrences

## Constructor & Destructor Documentation

Attach | ( | const Attach & | rhs | ) |

Copy constructor, does nothing since there is no data.

Parameters:

  [in] | rhs | Attach data to be copied

Attach Attach Attach Attach Attach Attach Attach Attach Attach Attach
Attach Attach Attach Attach Attach Attach Attach Attach Attach Attach