NameAttribute.h

#ifndef _NAMEATTRIBUTE_
#define _NAMEATTRIBUTE_
 
#include <CodeFragments.h>
#include "QD3D.h"
 
/******************************************************************************
 **     
 **     Macros and constants
 **     
 *****************************************************************************/
 
/*
 * ESSENTIAL NOTE: With the QuickDraw 3D 1.5 release (and later) when you
 * register the element with QuickDraw 3D, for both elements and attributes
 * we change the type you pass in, and return a new dynamically determined
 * type.  You can save the type from Q3XElementClass_Register for later use,
 * get the type from the class using Q3XObjectClass_GetType, or get the type
 * from the same name string used when the element was registered by using
 * Q3ObjectHierarchy_GetTypeFromString.
 */
#define kElementTypeNameString  "ABC Company:NameAttributeSample"
 
 
/******************************************************************************
 **     
 **     Function prototypes for exported functions
 **     
 *****************************************************************************/
 
TQ3Status   NameAttribute_SetName(
                TQ3Object       object, 
                char            *name) ;
 
 
TQ3Status   NameAttribute_GetName(
                TQ3Object       object, 
                char            *name) ;
    
TQ3Status   NameAttribute_Unregister(
                void) ;
 
TQ3Status   NameAttribute_Register( 
                void ) ;
 
OSErr       NameAttribute_ConnectionInitializationRoutine(
                InitBlockPtr    initBlkPtr) ;
 
void        NameAttribute_ConnectionTerminationRoutine (
                void) ;
 
 
#endif