59 lines
1.6 KiB
C++
59 lines
1.6 KiB
C++
// Filename: multiNodeAttribute.h
|
|
// Created by: drose (23Mar00)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef MULTINODEATTRIBUTE_H
|
|
#define MULTINODEATTRIBUTE_H
|
|
|
|
#include <pandabase.h>
|
|
|
|
#include "multiAttribute.h"
|
|
#include "pointerNameClass.h"
|
|
#include "node.h"
|
|
#include "pt_Node.h"
|
|
#include "vector_PT_Node.h"
|
|
|
|
#include <pointerTo.h>
|
|
|
|
class MultiNodeTransition;
|
|
|
|
// We need to define this temporary macro so we can pass a parameter
|
|
// containing a comma through the macro.
|
|
#define MULTIATTRIBUTE_NODE MultiAttribute<PT_Node, PointerNameClass>
|
|
EXPORT_TEMPLATE_CLASS(EXPCL_PANDA, EXPTP_PANDA, MULTIATTRIBUTE_NODE);
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Class : MultiNodeAttribute
|
|
// Description :
|
|
////////////////////////////////////////////////////////////////////
|
|
class EXPCL_PANDA MultiNodeAttribute :
|
|
public MultiAttribute<PT_Node, PointerNameClass> {
|
|
protected:
|
|
INLINE MultiNodeAttribute();
|
|
INLINE MultiNodeAttribute(const MultiNodeAttribute ©);
|
|
INLINE void operator = (const MultiNodeAttribute ©);
|
|
|
|
public:
|
|
virtual TypeHandle get_type() const {
|
|
return get_class_type();
|
|
}
|
|
virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
|
|
static TypeHandle get_class_type() {
|
|
return _type_handle;
|
|
}
|
|
static void init_type() {
|
|
MultiAttribute<PT_Node, PointerNameClass>::init_type();
|
|
register_type(_type_handle, "MultiNodeAttribute",
|
|
MultiAttribute<PT_Node, PointerNameClass>::
|
|
get_class_type());
|
|
}
|
|
|
|
private:
|
|
static TypeHandle _type_handle;
|
|
};
|
|
|
|
#include "multiNodeAttribute.I"
|
|
|
|
#endif
|